Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] time types in the request

Subject: perfsonar development work

List archive

Re: [pS-dev] time types in the request


Chronological Thread 
  • From: Jason Zurawski <>
  • To: Roman Lapacz <>
  • Cc: "Jeff W. Boote" <>, Martin Swany <>, "" <>
  • Subject: Re: [pS-dev] time types in the request
  • Date: Thu, 12 Apr 2007 10:21:51 -0400
  • Organization: Internet2

Roman;

Do we want to be strict in which 'typeType' values to accept?

What do you mean here?


This is not really a requirement, but we can specify certain types (unix, iso standards, etc.) in the schema definition. The types that we expose can indicate what transformations we are able to perform (and be useful more in the documentation).

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

<?xml version='1.0' encoding='UTF-8'?>

<nmwg:message id="msg1"
type="SetupDataRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
xmlns:transformation="http://ggf.org/ns/nmwg/ops/transformation/2.0/";>

<nmwg:metadata id="meta1">
<netutil:subject id="iusub1">
<nmwgt:interface>
<nmwgt:ifAddress type="ipv4">100.1.2.3</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/utilization/2.0</nmwg:eventType>
</nmwg:metadata>

<nmwg:metadata id="meta2select">
<select:subject id="iusub2" metadataIdRef="meta1"/>
<select:parameters id="param1">
<nmwg:parameter name="startTime">
<nmtm:time type="UNIX" value="1121472000"/>
</nmwg:parameter>
<nmwg:parameter name="endTime">
<nmtm:time type="UNIX" value="1121904000"/>
</nmwg:parameter>
<nmwg:parameter name="consolidationFunction">AVERAGE</nmwg:parameter>
<nmwg:parameter name="resolution">60</nmwg:parameter>
</select:parameters>
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
</nmwg:metadata>

<nmwg:metadata id="meta3transformation">
<transformation:subject id="iusub3" metadataIdRef="meta2select"/>
<transformation:parameters id="param1">
<nmwg:parameter name="timeType">ISO</nmwg:parameter>
</transformation:parameters>
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/transformation/2.0/time</nmwg:eventType>
</nmwg:metadata>

<nmwg:data id="data1" metadataIdRef="meta3transformation" />

</nmwg:message>

I am also unsure about the use of the 'timeType' parameter here. To be consistent we may want to use another 'time' object, but I am open to debate on that.
I was thinking about this. This parameter is more to specify the type of transformation, not a specific data or series of data. But right, I'm insure here as well.

What about two other metadata blocks (meta1, meta2select). Are they fine for you. I could start work at least on this part and assume that the output format is unix by default.
The other 2 metadata blocks look fine for me.
-jason



Archive powered by MHonArc 2.6.16.

Top of Page