SLA and Service Directory code added
[unfold.git] / sla / sla_utils / samples / old / template01.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 
3 From http://serviceqos.wikispaces.com/WSAgExample
4  -->
5 <wsag:Template xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" TemplateId="contract-template-2007-12-04">
6    <wsag:Name>ExampleTemplate</wsag:Name>
7    <wsag:Context>
8       <wsag:AgreementInitiator>Provider</wsag:AgreementInitiator>
9       <wsag:ServiceProvider>AgreementInitiator</wsag:ServiceProvider>
10       <wsag:ExpirationTime>2013-12-15-1200</wsag:ExpirationTime>
11       <wsag:TemplateId>contract-template-2013-12-15</wsag:TemplateId>
12    </wsag:Context>
13    <wsag:Terms>
14       <wsag:All>
15          <!-- functional description --> 
16          <wsag:ServiceDescriptionTerm
17             wsag:Name="General" 
18             wsag:ServiceName="Service0001">
19             A GPS service
20          </wsag:ServiceDescriptionTerm>
21          <wsag:ServiceDescriptionTerm
22             wsag:Name="GetCoordsOperation" 
23             wsag:ServiceName="GPSService0001">
24             operation to call to get the coords
25          </wsag:ServiceDescriptionTerm>
26          <!-- domain specific reference to a service (additional or optional to SDT) --> 
27          <wsag:ServiceReference 
28             wsag:Name="CoordsRequest" 
29             wsag:ServiceName="GPSService0001">
30         <wsag:EndpointReference>
31                <wsag:Address>http://www.gps.com/coordsservice/getcoords</wsag:Address>
32                <wsag:ServiceName>gps:CoordsRequest</wsag:ServiceName>
33             </wsag:EndpointReference>
34          </wsag:ServiceReference>
35          <!-- non-functional properties -->
36          <wsag:ServiceProperties
37             wsag:Name="AvailabilityProperties" 
38             wsag:ServiceName="GPS0001">
39             <wsag:Variables>
40                <wsag:Variable 
41                   wsag:Name="ResponseTime" 
42                   wsag:Metric="metric:Duration">
43                   <wsag:Location>qos:ResponseTime</wsag:Location>
44                </wsag:Variable>
45             </wsag:Variables>
46          </wsag:ServiceProperties>
47          <wsag:ServiceProperties
48             wsag:Name="UsabilityProperties" 
49             wsag:ServiceName="GPS0001">
50             <wsag:Variables>
51                <wsag:Variable 
52                   wsag:Name="CoordDerivation" 
53                   wsag:Metric="metric:CoordDerivationMetric">
54                   <wsag:Location>qos:CoordDerivation</wsag:Location>
55                </wsag:Variable>
56             </wsag:Variables>
57          </wsag:ServiceProperties>
58          <!-- statements to offered service level(s) -->
59          <wsag:GuaranteeTerm 
60             Name="FastReaction" Obligated="ServiceProvider">
61             <wsag:ServiceScope ServiceName="GPS0001">
62                http://www.gps.com/coordsservice/getcoords
63             </wsag:ServiceScope>
64             <wsag:QualifyingCondition>
65                applied when current time in week working hours
66             </wsag:QualifyingCondition>
67             <wsag:ServiceLevelObjective>
68                <wsag:KPITarget>
69                   <wsag:KPIName>FastResponseTime</wsag:KPIName>
70                   <wsag:Target>
71                      //Variable/@Name="ResponseTime" LOWERTHAN 1 second
72                   </wsag:Target>
73                </wsag:KPITarget>
74             </wsag:ServiceLevelObjective>
75          </wsag:GuaranteeTerm>
76       </wsag:All>
77    </wsag:Terms>
78 </wsag:Template>