/** * 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 LookoutMetrics { namespace Model { /** *

Aggregated details about the measures contributing to the anomaly group, and * the measures potentially impacted by the anomaly group.

See * Also:

AWS * API Reference

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The name of the measure.

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

The ID of the anomaly group.

*/ inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; } /** *

The ID of the anomaly group.

*/ inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = value; } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::move(value); } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId.assign(value); } /** *

The ID of the anomaly group.

*/ inline InterMetricImpactDetails& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;} /** *

The ID of the anomaly group.

*/ inline InterMetricImpactDetails& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;} /** *

The ID of the anomaly group.

*/ inline InterMetricImpactDetails& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;} /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline const RelationshipType& GetRelationshipType() const{ return m_relationshipType; } /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; } /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline void SetRelationshipType(const RelationshipType& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; } /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline void SetRelationshipType(RelationshipType&& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = std::move(value); } /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline InterMetricImpactDetails& WithRelationshipType(const RelationshipType& value) { SetRelationshipType(value); return *this;} /** *

Whether a measure is a potential cause of the anomaly group * (CAUSE_OF_INPUT_ANOMALY_GROUP), or whether the measure is impacted * by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP).

*/ inline InterMetricImpactDetails& WithRelationshipType(RelationshipType&& value) { SetRelationshipType(std::move(value)); return *this;} /** *

For potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP), the * percentage contribution the measure has in causing the anomalies.

*/ inline double GetContributionPercentage() const{ return m_contributionPercentage; } /** *

For potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP), the * percentage contribution the measure has in causing the anomalies.

*/ inline bool ContributionPercentageHasBeenSet() const { return m_contributionPercentageHasBeenSet; } /** *

For potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP), the * percentage contribution the measure has in causing the anomalies.

*/ inline void SetContributionPercentage(double value) { m_contributionPercentageHasBeenSet = true; m_contributionPercentage = value; } /** *

For potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP), the * percentage contribution the measure has in causing the anomalies.

*/ inline InterMetricImpactDetails& WithContributionPercentage(double value) { SetContributionPercentage(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_anomalyGroupId; bool m_anomalyGroupIdHasBeenSet = false; RelationshipType m_relationshipType; bool m_relationshipTypeHasBeenSet = false; double m_contributionPercentage; bool m_contributionPercentageHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws