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

Aggregated statistics for a group of anomalous metrics.

See * Also:

AWS * API Reference

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

The start of the time range that was searched.

*/ inline const Aws::String& GetEvaluationStartDate() const{ return m_evaluationStartDate; } /** *

The start of the time range that was searched.

*/ inline bool EvaluationStartDateHasBeenSet() const { return m_evaluationStartDateHasBeenSet; } /** *

The start of the time range that was searched.

*/ inline void SetEvaluationStartDate(const Aws::String& value) { m_evaluationStartDateHasBeenSet = true; m_evaluationStartDate = value; } /** *

The start of the time range that was searched.

*/ inline void SetEvaluationStartDate(Aws::String&& value) { m_evaluationStartDateHasBeenSet = true; m_evaluationStartDate = std::move(value); } /** *

The start of the time range that was searched.

*/ inline void SetEvaluationStartDate(const char* value) { m_evaluationStartDateHasBeenSet = true; m_evaluationStartDate.assign(value); } /** *

The start of the time range that was searched.

*/ inline AnomalyGroupStatistics& WithEvaluationStartDate(const Aws::String& value) { SetEvaluationStartDate(value); return *this;} /** *

The start of the time range that was searched.

*/ inline AnomalyGroupStatistics& WithEvaluationStartDate(Aws::String&& value) { SetEvaluationStartDate(std::move(value)); return *this;} /** *

The start of the time range that was searched.

*/ inline AnomalyGroupStatistics& WithEvaluationStartDate(const char* value) { SetEvaluationStartDate(value); return *this;} /** *

The number of groups found.

*/ inline int GetTotalCount() const{ return m_totalCount; } /** *

The number of groups found.

*/ inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } /** *

The number of groups found.

*/ inline void SetTotalCount(int value) { m_totalCountHasBeenSet = true; m_totalCount = value; } /** *

The number of groups found.

*/ inline AnomalyGroupStatistics& WithTotalCount(int value) { SetTotalCount(value); return *this;} /** *

Statistics for individual metrics within the group.

*/ inline const Aws::Vector& GetItemizedMetricStatsList() const{ return m_itemizedMetricStatsList; } /** *

Statistics for individual metrics within the group.

*/ inline bool ItemizedMetricStatsListHasBeenSet() const { return m_itemizedMetricStatsListHasBeenSet; } /** *

Statistics for individual metrics within the group.

*/ inline void SetItemizedMetricStatsList(const Aws::Vector& value) { m_itemizedMetricStatsListHasBeenSet = true; m_itemizedMetricStatsList = value; } /** *

Statistics for individual metrics within the group.

*/ inline void SetItemizedMetricStatsList(Aws::Vector&& value) { m_itemizedMetricStatsListHasBeenSet = true; m_itemizedMetricStatsList = std::move(value); } /** *

Statistics for individual metrics within the group.

*/ inline AnomalyGroupStatistics& WithItemizedMetricStatsList(const Aws::Vector& value) { SetItemizedMetricStatsList(value); return *this;} /** *

Statistics for individual metrics within the group.

*/ inline AnomalyGroupStatistics& WithItemizedMetricStatsList(Aws::Vector&& value) { SetItemizedMetricStatsList(std::move(value)); return *this;} /** *

Statistics for individual metrics within the group.

*/ inline AnomalyGroupStatistics& AddItemizedMetricStatsList(const ItemizedMetricStats& value) { m_itemizedMetricStatsListHasBeenSet = true; m_itemizedMetricStatsList.push_back(value); return *this; } /** *

Statistics for individual metrics within the group.

*/ inline AnomalyGroupStatistics& AddItemizedMetricStatsList(ItemizedMetricStats&& value) { m_itemizedMetricStatsListHasBeenSet = true; m_itemizedMetricStatsList.push_back(std::move(value)); return *this; } private: Aws::String m_evaluationStartDate; bool m_evaluationStartDateHasBeenSet = false; int m_totalCount; bool m_totalCountHasBeenSet = false; Aws::Vector m_itemizedMetricStatsList; bool m_itemizedMetricStatsListHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws