| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::IoT::BehaviorCriteria; | ||
| 3 | use Moose; | ||
| 4 | has ComparisonOperator => (is => 'ro', isa => 'Str', request_name => 'comparisonOperator', traits => ['NameInRequest']); | ||
| 5 | has ConsecutiveDatapointsToAlarm => (is => 'ro', isa => 'Int', request_name => 'consecutiveDatapointsToAlarm', traits => ['NameInRequest']); | ||
| 6 | has ConsecutiveDatapointsToClear => (is => 'ro', isa => 'Int', request_name => 'consecutiveDatapointsToClear', traits => ['NameInRequest']); | ||
| 7 | has DurationSeconds => (is => 'ro', isa => 'Int', request_name => 'durationSeconds', traits => ['NameInRequest']); | ||
| 8 | has MlDetectionConfig => (is => 'ro', isa => 'Paws::IoT::MachineLearningDetectionConfig', request_name => 'mlDetectionConfig', traits => ['NameInRequest']); | ||
| 9 | has StatisticalThreshold => (is => 'ro', isa => 'Paws::IoT::StatisticalThreshold', request_name => 'statisticalThreshold', traits => ['NameInRequest']); | ||
| 10 | has Value => (is => 'ro', isa => 'Paws::IoT::MetricValue', request_name => 'value', traits => ['NameInRequest']); | ||
| 11 | |||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::IoT::BehaviorCriteria | ||
| 19 | |||
| 20 | =head1 USAGE | ||
| 21 | |||
| 22 | This class represents one of two things: | ||
| 23 | |||
| 24 | =head3 Arguments in a call to a service | ||
| 25 | |||
| 26 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 27 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 28 | |||
| 29 | As an example, if Att1 is expected to be a Paws::IoT::BehaviorCriteria object: | ||
| 30 | |||
| 31 | $service_obj->Method(Att1 => { ComparisonOperator => $value, ..., Value => $value }); | ||
| 32 | |||
| 33 | =head3 Results returned from an API call | ||
| 34 | |||
| 35 | Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::BehaviorCriteria object: | ||
| 36 | |||
| 37 | $result = $service_obj->Method(...); | ||
| 38 | $result->Att1->ComparisonOperator | ||
| 39 | |||
| 40 | =head1 DESCRIPTION | ||
| 41 | |||
| 42 | The criteria by which the behavior is determined to be normal. | ||
| 43 | |||
| 44 | =head1 ATTRIBUTES | ||
| 45 | |||
| 46 | |||
| 47 | =head2 ComparisonOperator => Str | ||
| 48 | |||
| 49 | The operator that relates the thing measured (C<metric>) to the | ||
| 50 | criteria (containing a C<value> or C<statisticalThreshold>). Valid | ||
| 51 | operators include: | ||
| 52 | |||
| 53 | =over | ||
| 54 | |||
| 55 | =item * | ||
| 56 | |||
| 57 | C<string-list>: C<in-set> and C<not-in-set> | ||
| 58 | |||
| 59 | =item * | ||
| 60 | |||
| 61 | C<number-list>: C<in-set> and C<not-in-set> | ||
| 62 | |||
| 63 | =item * | ||
| 64 | |||
| 65 | C<ip-address-list>: C<in-cidr-set> and C<not-in-cidr-set> | ||
| 66 | |||
| 67 | =item * | ||
| 68 | |||
| 69 | C<number>: C<less-than>, C<less-than-equals>, C<greater-than>, and | ||
| 70 | C<greater-than-equals> | ||
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 ConsecutiveDatapointsToAlarm => Int | ||
| 77 | |||
| 78 | If a device is in violation of the behavior for the specified number of | ||
| 79 | consecutive datapoints, an alarm occurs. If not specified, the default | ||
| 80 | is 1. | ||
| 81 | |||
| 82 | |||
| 83 | =head2 ConsecutiveDatapointsToClear => Int | ||
| 84 | |||
| 85 | If an alarm has occurred and the offending device is no longer in | ||
| 86 | violation of the behavior for the specified number of consecutive | ||
| 87 | datapoints, the alarm is cleared. If not specified, the default is 1. | ||
| 88 | |||
| 89 | |||
| 90 | =head2 DurationSeconds => Int | ||
| 91 | |||
| 92 | Use this to specify the time duration over which the behavior is | ||
| 93 | evaluated, for those criteria that have a time dimension (for example, | ||
| 94 | C<NUM_MESSAGES_SENT>). For a C<statisticalThreshhold> metric | ||
| 95 | comparison, measurements from all devices are accumulated over this | ||
| 96 | time duration before being used to calculate percentiles, and later, | ||
| 97 | measurements from an individual device are also accumulated over this | ||
| 98 | time duration before being given a percentile rank. Cannot be used with | ||
| 99 | list-based metric datatypes. | ||
| 100 | |||
| 101 | |||
| 102 | =head2 MlDetectionConfig => L<Paws::IoT::MachineLearningDetectionConfig> | ||
| 103 | |||
| 104 | The configuration of an ML Detect | ||
| 105 | |||
| 106 | |||
| 107 | =head2 StatisticalThreshold => L<Paws::IoT::StatisticalThreshold> | ||
| 108 | |||
| 109 | A statistical ranking (percentile)that indicates a threshold value by | ||
| 110 | which a behavior is determined to be in compliance or in violation of | ||
| 111 | the behavior. | ||
| 112 | |||
| 113 | |||
| 114 | =head2 Value => L<Paws::IoT::MetricValue> | ||
| 115 | |||
| 116 | The value to be compared with the C<metric>. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | =head1 SEE ALSO | ||
| 121 | |||
| 122 | This class forms part of L<Paws>, describing an object used in L<Paws::IoT> | ||
| 123 | |||
| 124 | =head1 BUGS and CONTRIBUTIONS | ||
| 125 | |||
| 126 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 127 | |||
| 128 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 129 | |||
| 130 | =cut | ||
| 131 |