perfsonar-dev - (RRD|SQL) MA: eventType in metadata configuration file
Subject: perfsonar development work
List archive
- From: Roman Lapacz <>
- To:
- Subject: (RRD|SQL) MA: eventType in metadata configuration file
- Date: Fri, 21 Jul 2006 12:38:35 +0200
Hi,
Today I've made important change in the svn trunk: EventType in metadata configuration file has been replaced by parameter element (name supportedEventType).
Example:
before the change:
<nmwg:metadata id="meta1-test">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
<nmwgt:ifName>test-0</nmwgt:ifName>
<nmwgt:ifDescription>test description</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>TestRealm</nmwgt:authRealm>
<nmwgt:capacity>1000BaseT</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType">utilization</nmwg:eventType>
</nmwg:metadata>
after the change:
<nmwg:metadata id="meta1-test">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
<nmwgt:ifName>test-0</nmwgt:ifName>
<nmwgt:ifDescription>test description</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>TestRealm</nmwgt:authRealm>
<nmwgt:capacity>1000BaseT</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:parameters>
<nmwg:parameter name="supportedEventType">utilization</nmwg:parameter>
</nmwg:parameters>
</nmwg:metadata>
it has been done because metadata may support more than one eventType. So, for example above metadata describing an interface may be used not only for utilization but also for packet loss or other metric.
Example metadata configuration files are located in $PERFSONAR/conf directory.
Requests stay the same and use eventType element in metadata because they are used to fetch data related with certain eventType.
Roman
- (RRD|SQL) MA: eventType in metadata configuration file, Roman Lapacz, 07/21/2006
Archive powered by MHonArc 2.6.16.