SLA and Service Directory code added
[unfold.git] / sla / sla_utils / samples / old / agreement01.xml
diff --git a/sla/sla_utils/samples/old/agreement01.xml b/sla/sla_utils/samples/old/agreement01.xml
new file mode 100755 (executable)
index 0000000..547d149
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement">\r
+       <wsag:Name>ExampleAgreement</wsag:Name>\r
+       <wsag:Context>\r
+               <wsag:AgreementInitiator>RandomClient</wsag:AgreementInitiator>\r
+               <wsag:AgreementResponder>Provider01</wsag:AgreementResponder>\r
+               <!-- The AgreementResponder (in this case) is mandatory if sla is multi \r
+                       service provider -->\r
+               <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>\r
+               <wsag:ExpirationTime>2014-03-07T12:00</wsag:ExpirationTime>\r
+               <wsag:TemplateId>contract-template-2007-12-04</wsag:TemplateId>\r
+       </wsag:Context>\r
+       <wsag:Terms>\r
+               <wsag:All>\r
+                       <!-- FUNCTIONAL DESCRIPTION -->\r
+                       <!-- <wsag:ServiceDescriptionTerm wsag:Name="SDTName" wsag:ServiceName="ServiceName"> \r
+                               DSL expression </wsag:ServiceDescriptionTerm> -->\r
+\r
+                       <!-- OPTIONAL SERVICE REFERENCE -->\r
+\r
+                       <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties -->\r
+                       <wsag:ServiceProperties wsag:Name="NonFunctional"\r
+                               wsag:ServiceName="ServiceName">\r
+                               <wsag:Variables>\r
+                                       <wsag:Variable wsag:Name="ResponseTime" wsag:Metric="xs:double">\r
+                                               <wsag:Location>qos:ResponseTime</wsag:Location>\r
+                                       </wsag:Variable>\r
+                               </wsag:Variables>\r
+                       </wsag:ServiceProperties>\r
+                       <wsag:GuaranteeTerm wsag:Name="GT_ResponseTime">\r
+                               <wsag:ServiceScope wsag:ServiceName="ServiceName" />\r
+                               <!-- The qualifying conditions that must be met before the guarantee \r
+                                       is evaluated -->\r
+                               <!-- <wsag:QualifyingCondition>state EQ 'ready'</wsag:QualifyingCondition> -->\r
+                               <wsag:ServiceLevelObjective>\r
+                                       <wsag:KPITarget>\r
+                                               <wsag:KPIName>ResponseTime</wsag:KPIName> <!-- same name as property for the moment -->\r
+                                               <wsag:CustomServiceLevel>{"contraint" : "ResponseTime LT 100"}</wsag:CustomServiceLevel> <!-- the ServiceProperty is referenced here -->\r
+                                       </wsag:KPITarget>\r
+                               </wsag:ServiceLevelObjective>\r
+                       </wsag:GuaranteeTerm>\r
+               </wsag:All>\r
+       </wsag:Terms>\r
+</wsag:Agreement>\r