SLA and Service Directory code added
[unfold.git] / sla / sla_utils / samples / old / template01.xml
diff --git a/sla/sla_utils/samples/old/template01.xml b/sla/sla_utils/samples/old/template01.xml
new file mode 100755 (executable)
index 0000000..90b24c1
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+From http://serviceqos.wikispaces.com/WSAgExample
+ -->
+<wsag:Template xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" TemplateId="contract-template-2007-12-04">
+   <wsag:Name>ExampleTemplate</wsag:Name>
+   <wsag:Context>
+      <wsag:AgreementInitiator>Provider</wsag:AgreementInitiator>
+      <wsag:ServiceProvider>AgreementInitiator</wsag:ServiceProvider>
+      <wsag:ExpirationTime>2013-12-15-1200</wsag:ExpirationTime>
+      <wsag:TemplateId>contract-template-2013-12-15</wsag:TemplateId>
+   </wsag:Context>
+   <wsag:Terms>
+      <wsag:All>
+         <!-- functional description --> 
+         <wsag:ServiceDescriptionTerm
+            wsag:Name="General" 
+            wsag:ServiceName="Service0001">
+            A GPS service
+         </wsag:ServiceDescriptionTerm>
+         <wsag:ServiceDescriptionTerm
+            wsag:Name="GetCoordsOperation" 
+            wsag:ServiceName="GPSService0001">
+            operation to call to get the coords
+         </wsag:ServiceDescriptionTerm>
+         <!-- domain specific reference to a service (additional or optional to SDT) --> 
+         <wsag:ServiceReference 
+            wsag:Name="CoordsRequest" 
+            wsag:ServiceName="GPSService0001">
+        <wsag:EndpointReference>
+               <wsag:Address>http://www.gps.com/coordsservice/getcoords</wsag:Address>
+               <wsag:ServiceName>gps:CoordsRequest</wsag:ServiceName>
+            </wsag:EndpointReference>
+         </wsag:ServiceReference>
+         <!-- non-functional properties -->
+         <wsag:ServiceProperties
+            wsag:Name="AvailabilityProperties" 
+            wsag:ServiceName="GPS0001">
+            <wsag:Variables>
+               <wsag:Variable 
+                  wsag:Name="ResponseTime" 
+                  wsag:Metric="metric:Duration">
+                  <wsag:Location>qos:ResponseTime</wsag:Location>
+               </wsag:Variable>
+            </wsag:Variables>
+         </wsag:ServiceProperties>
+         <wsag:ServiceProperties
+            wsag:Name="UsabilityProperties" 
+            wsag:ServiceName="GPS0001">
+            <wsag:Variables>
+               <wsag:Variable 
+                  wsag:Name="CoordDerivation" 
+                  wsag:Metric="metric:CoordDerivationMetric">
+                  <wsag:Location>qos:CoordDerivation</wsag:Location>
+               </wsag:Variable>
+            </wsag:Variables>
+         </wsag:ServiceProperties>
+         <!-- statements to offered service level(s) -->
+         <wsag:GuaranteeTerm 
+            Name="FastReaction" Obligated="ServiceProvider">
+            <wsag:ServiceScope ServiceName="GPS0001">
+               http://www.gps.com/coordsservice/getcoords
+            </wsag:ServiceScope>
+            <wsag:QualifyingCondition>
+               applied when current time in week working hours
+            </wsag:QualifyingCondition>
+            <wsag:ServiceLevelObjective>
+               <wsag:KPITarget>
+                  <wsag:KPIName>FastResponseTime</wsag:KPIName>
+                  <wsag:Target>
+                     //Variable/@Name="ResponseTime" LOWERTHAN 1 second
+                  </wsag:Target>
+               </wsag:KPITarget>
+            </wsag:ServiceLevelObjective>
+         </wsag:GuaranteeTerm>
+      </wsag:All>
+   </wsag:Terms>
+</wsag:Template>