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