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