/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DevOpsGuru { namespace Model { /** *

Reference scalar values and other metrics that DevOps Guru displays on a * graph in its console along with the actual metrics it analyzed. Compare these * reference values to your actual metrics to help you understand anomalous * behavior that DevOps Guru detected.

See Also:

AWS * API Reference

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

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline const PerformanceInsightsReferenceScalar& GetReferenceScalar() const{ return m_referenceScalar; } /** *

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline bool ReferenceScalarHasBeenSet() const { return m_referenceScalarHasBeenSet; } /** *

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline void SetReferenceScalar(const PerformanceInsightsReferenceScalar& value) { m_referenceScalarHasBeenSet = true; m_referenceScalar = value; } /** *

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline void SetReferenceScalar(PerformanceInsightsReferenceScalar&& value) { m_referenceScalarHasBeenSet = true; m_referenceScalar = std::move(value); } /** *

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline PerformanceInsightsReferenceComparisonValues& WithReferenceScalar(const PerformanceInsightsReferenceScalar& value) { SetReferenceScalar(value); return *this;} /** *

A scalar value DevOps Guru for a metric that DevOps Guru compares to actual * metric values. This reference value is used to determine if an actual metric * value should be considered anomalous.

*/ inline PerformanceInsightsReferenceComparisonValues& WithReferenceScalar(PerformanceInsightsReferenceScalar&& value) { SetReferenceScalar(std::move(value)); return *this;} /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline const PerformanceInsightsReferenceMetric& GetReferenceMetric() const{ return m_referenceMetric; } /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline bool ReferenceMetricHasBeenSet() const { return m_referenceMetricHasBeenSet; } /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline void SetReferenceMetric(const PerformanceInsightsReferenceMetric& value) { m_referenceMetricHasBeenSet = true; m_referenceMetric = value; } /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline void SetReferenceMetric(PerformanceInsightsReferenceMetric&& value) { m_referenceMetricHasBeenSet = true; m_referenceMetric = std::move(value); } /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline PerformanceInsightsReferenceComparisonValues& WithReferenceMetric(const PerformanceInsightsReferenceMetric& value) { SetReferenceMetric(value); return *this;} /** *

A metric that DevOps Guru compares to actual metric values. This reference * metric is used to determine if an actual metric should be considered * anomalous.

*/ inline PerformanceInsightsReferenceComparisonValues& WithReferenceMetric(PerformanceInsightsReferenceMetric&& value) { SetReferenceMetric(std::move(value)); return *this;} private: PerformanceInsightsReferenceScalar m_referenceScalar; bool m_referenceScalarHasBeenSet = false; PerformanceInsightsReferenceMetric m_referenceMetric; bool m_referenceMetricHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws