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

A statistical ranking (percentile) that indicates a threshold value by which * a behavior is determined to be in compliance or in violation of the * behavior.

See Also:

AWS * API Reference

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

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline const Aws::String& GetStatistic() const{ return m_statistic; } /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline void SetStatistic(const Aws::String& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline void SetStatistic(Aws::String&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline void SetStatistic(const char* value) { m_statisticHasBeenSet = true; m_statistic.assign(value); } /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline StatisticalThreshold& WithStatistic(const Aws::String& value) { SetStatistic(value); return *this;} /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline StatisticalThreshold& WithStatistic(Aws::String&& value) { SetStatistic(std::move(value)); return *this;} /** *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are * collected over the same period. If the accumulated measurements from the device * fall above or below (comparisonOperator) the value associated with * the percentile specified, then the device is considered to be in compliance with * the behavior, otherwise a violation occurs.

*/ inline StatisticalThreshold& WithStatistic(const char* value) { SetStatistic(value); return *this;} private: Aws::String m_statistic; bool m_statisticHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws