SLA and Service Directory code added
[myslice.git] / sla / sla_utils / samples / agreement03.xml
diff --git a/sla/sla_utils/samples/agreement03.xml b/sla/sla_utils/samples/agreement03.xml
new file mode 100755 (executable)
index 0000000..b6b7a9b
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"\r
+       AgreementId="agreement03">\r
+\r
+       <wsag:Name>ExampleAgreement</wsag:Name>\r
+       <wsag:Context>\r
+               <wsag:AgreementInitiator>experimenter01</wsag:AgreementInitiator>\r
+               <wsag:AgreementResponder>virtualwall</wsag:AgreementResponder>\r
+               <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>\r
+               <wsag:ExpirationTime>2014-03-07T12:00:00</wsag:ExpirationTime>\r
+               <wsag:TemplateId>template</wsag:TemplateId>\r
+               <sla:Service xmlns:sla="http://sla.atos.eu">Testbed_guarantee_0.99_Uptime_rate_for_0.99_rate_of_the_resources_during_the_sliver</sla:Service>\r
+       </wsag:Context>\r
+       <wsag:Terms>\r
+               <wsag:All>\r
+                       \r
+                       <wsag:ServiceProperties Name="ServiceProperties" ServiceName="ServiceName">\r
+                               <wsag:VariableSet>\r
+                                       <wsag:Variable Name="UpTime" Metric="xs:double">\r
+                        <wsag:Location>qos:UpTime</wsag:Location>\r
+                    </wsag:Variable>\r
+                    <wsag:Variable Name="Performance" Metric="xs:double">\r
+                        <wsag:Location>qos:Performance</wsag:Location>\r
+                    </wsag:Variable>\r
+                               </wsag:VariableSet>\r
+                       </wsag:ServiceProperties>\r
+\r
+                       <!-- Uptime GuaranteTerm-->\r
+            <wsag:GuaranteeTerm Name="GT_UpTime">\r
+                <wsag:ServiceScope ServiceName="sla:virtualwall" />\r
+                <wsag:ServiceLevelObjective>\r
+                    <wsag:KPITarget>\r
+                        <wsag:KPIName>UpTime</wsag:KPIName>\r
+                        <wsag:CustomServiceLevel>\r
+                               {"constraint" : "UpTime GT 0.99"}\r
+                        </wsag:CustomServiceLevel>\r
+                    </wsag:KPITarget>\r
+                </wsag:ServiceLevelObjective>\r
+            </wsag:GuaranteeTerm>\r
+\r
+            <!-- Resource Performance GuaranteTerm-->\r
+            <wsag:GuaranteeTerm Name="GT_Performance">\r
+                <wsag:ServiceScope ServiceName="sla:virtualwall" />\r
+                <wsag:ServiceLevelObjective>\r
+                    <wsag:KPITarget>\r
+                        <wsag:KPIName>Performance</wsag:KPIName>\r
+                        <wsag:CustomServiceLevel>\r
+                               {"constraint" : "Performance GT 0.99"}\r
+                        </wsag:CustomServiceLevel>\r
+                    </wsag:KPITarget>\r
+                </wsag:ServiceLevelObjective>\r
+            </wsag:GuaranteeTerm>\r
+               </wsag:All>\r
+       </wsag:Terms>\r
+</wsag:Agreement>\r