ramesh_455
Dec 09, 2008Nimbostratus
Question about iControl response for get_performance_graph_csv_statistics
I am trying to retrieve the performance stats via iControl get_performance_graph_csv_statistics API in System.Statistics.wsdl.
I am running a cron job that invokes the script every min.
My algorithm is as follows
1) Retrieve the current time of the F5 in gmt ( get_time from System.SystemInfo.wsdl )
2) Compute the nearest completed min of the value received from step 1.
( for eg if step 1 returns 1228842365, I use 1228842360 )
3) Set the start time of the query to the last received end_time
4) Set the end time of the query to value received from step 2
5) make the query.
I can see the values retrieved successfully.
For e.g.
[ 0 ] => stdClass Object
(
[object_name] => CPU
[start_time] => 1228842360
[end_time] => 1228842420
[interval] => 60
[statistic_data] => timestamp,"CPU 0","CPU 1"
1228842360,3.9500000000e+00,0.0000000000e+00
1228842420,2.2080000000e+00,0.0000000000e+00
)
Now for the next min, I set the starttime to 1228842420 and endtime to 1228842480. And I receive the response
[ 0 ] => stdClass Object
(
[object_name] => CPU
[start_time] => 1228842420
[end_time] => 1228842480
[interval] => 60
[statistic_data] => timestamp,"CPU 0","CPU 1"
1228842420,3.8200000000e+00,0.0000000000e+00
1228842480,2.0680000000e+00,0.0000000000e+00
)
As you can see I receive 2 responses to the timestamp 1228842420
3.95 as a part of first query and 3.82 as a part of second query.
How to determine which one has the correct value?