Classes | |
class | CloudWatchMetricsFacade |
This class is a simple Facade over the CloudWatch client. This class is a very small abstraction over the CloudWatch client. It allows us to change the details of how we're communicating with CloudWatch without the need to expose this in the rest of our code. It also provides a shim for us to be able to Mock to unit test the rest of the code. More... | |
class | MetricFileManager |
struct | MetricObject |
Typedefs | |
using | JsonValue = Aws::Utils::Json::JsonValue |
Functions | |
MetricDatum | deserializeMetricDatum (const Aws::String &basic_string) |
static MetricDatum | metricObjectToDatum (const MetricObject &metrics, const int64_t timestamp) |
Aws::String | serializeMetricDatum (const MetricDatum &datum) |
Variables | |
static constexpr const char * | kDimensionsKey = "dimensions" |
static constexpr const char * | kDimensionsNameKey = "name" |
static constexpr const char * | kDimensionsValueKey = "value" |
static constexpr const char * | kMetricNameKey = "metric_name" |
static constexpr const char * | kStorageResolutionKey = "storage_resolution" |
static constexpr const char * | kTimestampKey = "timestamp" |
static constexpr const char * | kUnitKey = "unit" |
static constexpr const char * | kValueKey = "value" |
static const std::vector< Aws::String > | required_properties |
static std::unordered_map< std::string, Aws::CloudWatch::Model::StandardUnit > | units_mapper |
using Aws::CloudWatchMetrics::Utils::JsonValue = typedef Aws::Utils::Json::JsonValue |
Definition at line 29 of file metric_serialization.cpp.
Used to wrap the Aws::CloudWatch::CloudWatchErrors. The current interesting states, that are handled given the AWS SDK returns, are success, failure, invalid data, and not connected to the internet / CloudWatch service.
Enumerator | |
---|---|
SUCCESS | |
FAILURE | |
NETWORK_FAILURE | |
INVALID_DATA |
Definition at line 32 of file cloudwatch_metrics_facade.hpp.
Enumerator | |
---|---|
MINIMUM | |
MAXIMUM | |
SUM | |
SAMPLE_COUNT |
Definition at line 49 of file metric_object.h.
MetricDatum Aws::CloudWatchMetrics::Utils::deserializeMetricDatum | ( | const Aws::String & | basic_string | ) |
Take a JSON string and turn it into a MetricDatum object.
invalid_argument | if the JSON is invalid or is missing required parameters. |
basic_string | - a reference to a JSON string. This should be a single object. |
Definition at line 51 of file metric_serialization.cpp.
|
static |
Helper method to constructor an Aws::CloudWatch::Model::MetricDatum from a MetricObject.
metrics | input MetricObject |
timestamp |
Definition at line 118 of file metric_object.h.
Aws::String Aws::CloudWatchMetrics::Utils::serializeMetricDatum | ( | const MetricDatum & | datum | ) |
Take a MetricDatum object and turn it into a JSON string
datum | - A single MetricDatum object |
Definition at line 99 of file metric_serialization.cpp.
|
static |
Definition at line 33 of file metric_serialization.cpp.
|
static |
Definition at line 34 of file metric_serialization.cpp.
|
static |
Definition at line 35 of file metric_serialization.cpp.
|
static |
Definition at line 32 of file metric_serialization.cpp.
|
static |
Definition at line 37 of file metric_serialization.cpp.
|
static |
Definition at line 31 of file metric_serialization.cpp.
|
static |
Definition at line 38 of file metric_serialization.cpp.
|
static |
Definition at line 36 of file metric_serialization.cpp.
|
static |
Definition at line 40 of file metric_serialization.cpp.
|
static |
Definition at line 28 of file metric_object.h.