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: Roman Lapacz <>
  • To:
  • Cc: "Jeff W. Boote" <>, Martin Swany <>, "" <>
  • Subject: Re: [pS-dev] time types in the request
  • Date: Thu, 05 Apr 2007 16:28:58 +0200

Jason Zurawski wrote:
Hey Roman;

How could we indicate that the first filtering parameters (meta2select) use unix time type and the second one (meta4select) use ISO 8601. Now we have high level parameter timeType (see attachment)

<nmwg:parameters id="msgparam1">
<nmwg:parameter name="timeType">unix</nmwg:parameter>
</nmwg:parameters>



I see from the example that this is at the message level, which works but in my opinion is not ideal.


We might add new parameter into filtering parameters' metadata, example:

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


what do you think? Maybe there is more general approach?


I think this is a good use of a parameter (and because it is specific for this particular implementation it shouldn't affect any other service). I am not sure if it should be in the select parameter block, along with other RRD specific parameters however. The time type is an external modification to the data presentation, the CF, resolution and start/end times are sent to the RRD libraries.

good point

It could be in a seperate parameter block:

<nmwg:parameters>
<nmwg:parameter name="timeType">unix</nmwg:parameter>
</nmwg:parameters>
<select:parameters>
<select:parameter ... />
</select:parameters>



but you can not have two parameters elements in the same metadata


Metadata =
element nmwg:metadata {
(
Identifier &
MetadataIdentifierRef? &
MetadataContent
),
anyElement*
}

MetadataBlock =
Subject? &
Parameters?

MetadataContent =
(
MetadataBlock |
FilterMetadataBlock
) &
EventType? &
Key?




Roman



-jason





Archive powered by MHonArc 2.6.16.

Top of Page