#include <metric_object.h>
Public Member Functions | |
MetricObject (const std::string &_name, const double _value, const std::string &_unit, const int64_t _timestamp, const std::map< std::string, std::string > &_dimensions, const int _storage_resolution) | |
MetricObject (const std::string &_name, const std::map< StatisticValuesType, double > &_statistic_values, const std::string &_unit, const int64_t _timestamp, const std::map< std::string, std::string > &_dimensions, const int _storage_resolution) | |
Public Attributes | |
std::map< std::string, std::string > | dimensions |
std::string | metric_name |
std::map< StatisticValuesType, double > | statistic_values |
int | storage_resolution |
int64_t | timestamp |
std::string | unit |
double | value {} |
Wrapper object for the AWS specific Aws::CloudWatch::Model::MetricDatum. This object is meant to be constructed from userland provided metric data instead of using the AWS SDK specific object.
Definition at line 61 of file metric_object.h.
|
inline |
Construct a new instance of MetricObject that contains a scalar value.
_name | metric name |
_value | metric scalar value |
_unit | metric unit |
_timestamp | metric time stamp |
_dimensions | dimensions delineating extra details about the metric |
_storage_resolution |
Definition at line 72 of file metric_object.h.
|
inline |
Construct a new instance of MetricObject that contains a statistical values.
_name | metric name |
_statistic_values | statistical values of the metric |
_unit | metric unit |
_timestamp | metric time stamp |
_dimensions | dimensions delineating extra details about the metric |
_storage_resolution |
Definition at line 92 of file metric_object.h.
std::map<std::string, std::string> Aws::CloudWatchMetrics::Utils::MetricObject::dimensions |
Definition at line 107 of file metric_object.h.
std::string Aws::CloudWatchMetrics::Utils::MetricObject::metric_name |
Definition at line 102 of file metric_object.h.
std::map<StatisticValuesType, double> Aws::CloudWatchMetrics::Utils::MetricObject::statistic_values |
Definition at line 106 of file metric_object.h.
int Aws::CloudWatchMetrics::Utils::MetricObject::storage_resolution |
Definition at line 108 of file metric_object.h.
int64_t Aws::CloudWatchMetrics::Utils::MetricObject::timestamp |
Definition at line 104 of file metric_object.h.
std::string Aws::CloudWatchMetrics::Utils::MetricObject::unit |
Definition at line 103 of file metric_object.h.
double Aws::CloudWatchMetrics::Utils::MetricObject::value {} |
Definition at line 105 of file metric_object.h.