SLA and Service Directory code added
[unfold.git] / sla / sla_utils / samples / old / agreement02.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"\r
3         AgreementId="agreement02">\r
4 \r
5         <wsag:Name>ExampleAgreement</wsag:Name>\r
6         <wsag:Context>\r
7                 <wsag:AgreementInitiator>RandomClient</wsag:AgreementInitiator>\r
8                 <wsag:AgreementResponder>provider-prueba</wsag:AgreementResponder>\r
9                 <!--\r
10                 The AgreementResponder (in this case) is mandatory if sla is multi service provider   \r
11                 -->\r
12                 <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>\r
13                 <wsag:ExpirationTime>2014-03-07T12:00:00</wsag:ExpirationTime>\r
14                 <wsag:TemplateId>template02</wsag:TemplateId>\r
15         </wsag:Context>\r
16         <wsag:Terms>\r
17                 <wsag:All>\r
18                         <!-- FUNCTIONAL DESCRIPTION -->\r
19                         <wsag:ServiceDescriptionTerm Name="SDTName1" ServiceName="ServiceName">\r
20                                 DSL expression\r
21                         </wsag:ServiceDescriptionTerm>\r
22                         <wsag:ServiceDescriptionTerm Name="SDTName2" ServiceName="ServiceName">\r
23                                 DSL expression\r
24                         </wsag:ServiceDescriptionTerm>\r
25                         \r
26                         <!-- OPTIONAL SERVICE REFERENCE -->\r
27                         \r
28                         <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties-->\r
29                         <wsag:ServiceProperties Name="NonFunctional" ServiceName="ServiceName">\r
30                                 <wsag:VariableSet>\r
31                                         <wsag:Variable Name="ResponseTime" Metric="xs:double">\r
32                                                 <wsag:Location>qos:ResponseTime</wsag:Location>\r
33                                         </wsag:Variable>\r
34                                         <wsag:Variable Name="Performance" Metric="xs:double">\r
35                                                 <wsag:Location>qos:Performance</wsag:Location>\r
36                                         </wsag:Variable>\r
37                                 </wsag:VariableSet>\r
38                         </wsag:ServiceProperties>\r
39                         <wsag:GuaranteeTerm Name="GT_ResponseTime">\r
40                                 <wsag:ServiceScope ServiceName="ServiceName"/>\r
41                                 <!-- The qualifying conditions that must be met before the guarantee is evaluated -->\r
42                                 <!-- \r
43                                 <wsag:QualifyingCondition>state EQ 'ready'</wsag:QualifyingCondition>\r
44                                 -->\r
45                                 <wsag:ServiceLevelObjective>\r
46                                         <wsag:KPITarget>\r
47                                                 <wsag:KPIName>ResponseTime</wsag:KPIName> <!--  same name as property for the moment -->\r
48                                                 <wsag:CustomServiceLevel>{"constraint" : "ResponseTime LT 0.9"}</wsag:CustomServiceLevel> <!--  the ServiceProperty is referenced here -->\r
49                                         </wsag:KPITarget>\r
50                                 </wsag:ServiceLevelObjective>\r
51                         </wsag:GuaranteeTerm>\r
52                         <wsag:GuaranteeTerm Name="GT_Performance">\r
53                                 <wsag:ServiceScope ServiceName="ServiceName"/>\r
54                                 <wsag:ServiceLevelObjective>\r
55                                         <wsag:KPITarget>\r
56                                                 <wsag:KPIName>Performance</wsag:KPIName> <!--  same name as property for the moment -->\r
57                                                 <wsag:CustomServiceLevel>{"constraint" : "Performance GT 0.1"}</wsag:CustomServiceLevel>\r
58                                         </wsag:KPITarget>\r
59                                 </wsag:ServiceLevelObjective>\r
60                                 <wsag:BusinessValueList>\r
61                                         <wsag:Importante>3</wsag:Importante>    <!-- optional importance (integer) -->\r
62                                         <wsag:Penalty>\r
63                                                 <wsag:AssessmentInterval>\r
64                                                         <wsag:Count>10</wsag:Count>\r
65                                                 </wsag:AssessmentInterval>\r
66                                                 <wsag:ValueUnit>EUR</wsag:ValueUnit>\r
67                                                 <wsag:ValueExpression>99</wsag:ValueExpression>\r
68                                         </wsag:Penalty>\r
69                                         \r
70                                         <wsag:Reward></wsag:Reward>\r
71                                         <wsag:Preference></wsag:Preference>\r
72                                         <wsag:CustomBusinessValue></wsag:CustomBusinessValue>\r
73                                 </wsag:BusinessValueList>\r
74                         </wsag:GuaranteeTerm>\r
75                 </wsag:All>\r
76         </wsag:Terms>\r
77 </wsag:Agreement>\r