Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] [Fwd: units expected from RRD MA]

Subject: perfsonar development work

List archive

Re: [pS-dev] [Fwd: units expected from RRD MA]


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Loukik Kudarimoti <>
  • Cc: , Vedrin Jeliazkov <>
  • Subject: Re: [pS-dev] [Fwd: units expected from RRD MA]
  • Date: Thu, 10 Aug 2006 14:19:37 +0200

Loukik Kudarimoti wrote:
Roman Lapacz wrote:
Loukik Kudarimoti wrote:
Roman Lapacz wrote:

I would recommend putting the information about the unit in the key, for example:
This could be ok but it cannot be a substitution for the presence of units in datum which is returned. I mean, we could have it here but at the same time in datum as well. Describing the units of the numerics passed back, as Vedrin suggests, is essential in my opinion.

This is the place where the information about units can be stored. The service will use it to put it in responses. This is my proposal how to include unit info.
Ok. Good idea. I like it. I thought you were suggesting to provide information about units in the key instead of the datum. I misunderstood. Thanks for the clarification.

Implemented. Available in SVN (trunk).



Example of metadata configuration file:

<nmwg:store >

<nmwg:metadata id="meta1">
....
</nmwg:metadata>

<nmwg:data id="data1" metadataIdRef="meta1">
<nmwg:key>
<nmwg:parameters>
<nmwg:parameter name="file">/rrd/test/test.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">ds0</nmwg:parameter>
<nmwg:parameter name="unit">bps</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:data>

</nmwg:store>




Example of response if the unit is specified in the key:


<nmwg:message>
<nmwg:metadata id="meta1">
....
</nmwg:metadata>
<nmwg:data id="localhost.27b055c9:10cf803512a:-7fde" metadataIdRef="meta1">
<nmwg:datum timeValue="1121558400" value="189.25857952114652" valueUnits="bps" />
<nmwg:datum timeValue="1121644800" value="157.6300922870065" valueUnits="bps" />
<nmwg:datum timeValue="1121731200" value="341.2686134412051" valueUnits="bps" />
<nmwg:datum timeValue="1121817600" value="376.50555043698813" valueUnits="bps" />
<nmwg:datum timeValue="1121904000" value="320.4919869209144" valueUnits="bps" />
</nmwg:data>
</nmwg:message>



Example of response if the unit is not specified in the key:

<nmwg:message>
<nmwg:metadata id="meta1">
....
</nmwg:metadata>
<nmwg:data id="localhost.-3e0ab627:10cf7f78557:-7fdf" metadataIdRef="meta1">
<nmwg:datum timeValue="1121558400" value="189.25857952114652" valueUnits="unknown" />
<nmwg:datum timeValue="1121644800" value="157.6300922870065" valueUnits="unknown" />
<nmwg:datum timeValue="1121731200" value="341.2686134412051" valueUnits="unknown" />
<nmwg:datum timeValue="1121817600" value="376.50555043698813" valueUnits="unknown" />
<nmwg:datum timeValue="1121904000" value="320.4919869209144" valueUnits="unknown" />
</nmwg:data>
</nmwg:message>



Roman









Loukik.


Roman




Loukik.


<nmwg:store>

<nmwg:metadata id="meta1">
....
</nmwg:metadata>

<nmwg:data id="data1" metadataIdRef="meta1">
<nmwg:key>
<nmwg:parameters>
<nmwg:parameter name="file">/test.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">ps0</nmwg:parameter>
<nmwg:parameter name="unit">bps</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:data>

</nmwg:store>



Roman





Loukik Kudarimoti wrote:
[forgot to cc perfsonar-dev]

------------------------------------------------------------------------

Subject:
units expected from RRD MA
From:
Loukik Kudarimoti
<>
Date:
Thu, 10 Aug 2006 11:58:25 +0100
To:
Vedrin Jeliazkov
<>

To:
Vedrin Jeliazkov
<>
CC:
Andreas Hanemann <>, Roman Lapcz <>


Hi Vedrin and Andreas,

I have a query about the units that you assume you are getting from RRD MA. Basically, the response from RRD MA is as below:


<nmwg:data id="localhost.7e5caec1:10cf76b6c9d:-7fdf" metadataIdRef="meta1">
<nmwg:datum timeValue="1121558400" value="189.25857952114652" />
<nmwg:datum timeValue="1121644800" value="157.6300922870065" />
<nmwg:datum timeValue="1121731200" value="341.2686134412051" />
<nmwg:datum timeValue="1121817600" value="376.50555043698813" />
<nmwg:datum timeValue="1121904000" value="320.4919869209144" />
</nmwg:data>


It doesn't say whether the value is in bits per second, Mbits per second or bytes per second. What do you assume the unit to be in? do you think it would be better if the response explicitly mentioned the units and also the timeType?

Thanks,
Loukik.










Archive powered by MHonArc 2.6.16.

Top of Page