7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/Dimension.h>
13#include <aws/monitoring/model/StandardUnit.h>
14#include <aws/monitoring/model/StatisticSet.h>
36 AWS_CLOUDWATCH_API
MetricDatum(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
46 template <
typename MetricNameT = Aws::String>
48 m_metricNameHasBeenSet =
true;
49 m_metricName = std::forward<MetricNameT>(value);
51 template <
typename MetricNameT = Aws::String>
64 template <
typename DimensionsT = Aws::Vector<Dimension>>
66 m_dimensionsHasBeenSet =
true;
67 m_dimensions = std::forward<DimensionsT>(value);
69 template <
typename DimensionsT = Aws::Vector<Dimension>>
74 template <
typename DimensionsT = Dimension>
76 m_dimensionsHasBeenSet =
true;
77 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
89 template <
typename TimestampT = Aws::Utils::DateTime>
91 m_timestampHasBeenSet =
true;
92 m_timestamp = std::forward<TimestampT>(value);
94 template <
typename TimestampT = Aws::Utils::DateTime>
111 m_valueHasBeenSet =
true;
126 template <
typename StatisticValuesT = StatisticSet>
128 m_statisticValuesHasBeenSet =
true;
129 m_statisticValues = std::forward<StatisticValuesT>(value);
131 template <
typename StatisticValuesT = StatisticSet>
152 template <
typename ValuesT = Aws::Vector<
double>>
154 m_valuesHasBeenSet =
true;
155 m_values = std::forward<ValuesT>(value);
157 template <
typename ValuesT = Aws::Vector<
double>>
163 m_valuesHasBeenSet =
true;
164 m_values.push_back(value);
180 template <
typename CountsT = Aws::Vector<
double>>
182 m_countsHasBeenSet =
true;
183 m_counts = std::forward<CountsT>(value);
185 template <
typename CountsT = Aws::Vector<
double>>
191 m_countsHasBeenSet =
true;
192 m_counts.push_back(value);
206 m_unitHasBeenSet =
true;
230 m_storageResolutionHasBeenSet =
true;
231 m_storageResolution = value;
247 StatisticSet m_statisticValues;
255 int64_t m_storageResolution{0};
256 bool m_metricNameHasBeenSet =
false;
257 bool m_dimensionsHasBeenSet =
false;
258 bool m_timestampHasBeenSet =
false;
259 bool m_valueHasBeenSet =
false;
260 bool m_statisticValuesHasBeenSet =
false;
261 bool m_valuesHasBeenSet =
false;
262 bool m_countsHasBeenSet =
false;
263 bool m_unitHasBeenSet =
false;
264 bool m_storageResolutionHasBeenSet =
false;
void SetCounts(CountsT &&value)
bool MetricNameHasBeenSet() const
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool CountsHasBeenSet() const
void SetDimensions(DimensionsT &&value)
bool UnitHasBeenSet() const
MetricDatum & WithStorageResolution(int64_t value)
const Aws::Vector< Dimension > & GetDimensions() const
void SetStatisticValues(StatisticValuesT &&value)
AWS_CLOUDWATCH_API MetricDatum(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool StatisticValuesHasBeenSet() const
void SetTimestamp(TimestampT &&value)
const Aws::Vector< double > & GetCounts() const
MetricDatum & WithValue(double value)
void SetStorageResolution(int64_t value)
MetricDatum & WithStatisticValues(StatisticValuesT &&value)
MetricDatum & WithValues(ValuesT &&value)
MetricDatum & WithUnit(StandardUnit value)
int64_t GetStorageResolution() const
const Aws::Vector< double > & GetValues() const
AWS_CLOUDWATCH_API MetricDatum & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DimensionsHasBeenSet() const
MetricDatum & WithTimestamp(TimestampT &&value)
const StatisticSet & GetStatisticValues() const
const Aws::String & GetMetricName() const
bool ValueHasBeenSet() const
MetricDatum & AddDimensions(DimensionsT &&value)
MetricDatum & AddCounts(double value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetMetricName(MetricNameT &&value)
AWS_CLOUDWATCH_API MetricDatum()=default
MetricDatum & WithDimensions(DimensionsT &&value)
bool StorageResolutionHasBeenSet() const
bool TimestampHasBeenSet() const
StandardUnit GetUnit() const
void SetValue(double value)
MetricDatum & WithMetricName(MetricNameT &&value)
MetricDatum & AddValues(double value)
bool ValuesHasBeenSet() const
MetricDatum & WithCounts(CountsT &&value)
void SetValues(ValuesT &&value)
void SetUnit(StandardUnit value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector