SLA and Service Directory code added
[unfold.git] / sla / samples / TemplateIMindsService.xml
diff --git a/sla/samples/TemplateIMindsService.xml b/sla/samples/TemplateIMindsService.xml
new file mode 100755 (executable)
index 0000000..2faccaf
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsag:Template xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
+       TemplateId="iMindsServiceTemplate">
+       <wsag:Name>Template for iMinds service</wsag:Name>
+       <wsag:Context>
+               <wsag:AgreementInitiator>iMinds</wsag:AgreementInitiator>
+               <wsag:ServiceProvider>AgreementInitiator</wsag:ServiceProvider>
+               <wsag:ExpirationTime>2015-03-07T12:00:00:000</wsag:ExpirationTime>
+               <sla:Service xmlns:sla="http://sla.atos.eu">iMinds service</sla:Service>
+       </wsag:Context>
+       <wsag:Terms>
+               <wsag:All>
+                       <!-- FUNCTIONAL DESCRIPTION -->
+                       <wsag:ServiceDescriptionTerm wsag:Name="SDTName1" wsag:ServiceName="iMinds service">
+                               The template for iMinds service
+                       </wsag:ServiceDescriptionTerm>
+                       
+                       <!-- OPTIONAL SERVICE REFERENCE -->
+                       
+                       <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties-->
+                       <wsag:ServiceProperties wsag:Name="NonFunctional" wsag:ServiceName="iMinds service">
+                               <wsag:VariableSet>
+                                       <wsag:Variable Name="UpTime" Metric="xs:double">
+                                               <wsag:Location>iMinds/UpTime</wsag:Location>
+                                       </wsag:Variable>
+                                       <wsag:Variable Name="Performance" Metric="xs:decimal">
+                                               <wsag:Location>iMinds/Performance</wsag:Location>
+                                       </wsag:Variable>
+                               </wsag:VariableSet>
+                       </wsag:ServiceProperties>
+                       <wsag:GuaranteeTerm Name="GT_CPULoad">
+                               <wsag:ServiceScope ServiceName="iMinds service"/>
+                               <wsag:ServiceLevelObjective>
+                                       <wsag:KPITarget>
+                                               <wsag:KPIName>UpTime</wsag:KPIName>
+                                               <wsag:CustomServiceLevel>
+                                                       {"constraint" : "UpTime GT 75"}
+                                               </wsag:CustomServiceLevel>
+                                       </wsag:KPITarget>
+                               </wsag:ServiceLevelObjective>
+                       </wsag:GuaranteeTerm>
+                       <wsag:GuaranteeTerm Name="GT_Performance">
+                               <wsag:ServiceScope ServiceName="iMinds service"/>
+                               <wsag:ServiceLevelObjective>
+                                       <wsag:KPITarget>
+                                               <wsag:KPIName>Performance</wsag:KPIName>
+                                               <wsag:CustomServiceLevel>
+                                                       {"constraint" : "Performance GT 50"}
+                                               </wsag:CustomServiceLevel>
+                                       </wsag:KPITarget>
+                               </wsag:ServiceLevelObjective>
+                       </wsag:GuaranteeTerm>
+               </wsag:All>
+       </wsag:Terms>
+</wsag:Template>