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

Provides summary information about a monitor alert.

See Also:

* AWS * API Reference

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

The name of a monitoring alert.

*/ inline const Aws::String& GetMonitoringAlertName() const{ return m_monitoringAlertName; } /** *

The name of a monitoring alert.

*/ inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(const Aws::String& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = value; } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(Aws::String&& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = std::move(value); } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(const char* value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName.assign(value); } /** *

The name of a monitoring alert.

*/ inline MonitoringAlertSummary& WithMonitoringAlertName(const Aws::String& value) { SetMonitoringAlertName(value); return *this;} /** *

The name of a monitoring alert.

*/ inline MonitoringAlertSummary& WithMonitoringAlertName(Aws::String&& value) { SetMonitoringAlertName(std::move(value)); return *this;} /** *

The name of a monitoring alert.

*/ inline MonitoringAlertSummary& WithMonitoringAlertName(const char* value) { SetMonitoringAlertName(value); return *this;} /** *

A timestamp that indicates when a monitor alert was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A timestamp that indicates when a monitor alert was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

A timestamp that indicates when a monitor alert was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

A timestamp that indicates when a monitor alert was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

A timestamp that indicates when a monitor alert was created.

*/ inline MonitoringAlertSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A timestamp that indicates when a monitor alert was created.

*/ inline MonitoringAlertSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline MonitoringAlertSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

A timestamp that indicates when a monitor alert was last updated.

*/ inline MonitoringAlertSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The current status of an alert.

*/ inline const MonitoringAlertStatus& GetAlertStatus() const{ return m_alertStatus; } /** *

The current status of an alert.

*/ inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; } /** *

The current status of an alert.

*/ inline void SetAlertStatus(const MonitoringAlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; } /** *

The current status of an alert.

*/ inline void SetAlertStatus(MonitoringAlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); } /** *

The current status of an alert.

*/ inline MonitoringAlertSummary& WithAlertStatus(const MonitoringAlertStatus& value) { SetAlertStatus(value); return *this;} /** *

The current status of an alert.

*/ inline MonitoringAlertSummary& WithAlertStatus(MonitoringAlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;} /** *

Within EvaluationPeriod, how many execution failures will raise * an alert.

*/ inline int GetDatapointsToAlert() const{ return m_datapointsToAlert; } /** *

Within EvaluationPeriod, how many execution failures will raise * an alert.

*/ inline bool DatapointsToAlertHasBeenSet() const { return m_datapointsToAlertHasBeenSet; } /** *

Within EvaluationPeriod, how many execution failures will raise * an alert.

*/ inline void SetDatapointsToAlert(int value) { m_datapointsToAlertHasBeenSet = true; m_datapointsToAlert = value; } /** *

Within EvaluationPeriod, how many execution failures will raise * an alert.

*/ inline MonitoringAlertSummary& WithDatapointsToAlert(int value) { SetDatapointsToAlert(value); return *this;} /** *

The number of most recent monitoring executions to consider when evaluating * alert status.

*/ inline int GetEvaluationPeriod() const{ return m_evaluationPeriod; } /** *

The number of most recent monitoring executions to consider when evaluating * alert status.

*/ inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; } /** *

The number of most recent monitoring executions to consider when evaluating * alert status.

*/ inline void SetEvaluationPeriod(int value) { m_evaluationPeriodHasBeenSet = true; m_evaluationPeriod = value; } /** *

The number of most recent monitoring executions to consider when evaluating * alert status.

*/ inline MonitoringAlertSummary& WithEvaluationPeriod(int value) { SetEvaluationPeriod(value); return *this;} /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline const MonitoringAlertActions& GetActions() const{ return m_actions; } /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline void SetActions(const MonitoringAlertActions& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline void SetActions(MonitoringAlertActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline MonitoringAlertSummary& WithActions(const MonitoringAlertActions& value) { SetActions(value); return *this;} /** *

A list of alert actions taken in response to an alert going into * InAlert status.

*/ inline MonitoringAlertSummary& WithActions(MonitoringAlertActions&& value) { SetActions(std::move(value)); return *this;} private: Aws::String m_monitoringAlertName; bool m_monitoringAlertNameHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; MonitoringAlertStatus m_alertStatus; bool m_alertStatusHasBeenSet = false; int m_datapointsToAlert; bool m_datapointsToAlertHasBeenSet = false; int m_evaluationPeriod; bool m_evaluationPeriodHasBeenSet = false; MonitoringAlertActions m_actions; bool m_actionsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws