/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type for the configuration. Defines the health event threshold
* percentages, for performance score and availability score. Amazon CloudWatch
* Internet Monitor creates a health event when there's an internet issue that
* affects your application end users where a health score percentage is at or
* below a set threshold. If you don't set a health event threshold, the default
* value is 95%.See Also:
AWS
* API Reference
The health event threshold percentage set for availability scores.
*/ inline double GetAvailabilityScoreThreshold() const{ return m_availabilityScoreThreshold; } /** *The health event threshold percentage set for availability scores.
*/ inline bool AvailabilityScoreThresholdHasBeenSet() const { return m_availabilityScoreThresholdHasBeenSet; } /** *The health event threshold percentage set for availability scores.
*/ inline void SetAvailabilityScoreThreshold(double value) { m_availabilityScoreThresholdHasBeenSet = true; m_availabilityScoreThreshold = value; } /** *The health event threshold percentage set for availability scores.
*/ inline HealthEventsConfig& WithAvailabilityScoreThreshold(double value) { SetAvailabilityScoreThreshold(value); return *this;} /** *The health event threshold percentage set for performance scores.
*/ inline double GetPerformanceScoreThreshold() const{ return m_performanceScoreThreshold; } /** *The health event threshold percentage set for performance scores.
*/ inline bool PerformanceScoreThresholdHasBeenSet() const { return m_performanceScoreThresholdHasBeenSet; } /** *The health event threshold percentage set for performance scores.
*/ inline void SetPerformanceScoreThreshold(double value) { m_performanceScoreThresholdHasBeenSet = true; m_performanceScoreThreshold = value; } /** *The health event threshold percentage set for performance scores.
*/ inline HealthEventsConfig& WithPerformanceScoreThreshold(double value) { SetPerformanceScoreThreshold(value); return *this;} private: double m_availabilityScoreThreshold; bool m_availabilityScoreThresholdHasBeenSet = false; double m_performanceScoreThreshold; bool m_performanceScoreThresholdHasBeenSet = false; }; } // namespace Model } // namespace InternetMonitor } // namespace Aws