4 #ifndef EventFilter_StorageManager_MonitoredQuantity_h
5 #define EventFilter_StorageManager_MonitoredQuantity_h
7 #include "boost/shared_ptr.hpp"
8 #include "boost/thread/mutex.hpp"
260 #endif // EventFilter_StorageManager_MonitoredQuantity_h
TimePoint_t getCurrentTime()
double getValueRate(DataSetType t=FULL) const
double workingLastSampleValue_
utils::Duration_t intervalForRecentStats_
utils::Duration_t ExpectedCalculationInterval() const
utils::Duration_t recentDuration_
std::vector< utils::TimePoint_t > binSnapshotTime_
void setNewTimeWindowForRecentResults(const utils::Duration_t &interval)
double recentValueSumOfSquares_
double lastLatchedValueRate_
double recentValueSumOfSquares
utils::Duration_t recentDuration
boost::shared_ptr< MonitoredQuantity > MonitoredQuantityPtr
static boost::mutex mutex
void addSample(const double &value=1)
std::vector< uint64_t > recentBinnedSampleCounts
double recentValueAverage
std::vector< uint64_t > binSampleCount_
uint64_t getSampleCount(DataSetType t=FULL) const
void getStats(Stats &stats) const
double getValueMin(DataSetType t=FULL) const
double getLastSampleValue() const
std::vector< double > binValueSum_
std::vector< utils::TimePoint_t > recentBinnedSnapshotTimes
const utils::Duration_t expectedCalculationInterval_
std::vector< utils::Duration_t > binDuration_
double lastLatchedSampleValue_
std::vector< double > binValueMax_
boost::mutex accumulationMutex_
double recentSampleLatency
utils::Duration_t getDuration(DataSetType t=FULL) const
void calculateStatistics(const utils::TimePoint_t ¤tTime=utils::getCurrentTime())
utils::Duration_t fullDuration
utils::Duration_t fullDuration_
double getValueRMS(DataSetType t=FULL) const
boost::posix_time::time_duration Duration_t
double fullValueSumOfSquares
uint64_t fullSampleCount_
double fullValueSumOfSquares_
boost::posix_time::ptime TimePoint_t
double getSampleRate(DataSetType t=FULL) const
std::vector< double > recentBinnedValueSums
double getValueAverage(DataSetType t=FULL) const
utils::TimePoint_t lastCalculationTime_
unsigned long long uint64_t
double getValueMax(DataSetType t=FULL) const
double getLastValueRate() const
boost::mutex resultsMutex_
double recentValueAverage_
uint64_t workingSampleCount_
uint64_t recentSampleCount
std::vector< utils::Duration_t > recentBinnedDurations
void addSampleIfLarger(const double &value)
utils::Duration_t getTimeWindowForRecentResults() const
double workingValueSumOfSquares_
uint64_t recentSampleCount_
MonitoredQuantity(utils::Duration_t expectedCalculationInterval, utils::Duration_t timeWindowForRecentResults)
double getValueSum(DataSetType t=FULL) const
double getSampleLatency(DataSetType t=FULL) const
std::vector< double > binValueMin_
std::vector< double > binValueSumOfSquares_
MonitoredQuantity & operator=(MonitoredQuantity const &)