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

An Amazon CloudWatch log group that contains log anomalies and is used to * generate an insight.

See Also:

AWS * API Reference

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

The name of the CloudWatch log group.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The name of the CloudWatch log group.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

The name of the CloudWatch log group.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

The name of the CloudWatch log group.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

The name of the CloudWatch log group.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

The name of the CloudWatch log group.

*/ inline AnomalousLogGroup& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The name of the CloudWatch log group.

*/ inline AnomalousLogGroup& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The name of the CloudWatch log group.

*/ inline AnomalousLogGroup& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline const Aws::Utils::DateTime& GetImpactStartTime() const{ return m_impactStartTime; } /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline bool ImpactStartTimeHasBeenSet() const { return m_impactStartTimeHasBeenSet; } /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline void SetImpactStartTime(const Aws::Utils::DateTime& value) { m_impactStartTimeHasBeenSet = true; m_impactStartTime = value; } /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline void SetImpactStartTime(Aws::Utils::DateTime&& value) { m_impactStartTimeHasBeenSet = true; m_impactStartTime = std::move(value); } /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline AnomalousLogGroup& WithImpactStartTime(const Aws::Utils::DateTime& value) { SetImpactStartTime(value); return *this;} /** *

The time the anomalous log events began. The impact start time indicates the * time of the first log anomaly event that occurs.

*/ inline AnomalousLogGroup& WithImpactStartTime(Aws::Utils::DateTime&& value) { SetImpactStartTime(std::move(value)); return *this;} /** *

The time the anomalous log events stopped.

*/ inline const Aws::Utils::DateTime& GetImpactEndTime() const{ return m_impactEndTime; } /** *

The time the anomalous log events stopped.

*/ inline bool ImpactEndTimeHasBeenSet() const { return m_impactEndTimeHasBeenSet; } /** *

The time the anomalous log events stopped.

*/ inline void SetImpactEndTime(const Aws::Utils::DateTime& value) { m_impactEndTimeHasBeenSet = true; m_impactEndTime = value; } /** *

The time the anomalous log events stopped.

*/ inline void SetImpactEndTime(Aws::Utils::DateTime&& value) { m_impactEndTimeHasBeenSet = true; m_impactEndTime = std::move(value); } /** *

The time the anomalous log events stopped.

*/ inline AnomalousLogGroup& WithImpactEndTime(const Aws::Utils::DateTime& value) { SetImpactEndTime(value); return *this;} /** *

The time the anomalous log events stopped.

*/ inline AnomalousLogGroup& WithImpactEndTime(Aws::Utils::DateTime&& value) { SetImpactEndTime(std::move(value)); return *this;} /** *

The number of log lines that were scanned for anomalous log events.

*/ inline int GetNumberOfLogLinesScanned() const{ return m_numberOfLogLinesScanned; } /** *

The number of log lines that were scanned for anomalous log events.

*/ inline bool NumberOfLogLinesScannedHasBeenSet() const { return m_numberOfLogLinesScannedHasBeenSet; } /** *

The number of log lines that were scanned for anomalous log events.

*/ inline void SetNumberOfLogLinesScanned(int value) { m_numberOfLogLinesScannedHasBeenSet = true; m_numberOfLogLinesScanned = value; } /** *

The number of log lines that were scanned for anomalous log events.

*/ inline AnomalousLogGroup& WithNumberOfLogLinesScanned(int value) { SetNumberOfLogLinesScanned(value); return *this;} /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline const Aws::Vector& GetLogAnomalyShowcases() const{ return m_logAnomalyShowcases; } /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline bool LogAnomalyShowcasesHasBeenSet() const { return m_logAnomalyShowcasesHasBeenSet; } /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline void SetLogAnomalyShowcases(const Aws::Vector& value) { m_logAnomalyShowcasesHasBeenSet = true; m_logAnomalyShowcases = value; } /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline void SetLogAnomalyShowcases(Aws::Vector&& value) { m_logAnomalyShowcasesHasBeenSet = true; m_logAnomalyShowcases = std::move(value); } /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline AnomalousLogGroup& WithLogAnomalyShowcases(const Aws::Vector& value) { SetLogAnomalyShowcases(value); return *this;} /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline AnomalousLogGroup& WithLogAnomalyShowcases(Aws::Vector&& value) { SetLogAnomalyShowcases(std::move(value)); return *this;} /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline AnomalousLogGroup& AddLogAnomalyShowcases(const LogAnomalyShowcase& value) { m_logAnomalyShowcasesHasBeenSet = true; m_logAnomalyShowcases.push_back(value); return *this; } /** *

The log anomalies in the log group. Each log anomaly displayed represents a * cluster of similar anomalous log events.

*/ inline AnomalousLogGroup& AddLogAnomalyShowcases(LogAnomalyShowcase&& value) { m_logAnomalyShowcasesHasBeenSet = true; m_logAnomalyShowcases.push_back(std::move(value)); return *this; } private: Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; Aws::Utils::DateTime m_impactStartTime; bool m_impactStartTimeHasBeenSet = false; Aws::Utils::DateTime m_impactEndTime; bool m_impactEndTimeHasBeenSet = false; int m_numberOfLogLinesScanned; bool m_numberOfLogLinesScannedHasBeenSet = false; Aws::Vector m_logAnomalyShowcases; bool m_logAnomalyShowcasesHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws