Metrics Definition
Following the approach proposed by the Governance Interoperability Framework, saving metrics information for service objects is accomplished by publishing a uddi:tModel. This means that a uddi:tModel holding the metrics information is published and attached to the given uddi:businessService.
Following is a simple uddi:tModel the metrics information:
<tModel tModelKey="uddi:3d32ac10-5dd1-11da-88b8-51d47e6188b2" deleted="false"
xmlns="urn:uddiorg:api_v3">
<name>Metrics</name>
<description>Metrics of EchoAccessPoint</description>
<categoryBag>
<keyedReference
tModelKey="…(key of object type taxonomy)"
keyName="Metrics"
keyValue="Metrics"/>
<keyedReference
tModelKey="uddi:centrasite.com:management:metrics:total.request.count"
keyName="Count of hits"
keyValue="14"/>
</categoryBag>
</tModel>
The uddi:keyedReference of the uddi:categoryBag hold the metrics information. The following metrics are supported.
![*](bullet.gif)
Total Request Count
![*](bullet.gif)
Success Request Count
![*](bullet.gif)
Fault Count
![*](bullet.gif)
Average Response Time
![*](bullet.gif)
Minimum Response Time
![*](bullet.gif)
Maximum Response Time
![*](bullet.gif)
Availability
![*](bullet.gif)
Service Liveliness
For each of the supported metrics an according taxonomy is defined that represents the according value set.
For attaching a metrics uddi:tModel to a given uddi:service, a uddi:keyedReference is used, which references the metrics-reference taxonomy. Following is an example of a uddi:businessService that references a metrics uddi:tModel:
<businessService serviceKey="uddi:1d233560-5dc8-11da-88b7-51d47e6188b2"
businessKey="uddi:a2b32100-5ac0-11da-8540-e2406020853d"
xmlns="urn:uddi-org:api_v3">
<name>EchoHeadersService</name>
<description>wsdl:type representing service</description>
<bindingTemplates>
<bindingTemplate bindingKey="uddi:1d25a660-5dc8-11da-88b7-51d47e6188b2"
serviceKey="uddi:1d233560-5dc8-11da-88b7-51d47e6188b2">
<description>wsdl:type representing port</description>
<accessPoint useType="http://schemas.xmlsoap.org/soap/http">
http://tracy:4400/sst/runtime.asvc/com.actional.soapstation.Echo
</accessPoint>
<tModelInstanceDetails>
<tModelInstanceInfo
tModelKey="uddi:1cd8bee0-5dc8-11da-88b7-51d47e6188b2">
<instanceDetails>
<instanceParms>EchoHeaders</instanceParms>
</instanceDetails>
</tModelInstanceInfo>
<tModelInstanceInfo
tModelKey="uddi:1cafda20-5dc8-11da-88b7-51d47e6188b2"/>
</tModelInstanceDetails>
<categoryBag>
<keyedReference tModelKey="uddi:uddi.org:wsdl:types"
keyName="uddi.org:wsdl:types" keyValue="port"/>
</categoryBag>
</bindingTemplate>
</bindingTemplates>
<categoryBag>
<keyedReference
tModelKey="uddi:centrasite.com:management:metrics:reference"
keyName="Metrics"
keyValue="uddi:3d32ac10-5dd1-11da-88b8-51d47e6188b2"/>
<keyedReference tModelKey="uddi:uddi.org:xml:namespace"
keyName="uddi.org:xml:namespace"
keyValue="http://sanity/test"/>
<keyedReference tModelKey="uddi:uddi.org:wsdl:types"
keyName="uddi.org:wsdl:types" keyValue="service"/>
<keyedReference tModelKey="uddi:uddi.org:xml:localName"
keyName="uddi.org:xml:localName"
keyValue="EchoHeadersService"/>
</categoryBag>
</businessService>