On Friday 14 August 2009 10:57:45 Klaus Kaempf wrote: > * Josef Reidinger <[email protected]> [Aug 14. 2009 08:13]: > > Yes, I also face this problem. I solve it by using map or array, so > > resulting xml looks like > > > > <status> > > <metricgroup group_name="memory"> > > <metric name="memory-used"> > > <label type="array"> //array because it is array of measures > > <measure> > > <dateTime>1250178710</dateTime> > > <value>1.4260408320e+09</value> > > </measure> > > etc. > > iirc, the xml format for the monitoring values was discussed before. > > Given that values are sampled with a constant interval, it should be > possible to separate timestamps from the values. > But that's not allways the case. When someone asks the rest-service for values of a longer period, eg. 5 hours it might happen that the oldest data have an interval of 70 secs while the newest got 10 secs interval. > E.g. > <metric name="memory-used"> > <period> > <starttime>12345678990</starttime> > <interval>5</interval> > <samples type="array"> > <value>1.4260408320e+09</value> > <value>1.4284873636e+09</value> > ... > > This only includes one timestamp and the interval (assumed 5 seconds) > and then all values in one array. Is it for sure that the values were not rearranged into a new order? > > Klaus > --- > SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
