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: "Jeff W. Boote" <>
  • To: Roman Lapacz <>
  • Cc: Loukik Kudarimoti <>, , Vedrin Jeliazkov <>
  • Subject: Re: [pS-dev] [Fwd: units expected from RRD MA]
  • Date: Thu, 10 Aug 2006 08:15:59 -0600

Roman Lapacz wrote:

Implemented. Available in SVN (trunk).


You implemented the units for the 'value' field of the datum, but not the
timeValue.

This is another area where consistency will be important across multiple data types. There will be other 'datum' types that have more than one 'value' in the result datum.

I would suggest that 'unit' is too generic of a name in the key. You need to tie it more closely to the name of the field in the datum that is being returned. In this case for example: 'valueUnit'. Then, you can specify the time unit using 'timeValueUnit'. And it is clear for any other datum fields how this would progress.

I am curious why it is not sufficient to return the 'Units' in the metadata of the response instead of including it in every single datum... (I don't really care that much, but it seems like it would be nice to have that factored out and that it really could be one of the parameters of the response metadata.)

jeff


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