#include <TSStats.h>
Public Types | |
enum | Error { ID_NOT_FOUND } |
Public Member Functions | |
TimeSec | getPrecision () |
Get the precision of the stats object. | |
TSStats | copy (int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) |
Returns a TSStats that is resampled from the this TSStats. | |
TSStats | copy (IDVect ids, int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) |
Returns a TSStats that is resampled from the this TSStats Only the statistis data of the objects in the given list are returned. | |
FixLenTimeSeries | copyStatistics (IDType id, int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) throw ( Error ) |
Returns a FixLenTimeSeries that is resampled from the FixLenTimeSeries with given ID. | |
Public Attributes | |
TimeStamp | time_stamp |
The time stamp of the last statistics sample. | |
TimeSec | precision |
Each sample of the statistics is the average value over certain period. | |
int32 | window_size |
Each statistics is a timeSeries. | |
VersionRWLock | vlock |
This lock is used to protect this data structur If mutli-threads are used, then the writer thread should use writeLock before updating this data structur and writeUnLock() after updating this data structure The reader should readVersion() first and use the returned version to check whether the data has been updated. |
|
|
|
Returns a TSStats that is resampled from the this TSStats Only the statistis data of the objects in the given list are returned. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters.
|
|
Returns a TSStats that is resampled from the this TSStats. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters.
|
|
Returns a FixLenTimeSeries that is resampled from the FixLenTimeSeries with given ID. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters.
|
|
Get the precision of the stats object. (for update frequency) |
|
Each sample of the statistics is the average value over certain period. This period is called the precision of the samples in Borealis. |
|
The time stamp of the last statistics sample.
|
|
This lock is used to protect this data structur If mutli-threads are used, then the writer thread should use writeLock before updating this data structur and writeUnLock() after updating this data structure The reader should readVersion() first and use the returned version to check whether the data has been updated.
|
|
Each statistics is a timeSeries. The number of Samples in each timeSeries is called the window size of the statistics |