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

Internal only. Collects Apache Airflow metrics. To learn more about * the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

See Also:

AWS * API Reference

*/ class MetricDatum { public: AWS_MWAA_API MetricDatum(); AWS_MWAA_API MetricDatum(Aws::Utils::Json::JsonView jsonValue); AWS_MWAA_API MetricDatum& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Internal only. The dimensions associated with the metric.

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

Internal only. The dimensions associated with the metric.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

Internal only. The dimensions associated with the metric.

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

Internal only. The dimensions associated with the metric.

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

Internal only. The dimensions associated with the metric.

*/ inline MetricDatum& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

Internal only. The dimensions associated with the metric.

*/ inline MetricDatum& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

Internal only. The dimensions associated with the metric.

*/ inline MetricDatum& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

Internal only. The dimensions associated with the metric.

*/ inline MetricDatum& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *

Internal only. The name of the metric.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

Internal only. The name of the metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

Internal only. The name of the metric.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

Internal only. The name of the metric.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

Internal only. The name of the metric.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

Internal only. The name of the metric.

*/ inline MetricDatum& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

Internal only. The name of the metric.

*/ inline MetricDatum& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

Internal only. The name of the metric.

*/ inline MetricDatum& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

Internal only. The statistical values for the metric.

*/ inline const StatisticSet& GetStatisticValues() const{ return m_statisticValues; } /** *

Internal only. The statistical values for the metric.

*/ inline bool StatisticValuesHasBeenSet() const { return m_statisticValuesHasBeenSet; } /** *

Internal only. The statistical values for the metric.

*/ inline void SetStatisticValues(const StatisticSet& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = value; } /** *

Internal only. The statistical values for the metric.

*/ inline void SetStatisticValues(StatisticSet&& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = std::move(value); } /** *

Internal only. The statistical values for the metric.

*/ inline MetricDatum& WithStatisticValues(const StatisticSet& value) { SetStatisticValues(value); return *this;} /** *

Internal only. The statistical values for the metric.

*/ inline MetricDatum& WithStatisticValues(StatisticSet&& value) { SetStatisticValues(std::move(value)); return *this;} /** *

Internal only. The time the metric data was received.

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

Internal only. The time the metric data was received.

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

Internal only. The time the metric data was received.

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

Internal only. The time the metric data was received.

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

Internal only. The time the metric data was received.

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

Internal only. The time the metric data was received.

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

Internal only. The unit used to store the metric.

*/ inline const Unit& GetUnit() const{ return m_unit; } /** *

Internal only. The unit used to store the metric.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

Internal only. The unit used to store the metric.

*/ inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

Internal only. The unit used to store the metric.

*/ inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

Internal only. The unit used to store the metric.

*/ inline MetricDatum& WithUnit(const Unit& value) { SetUnit(value); return *this;} /** *

Internal only. The unit used to store the metric.

*/ inline MetricDatum& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;} /** *

Internal only. The value for the metric.

*/ inline double GetValue() const{ return m_value; } /** *

Internal only. The value for the metric.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

Internal only. The value for the metric.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

Internal only. The value for the metric.

*/ inline MetricDatum& WithValue(double value) { SetValue(value); return *this;} private: Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; StatisticSet m_statisticValues; bool m_statisticValuesHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; Unit m_unit; bool m_unitHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws