/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

One data point from the metric time series returned in a Contributor Insights * rule report.

For more information, see GetInsightRuleReport.

See * Also:

AWS * API Reference

*/ class InsightRuleMetricDatapoint { public: AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(); AWS_CLOUDWATCH_API InsightRuleMetricDatapoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API InsightRuleMetricDatapoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The timestamp of the data point.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The timestamp of the data point.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The timestamp of the data point.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The timestamp of the data point.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The timestamp of the data point.

*/ inline InsightRuleMetricDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The timestamp of the data point.

*/ inline InsightRuleMetricDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The number of unique contributors who published data during this * timestamp.

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline double GetUniqueContributors() const{ return m_uniqueContributors; } /** *

The number of unique contributors who published data during this * timestamp.

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline bool UniqueContributorsHasBeenSet() const { return m_uniqueContributorsHasBeenSet; } /** *

The number of unique contributors who published data during this * timestamp.

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline void SetUniqueContributors(double value) { m_uniqueContributorsHasBeenSet = true; m_uniqueContributors = value; } /** *

The number of unique contributors who published data during this * timestamp.

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithUniqueContributors(double value) { SetUniqueContributors(value); return *this;} /** *

The maximum value provided by one contributor during this timestamp. Each * timestamp is evaluated separately, so the identity of the max contributor could * be different for each timestamp.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline double GetMaxContributorValue() const{ return m_maxContributorValue; } /** *

The maximum value provided by one contributor during this timestamp. Each * timestamp is evaluated separately, so the identity of the max contributor could * be different for each timestamp.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline bool MaxContributorValueHasBeenSet() const { return m_maxContributorValueHasBeenSet; } /** *

The maximum value provided by one contributor during this timestamp. Each * timestamp is evaluated separately, so the identity of the max contributor could * be different for each timestamp.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline void SetMaxContributorValue(double value) { m_maxContributorValueHasBeenSet = true; m_maxContributorValue = value; } /** *

The maximum value provided by one contributor during this timestamp. Each * timestamp is evaluated separately, so the identity of the max contributor could * be different for each timestamp.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithMaxContributorValue(double value) { SetMaxContributorValue(value); return *this;} /** *

The number of occurrences that matched the rule during this data point.

*

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline double GetSampleCount() const{ return m_sampleCount; } /** *

The number of occurrences that matched the rule during this data point.

*

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; } /** *

The number of occurrences that matched the rule during this data point.

*

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; } /** *

The number of occurrences that matched the rule during this data point.

*

This statistic is returned only if you included it in the * Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;} /** *

The average value from all contributors during the time period represented by * that data point.

This statistic is returned only if you included it in * the Metrics array in your request.

*/ inline double GetAverage() const{ return m_average; } /** *

The average value from all contributors during the time period represented by * that data point.

This statistic is returned only if you included it in * the Metrics array in your request.

*/ inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; } /** *

The average value from all contributors during the time period represented by * that data point.

This statistic is returned only if you included it in * the Metrics array in your request.

*/ inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; } /** *

The average value from all contributors during the time period represented by * that data point.

This statistic is returned only if you included it in * the Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithAverage(double value) { SetAverage(value); return *this;} /** *

The sum of the values from all contributors during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline double GetSum() const{ return m_sum; } /** *

The sum of the values from all contributors during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline bool SumHasBeenSet() const { return m_sumHasBeenSet; } /** *

The sum of the values from all contributors during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; } /** *

The sum of the values from all contributors during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithSum(double value) { SetSum(value); return *this;} /** *

The minimum value from a single contributor during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline double GetMinimum() const{ return m_minimum; } /** *

The minimum value from a single contributor during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; } /** *

The minimum value from a single contributor during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; } /** *

The minimum value from a single contributor during the time period * represented by that data point.

This statistic is returned only if you * included it in the Metrics array in your request.

*/ inline InsightRuleMetricDatapoint& WithMinimum(double value) { SetMinimum(value); return *this;} /** *

The maximum value from a single occurence from a single contributor during * the time period represented by that data point.

This statistic is * returned only if you included it in the Metrics array in your * request.

*/ inline double GetMaximum() const{ return m_maximum; } /** *

The maximum value from a single occurence from a single contributor during * the time period represented by that data point.

This statistic is * returned only if you included it in the Metrics array in your * request.

*/ inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; } /** *

The maximum value from a single occurence from a single contributor during * the time period represented by that data point.

This statistic is * returned only if you included it in the Metrics array in your * request.

*/ inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; } /** *

The maximum value from a single occurence from a single contributor during * the time period represented by that data point.

This statistic is * returned only if you included it in the Metrics array in your * request.

*/ inline InsightRuleMetricDatapoint& WithMaximum(double value) { SetMaximum(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; double m_uniqueContributors; bool m_uniqueContributorsHasBeenSet = false; double m_maxContributorValue; bool m_maxContributorValueHasBeenSet = false; double m_sampleCount; bool m_sampleCountHasBeenSet = false; double m_average; bool m_averageHasBeenSet = false; double m_sum; bool m_sumHasBeenSet = false; double m_minimum; bool m_minimumHasBeenSet = false; double m_maximum; bool m_maximumHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws