PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::Lightsail::PutAlarm; use Moose; has AlarmName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'alarmName' , required => 1); has ComparisonOperator => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'comparisonOperator' , required => 1); has ContactProtocols => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'contactProtocols' ); has DatapointsToAlarm => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'datapointsToAlarm' ); has EvaluationPeriods => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'evaluationPeriods' , required => 1); has MetricName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'metricName' , required => 1); has MonitoredResourceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'monitoredResourceName' , required => 1); has NotificationEnabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'notificationEnabled' ); has NotificationTriggers => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'notificationTriggers' ); has Threshold => (is => 'ro', isa => 'Num', traits => ['NameInRequest'], request_name => 'threshold' , required => 1); has TreatMissingData => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'treatMissingData' ); use MooseX::ClassAttribute; class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutAlarm'); class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::PutAlarmResult'); class_has _result_key => (isa => 'Str', is => 'ro'); 1; ### main pod documentation begin ### =head1 NAME Paws::Lightsail::PutAlarm - Arguments for method PutAlarm on L =head1 DESCRIPTION This class represents the parameters used for calling the method PutAlarm on the L service. Use the attributes of this class as arguments to method PutAlarm. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutAlarm. =head1 SYNOPSIS my $lightsail = Paws->service('Lightsail'); my $PutAlarmResult = $lightsail->PutAlarm( AlarmName => 'MyResourceName', ComparisonOperator => 'GreaterThanOrEqualToThreshold', EvaluationPeriods => 1, MetricName => 'CPUUtilization', MonitoredResourceName => 'MyResourceName', Threshold => 1, ContactProtocols => [ 'Email', ... # values: Email, SMS ], # OPTIONAL DatapointsToAlarm => 1, # OPTIONAL NotificationEnabled => 1, # OPTIONAL NotificationTriggers => [ 'OK', ... # values: OK, ALARM, INSUFFICIENT_DATA ], # OPTIONAL TreatMissingData => 'breaching', # OPTIONAL ); # Results: my $Operations = $PutAlarmResult->Operations; # Returns a L object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see L =head1 ATTRIBUTES =head2 B AlarmName => Str The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm. =head2 B ComparisonOperator => Str The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand. Valid values are: C<"GreaterThanOrEqualToThreshold">, C<"GreaterThanThreshold">, C<"LessThanThreshold">, C<"LessThanOrEqualToThreshold"> =head2 ContactProtocols => ArrayRef[Str|Undef] The contact protocols to use for the alarm, such as C, C (text messaging), or both. A notification is sent via the specified contact protocol if notifications are enabled for the alarm, and when the alarm is triggered. A notification is not sent if a contact protocol is not specified, if the specified contact protocol is not configured in the AWS Region, or if notifications are not enabled for the alarm using the C paramater. Use the C action to configure a contact protocol in an AWS Region. =head2 DatapointsToAlarm => Int The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (C) is the M. =head2 B EvaluationPeriods => Int The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (C) is the N. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies the rolling period of time in which data points are evaluated. Each evaluation period is five minutes long. For example, specify an evaluation period of 24 to evaluate a metric over a rolling period of two hours. You can specify a minimum valuation period of 1 (5 minutes), and a maximum evaluation period of 288 (24 hours). =head2 B MetricName => Str The name of the metric to associate with the alarm. You can configure up to two alarms per metric. The following metrics are available for each resource type: =over =item * B: C, C, C, C, C, C, C, and C. =item * B: C, C, C, C, C, C, C, C, C, C, C, and C. =item * B: C, C, C, C, C, and C. =back For more information about these metrics, see Metrics available in Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-resource-health-metrics#available-metrics). Valid values are: C<"CPUUtilization">, C<"NetworkIn">, C<"NetworkOut">, C<"StatusCheckFailed">, C<"StatusCheckFailed_Instance">, C<"StatusCheckFailed_System">, C<"ClientTLSNegotiationErrorCount">, C<"HealthyHostCount">, C<"UnhealthyHostCount">, C<"HTTPCode_LB_4XX_Count">, C<"HTTPCode_LB_5XX_Count">, C<"HTTPCode_Instance_2XX_Count">, C<"HTTPCode_Instance_3XX_Count">, C<"HTTPCode_Instance_4XX_Count">, C<"HTTPCode_Instance_5XX_Count">, C<"InstanceResponseTime">, C<"RejectedConnectionCount">, C<"RequestCount">, C<"DatabaseConnections">, C<"DiskQueueDepth">, C<"FreeStorageSpace">, C<"NetworkReceiveThroughput">, C<"NetworkTransmitThroughput">, C<"BurstCapacityTime">, C<"BurstCapacityPercentage"> =head2 B MonitoredResourceName => Str The name of the Lightsail resource that will be monitored. Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms. =head2 NotificationEnabled => Bool Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter. =head2 NotificationTriggers => ArrayRef[Str|Undef] The alarm states that trigger a notification. An alarm has the following possible states: =over =item * C - The metric is outside of the defined threshold. =item * C - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state. =item * C - The metric is within the defined threshold. =back When you specify a notification trigger, the C state must be specified. The C and C states can be specified in addition to the C state. =over =item * If you specify C as an alarm trigger, a notification is sent when the alarm switches from an C or C alarm state to an C state. This can be thought of as an I alarm notification. =item * If you specify C as the alarm trigger, a notification is sent when the alarm switches from an C or C alarm state to an C state. =back The notification trigger defaults to C if you don't specify this parameter. =head2 B Threshold => Num The value against which the specified statistic is compared. =head2 TreatMissingData => Str Sets how this alarm will handle missing data points. An alarm can treat missing data in the following ways: =over =item * C - Assume the missing data is not within the threshold. Missing data counts towards the number of times the metric is not within the threshold. =item * C - Assume the missing data is within the threshold. Missing data does not count towards the number of times the metric is not within the threshold. =item * C - Ignore the missing data. Maintains the current alarm state. =item * C - Missing data is treated as missing. =back If C is not specified, the default behavior of C is used. Valid values are: C<"breaching">, C<"notBreaching">, C<"ignore">, C<"missing"> =head1 SEE ALSO This class forms part of L, documenting arguments for method PutAlarm in L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut