7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
35 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
43 template <
typename TimestampT = Aws::Utils::DateTime>
45 m_timestampHasBeenSet =
true;
46 m_timestamp = std::forward<TimestampT>(value);
48 template <
typename TimestampT = Aws::Utils::DateTime>
64 m_uniqueContributorsHasBeenSet =
true;
65 m_uniqueContributors = value;
83 m_maxContributorValueHasBeenSet =
true;
84 m_maxContributorValue = value;
101 m_sampleCountHasBeenSet =
true;
102 m_sampleCount = value;
119 m_averageHasBeenSet =
true;
134 inline double GetSum()
const {
return m_sum; }
137 m_sumHasBeenSet =
true;
155 m_minimumHasBeenSet =
true;
174 m_maximumHasBeenSet =
true;
185 double m_uniqueContributors{0.0};
187 double m_maxContributorValue{0.0};
189 double m_sampleCount{0.0};
191 double m_average{0.0};
195 double m_minimum{0.0};
197 double m_maximum{0.0};
198 bool m_timestampHasBeenSet =
false;
199 bool m_uniqueContributorsHasBeenSet =
false;
200 bool m_maxContributorValueHasBeenSet =
false;
201 bool m_sampleCountHasBeenSet =
false;
202 bool m_averageHasBeenSet =
false;
203 bool m_sumHasBeenSet =
false;
204 bool m_minimumHasBeenSet =
false;
205 bool m_maximumHasBeenSet =
false;
double GetUniqueContributors() const
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
double GetSampleCount() const
InsightRuleMetricDatapoint & WithTimestamp(TimestampT &&value)
void SetAverage(double value)
bool MaximumHasBeenSet() const
const Aws::Utils::DateTime & GetTimestamp() const
void SetSum(double value)
void SetMaxContributorValue(double value)
bool TimestampHasBeenSet() const
bool MaxContributorValueHasBeenSet() const
double GetMinimum() const
double GetMaximum() const
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetTimestamp(TimestampT &&value)
void SetSampleCount(double value)
InsightRuleMetricDatapoint & WithSum(double value)
InsightRuleMetricDatapoint & WithMinimum(double value)
InsightRuleMetricDatapoint & WithMaxContributorValue(double value)
bool SampleCountHasBeenSet() const
InsightRuleMetricDatapoint & WithUniqueContributors(double value)
double GetMaxContributorValue() const
void SetMaximum(double value)
InsightRuleMetricDatapoint & WithAverage(double value)
InsightRuleMetricDatapoint & WithMaximum(double value)
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint()=default
bool AverageHasBeenSet() const
InsightRuleMetricDatapoint & WithSampleCount(double value)
bool MinimumHasBeenSet() const
void SetMinimum(double value)
void SetUniqueContributors(double value)
double GetAverage() const
AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool UniqueContributorsHasBeenSet() const
bool SumHasBeenSet() const