| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::IoT::Behavior; | ||
| 3 | use Moose; | ||
| 4 | has Criteria => (is => 'ro', isa => 'Paws::IoT::BehaviorCriteria', request_name => 'criteria', traits => ['NameInRequest']); | ||
| 5 | has Metric => (is => 'ro', isa => 'Str', request_name => 'metric', traits => ['NameInRequest']); | ||
| 6 | has MetricDimension => (is => 'ro', isa => 'Paws::IoT::MetricDimension', request_name => 'metricDimension', traits => ['NameInRequest']); | ||
| 7 | has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest'], required => 1); | ||
| 8 | has SuppressAlerts => (is => 'ro', isa => 'Bool', request_name => 'suppressAlerts', traits => ['NameInRequest']); | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | ### main pod documentation begin ### | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Paws::IoT::Behavior | ||
| 17 | |||
| 18 | =head1 USAGE | ||
| 19 | |||
| 20 | This class represents one of two things: | ||
| 21 | |||
| 22 | =head3 Arguments in a call to a service | ||
| 23 | |||
| 24 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 25 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 26 | |||
| 27 | As an example, if Att1 is expected to be a Paws::IoT::Behavior object: | ||
| 28 | |||
| 29 | $service_obj->Method(Att1 => { Criteria => $value, ..., SuppressAlerts => $value }); | ||
| 30 | |||
| 31 | =head3 Results returned from an API call | ||
| 32 | |||
| 33 | Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::Behavior object: | ||
| 34 | |||
| 35 | $result = $service_obj->Method(...); | ||
| 36 | $result->Att1->Criteria | ||
| 37 | |||
| 38 | =head1 DESCRIPTION | ||
| 39 | |||
| 40 | A Device Defender security profile behavior. | ||
| 41 | |||
| 42 | =head1 ATTRIBUTES | ||
| 43 | |||
| 44 | |||
| 45 | =head2 Criteria => L<Paws::IoT::BehaviorCriteria> | ||
| 46 | |||
| 47 | The criteria that determine if a device is behaving normally in regard | ||
| 48 | to the C<metric>. | ||
| 49 | |||
| 50 | |||
| 51 | =head2 Metric => Str | ||
| 52 | |||
| 53 | What is measured by the behavior. | ||
| 54 | |||
| 55 | |||
| 56 | =head2 MetricDimension => L<Paws::IoT::MetricDimension> | ||
| 57 | |||
| 58 | The dimension for a metric in your behavior. For example, using a | ||
| 59 | C<TOPIC_FILTER> dimension, you can narrow down the scope of the metric | ||
| 60 | to only MQTT topics where the name matches the pattern specified in the | ||
| 61 | dimension. This can't be used with custom metrics. | ||
| 62 | |||
| 63 | |||
| 64 | =head2 B<REQUIRED> Name => Str | ||
| 65 | |||
| 66 | The name you've given to the behavior. | ||
| 67 | |||
| 68 | |||
| 69 | =head2 SuppressAlerts => Bool | ||
| 70 | |||
| 71 | Suppresses alerts. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head1 SEE ALSO | ||
| 76 | |||
| 77 | This class forms part of L<Paws>, describing an object used in L<Paws::IoT> | ||
| 78 | |||
| 79 | =head1 BUGS and CONTRIBUTIONS | ||
| 80 | |||
| 81 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 82 | |||
| 83 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 84 | |||
| 85 | =cut | ||
| 86 |