SLA and Service Directory code added
[unfold.git] / sla / samples / TemplateIMindsService.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <wsag:Template xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
3         TemplateId="iMindsServiceTemplate">
4         <wsag:Name>Template for iMinds service</wsag:Name>
5         <wsag:Context>
6                 <wsag:AgreementInitiator>iMinds</wsag:AgreementInitiator>
7                 <wsag:ServiceProvider>AgreementInitiator</wsag:ServiceProvider>
8                 <wsag:ExpirationTime>2015-03-07T12:00:00:000</wsag:ExpirationTime>
9                 <sla:Service xmlns:sla="http://sla.atos.eu">iMinds service</sla:Service>
10         </wsag:Context>
11         <wsag:Terms>
12                 <wsag:All>
13                         <!-- FUNCTIONAL DESCRIPTION -->
14                         <wsag:ServiceDescriptionTerm wsag:Name="SDTName1" wsag:ServiceName="iMinds service">
15                                 The template for iMinds service
16                         </wsag:ServiceDescriptionTerm>
17                         
18                         <!-- OPTIONAL SERVICE REFERENCE -->
19                         
20                         <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties-->
21                         <wsag:ServiceProperties wsag:Name="NonFunctional" wsag:ServiceName="iMinds service">
22                                 <wsag:VariableSet>
23                                         <wsag:Variable Name="UpTime" Metric="xs:double">
24                                                 <wsag:Location>iMinds/UpTime</wsag:Location>
25                                         </wsag:Variable>
26                                         <wsag:Variable Name="Performance" Metric="xs:decimal">
27                                                 <wsag:Location>iMinds/Performance</wsag:Location>
28                                         </wsag:Variable>
29                                 </wsag:VariableSet>
30                         </wsag:ServiceProperties>
31                         <wsag:GuaranteeTerm Name="GT_CPULoad">
32                                 <wsag:ServiceScope ServiceName="iMinds service"/>
33                                 <wsag:ServiceLevelObjective>
34                                         <wsag:KPITarget>
35                                                 <wsag:KPIName>UpTime</wsag:KPIName>
36                                                 <wsag:CustomServiceLevel>
37                                                         {"constraint" : "UpTime GT 75"}
38                                                 </wsag:CustomServiceLevel>
39                                         </wsag:KPITarget>
40                                 </wsag:ServiceLevelObjective>
41                         </wsag:GuaranteeTerm>
42                         <wsag:GuaranteeTerm Name="GT_Performance">
43                                 <wsag:ServiceScope ServiceName="iMinds service"/>
44                                 <wsag:ServiceLevelObjective>
45                                         <wsag:KPITarget>
46                                                 <wsag:KPIName>Performance</wsag:KPIName>
47                                                 <wsag:CustomServiceLevel>
48                                                         {"constraint" : "Performance GT 50"}
49                                                 </wsag:CustomServiceLevel>
50                                         </wsag:KPITarget>
51                                 </wsag:ServiceLevelObjective>
52                         </wsag:GuaranteeTerm>
53                 </wsag:All>
54         </wsag:Terms>
55 </wsag:Template>