Classes | Typedefs | Enumerations | Functions | Variables
Aws::CloudWatchMetrics::Utils Namespace Reference

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
 

Enumerations

enum  CloudWatchMetricsStatus { SUCCESS, FAILURE, NETWORK_FAILURE, INVALID_DATA }
 
enum  StatisticValuesType { StatisticValuesType::MINIMUM, StatisticValuesType::MAXIMUM, StatisticValuesType::SUM, StatisticValuesType::SAMPLE_COUNT }
 

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
 

Typedef Documentation

using Aws::CloudWatchMetrics::Utils::JsonValue = typedef Aws::Utils::Json::JsonValue

Definition at line 29 of file metric_serialization.cpp.

Enumeration Type Documentation

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.

Function Documentation

MetricDatum Aws::CloudWatchMetrics::Utils::deserializeMetricDatum ( const Aws::String &  basic_string)

Take a JSON string and turn it into a MetricDatum object.

Exceptions
invalid_argumentif the JSON is invalid or is missing required parameters.
Parameters
basic_string- a reference to a JSON string. This should be a single object.
Returns
datum - a MetricDatum created from this string.

Definition at line 51 of file metric_serialization.cpp.

static MetricDatum Aws::CloudWatchMetrics::Utils::metricObjectToDatum ( const MetricObject metrics,
const int64_t  timestamp 
)
static

Helper method to constructor an Aws::CloudWatch::Model::MetricDatum from a MetricObject.

Parameters
metricsinput MetricObject
timestamp
Returns
Aws::CloudWatch::Model::MetricDatum

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

Parameters
datum- A single MetricDatum object
Returns
json_string - a JSON representation of the passed in MetricDatum object.

Definition at line 99 of file metric_serialization.cpp.

Variable Documentation

constexpr const char* Aws::CloudWatchMetrics::Utils::kDimensionsKey = "dimensions"
static

Definition at line 33 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kDimensionsNameKey = "name"
static

Definition at line 34 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kDimensionsValueKey = "value"
static

Definition at line 35 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kMetricNameKey = "metric_name"
static

Definition at line 32 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kStorageResolutionKey = "storage_resolution"
static

Definition at line 37 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kTimestampKey = "timestamp"
static

Definition at line 31 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kUnitKey = "unit"
static

Definition at line 38 of file metric_serialization.cpp.

constexpr const char* Aws::CloudWatchMetrics::Utils::kValueKey = "value"
static

Definition at line 36 of file metric_serialization.cpp.

const std::vector<Aws::String> Aws::CloudWatchMetrics::Utils::required_properties
static
Initial value:
= {
}
static constexpr const char * kTimestampKey
static constexpr const char * kMetricNameKey

Definition at line 40 of file metric_serialization.cpp.

std::unordered_map<std::string, Aws::CloudWatch::Model ::StandardUnit> Aws::CloudWatchMetrics::Utils::units_mapper
static
Initial value:
= {
{"sec", Aws::CloudWatch::Model::StandardUnit::Seconds},
{"msec", Aws::CloudWatch::Model::StandardUnit::Milliseconds},
{"usec", Aws::CloudWatch::Model::StandardUnit::Microseconds},
{"percent", Aws::CloudWatch::Model::StandardUnit::Percent},
{"count", Aws::CloudWatch::Model::StandardUnit::Count},
{"count_per_sec", Aws::CloudWatch::Model::StandardUnit::Count_Second},
{"bytes", Aws::CloudWatch::Model::StandardUnit::Bytes},
{"kilobytes", Aws::CloudWatch::Model::StandardUnit::Kilobytes},
{"megabytes", Aws::CloudWatch::Model::StandardUnit::Megabytes},
{"gigabytes", Aws::CloudWatch::Model::StandardUnit::Gigabytes},
{"terabytes", Aws::CloudWatch::Model::StandardUnit::Terabytes},
{"bytes_per_sec", Aws::CloudWatch::Model::StandardUnit::Bytes_Second},
{"kilobytes_per_sec", Aws::CloudWatch::Model::StandardUnit::Kilobytes_Second},
{"megabytes_per_sec", Aws::CloudWatch::Model::StandardUnit::Megabytes_Second},
{"gigabytes_per_sec", Aws::CloudWatch::Model::StandardUnit::Gigabytes_Second},
{"terabytes_per_sec", Aws::CloudWatch::Model::StandardUnit::Terabytes_Second},
{"none", Aws::CloudWatch::Model::StandardUnit::None},
{"", Aws::CloudWatch::Model::StandardUnit::None},
}

Definition at line 28 of file metric_object.h.



cloudwatch_metrics_common
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:26