SLA and Service Directory code added
[unfold.git] / sla / sla_utils / samples / old / agreement01.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement">\r
3         <wsag:Name>ExampleAgreement</wsag:Name>\r
4         <wsag:Context>\r
5                 <wsag:AgreementInitiator>RandomClient</wsag:AgreementInitiator>\r
6                 <wsag:AgreementResponder>Provider01</wsag:AgreementResponder>\r
7                 <!-- The AgreementResponder (in this case) is mandatory if sla is multi \r
8                         service provider -->\r
9                 <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>\r
10                 <wsag:ExpirationTime>2014-03-07T12:00</wsag:ExpirationTime>\r
11                 <wsag:TemplateId>contract-template-2007-12-04</wsag:TemplateId>\r
12         </wsag:Context>\r
13         <wsag:Terms>\r
14                 <wsag:All>\r
15                         <!-- FUNCTIONAL DESCRIPTION -->\r
16                         <!-- <wsag:ServiceDescriptionTerm wsag:Name="SDTName" wsag:ServiceName="ServiceName"> \r
17                                 DSL expression </wsag:ServiceDescriptionTerm> -->\r
18 \r
19                         <!-- OPTIONAL SERVICE REFERENCE -->\r
20 \r
21                         <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties -->\r
22                         <wsag:ServiceProperties wsag:Name="NonFunctional"\r
23                                 wsag:ServiceName="ServiceName">\r
24                                 <wsag:Variables>\r
25                                         <wsag:Variable wsag:Name="ResponseTime" wsag:Metric="xs:double">\r
26                                                 <wsag:Location>qos:ResponseTime</wsag:Location>\r
27                                         </wsag:Variable>\r
28                                 </wsag:Variables>\r
29                         </wsag:ServiceProperties>\r
30                         <wsag:GuaranteeTerm wsag:Name="GT_ResponseTime">\r
31                                 <wsag:ServiceScope wsag:ServiceName="ServiceName" />\r
32                                 <!-- The qualifying conditions that must be met before the guarantee \r
33                                         is evaluated -->\r
34                                 <!-- <wsag:QualifyingCondition>state EQ 'ready'</wsag:QualifyingCondition> -->\r
35                                 <wsag:ServiceLevelObjective>\r
36                                         <wsag:KPITarget>\r
37                                                 <wsag:KPIName>ResponseTime</wsag:KPIName> <!-- same name as property for the moment -->\r
38                                                 <wsag:CustomServiceLevel>{"contraint" : "ResponseTime LT 100"}</wsag:CustomServiceLevel> <!-- the ServiceProperty is referenced here -->\r
39                                         </wsag:KPITarget>\r
40                                 </wsag:ServiceLevelObjective>\r
41                         </wsag:GuaranteeTerm>\r
42                 </wsag:All>\r
43         </wsag:Terms>\r
44 </wsag:Agreement>\r