Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BehaviorCriteria = BehaviorCriteria' {}
- newBehaviorCriteria :: BehaviorCriteria
- behaviorCriteria_comparisonOperator :: Lens' BehaviorCriteria (Maybe ComparisonOperator)
- behaviorCriteria_consecutiveDatapointsToAlarm :: Lens' BehaviorCriteria (Maybe Natural)
- behaviorCriteria_consecutiveDatapointsToClear :: Lens' BehaviorCriteria (Maybe Natural)
- behaviorCriteria_durationSeconds :: Lens' BehaviorCriteria (Maybe Int)
- behaviorCriteria_mlDetectionConfig :: Lens' BehaviorCriteria (Maybe MachineLearningDetectionConfig)
- behaviorCriteria_statisticalThreshold :: Lens' BehaviorCriteria (Maybe StatisticalThreshold)
- behaviorCriteria_value :: Lens' BehaviorCriteria (Maybe MetricValue)
Documentation
data BehaviorCriteria Source #
The criteria by which the behavior is determined to be normal.
See: newBehaviorCriteria
smart constructor.
BehaviorCriteria' | |
|
Instances
newBehaviorCriteria :: BehaviorCriteria Source #
Create a value of BehaviorCriteria
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:comparisonOperator:BehaviorCriteria'
, behaviorCriteria_comparisonOperator
- The operator that relates the thing measured (metric
) to the criteria
(containing a value
or statisticalThreshold
). Valid operators
include:
string-list
:in-set
andnot-in-set
number-list
:in-set
andnot-in-set
ip-address-list
:in-cidr-set
andnot-in-cidr-set
number
:less-than
,less-than-equals
,greater-than
, andgreater-than-equals
$sel:consecutiveDatapointsToAlarm:BehaviorCriteria'
, behaviorCriteria_consecutiveDatapointsToAlarm
- If a device is in violation of the behavior for the specified number of
consecutive datapoints, an alarm occurs. If not specified, the default
is 1.
$sel:consecutiveDatapointsToClear:BehaviorCriteria'
, behaviorCriteria_consecutiveDatapointsToClear
- If an alarm has occurred and the offending device is no longer in
violation of the behavior for the specified number of consecutive
datapoints, the alarm is cleared. If not specified, the default is 1.
$sel:durationSeconds:BehaviorCriteria'
, behaviorCriteria_durationSeconds
- Use this to specify the time duration over which the behavior is
evaluated, for those criteria that have a time dimension (for example,
NUM_MESSAGES_SENT
). For a statisticalThreshhold
metric comparison,
measurements from all devices are accumulated over this time duration
before being used to calculate percentiles, and later, measurements from
an individual device are also accumulated over this time duration before
being given a percentile rank. Cannot be used with list-based metric
datatypes.
$sel:mlDetectionConfig:BehaviorCriteria'
, behaviorCriteria_mlDetectionConfig
- The configuration of an ML Detect
$sel:statisticalThreshold:BehaviorCriteria'
, behaviorCriteria_statisticalThreshold
- 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.
$sel:value:BehaviorCriteria'
, behaviorCriteria_value
- The value to be compared with the metric
.
behaviorCriteria_comparisonOperator :: Lens' BehaviorCriteria (Maybe ComparisonOperator) Source #
The operator that relates the thing measured (metric
) to the criteria
(containing a value
or statisticalThreshold
). Valid operators
include:
string-list
:in-set
andnot-in-set
number-list
:in-set
andnot-in-set
ip-address-list
:in-cidr-set
andnot-in-cidr-set
number
:less-than
,less-than-equals
,greater-than
, andgreater-than-equals
behaviorCriteria_consecutiveDatapointsToAlarm :: Lens' BehaviorCriteria (Maybe Natural) Source #
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. If not specified, the default is 1.
behaviorCriteria_consecutiveDatapointsToClear :: Lens' BehaviorCriteria (Maybe Natural) Source #
If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.
behaviorCriteria_durationSeconds :: Lens' BehaviorCriteria (Maybe Int) Source #
Use this to specify the time duration over which the behavior is
evaluated, for those criteria that have a time dimension (for example,
NUM_MESSAGES_SENT
). For a statisticalThreshhold
metric comparison,
measurements from all devices are accumulated over this time duration
before being used to calculate percentiles, and later, measurements from
an individual device are also accumulated over this time duration before
being given a percentile rank. Cannot be used with list-based metric
datatypes.
behaviorCriteria_mlDetectionConfig :: Lens' BehaviorCriteria (Maybe MachineLearningDetectionConfig) Source #
The configuration of an ML Detect
behaviorCriteria_statisticalThreshold :: Lens' BehaviorCriteria (Maybe StatisticalThreshold) Source #
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.
behaviorCriteria_value :: Lens' BehaviorCriteria (Maybe MetricValue) Source #
The value to be compared with the metric
.