AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes an alarm.
An alarm is a way to monitor your Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.
Namespace: Amazon.Lightsail.Model
Assembly: AWSSDK.Lightsail.dll
Version: 3.x.y.z
public class Alarm
The Alarm type exposes the following members
Name | Description | |
---|---|---|
Alarm() |
Name | Type | Description | |
---|---|---|---|
Arn | System.String |
Gets and sets the property Arn. The Amazon Resource Name (ARN) of the alarm. |
|
ComparisonOperator | Amazon.Lightsail.ComparisonOperator |
Gets and sets the property ComparisonOperator. The arithmetic operation used when comparing the specified statistic and threshold. |
|
ContactProtocols | System.Collections.Generic.List<System.String> |
Gets and sets the property ContactProtocols.
The contact protocols for the alarm, such as |
|
CreatedAt | System.DateTime |
Gets and sets the property CreatedAt. The timestamp when the alarm was created. |
|
DatapointsToAlarm | System.Int32 |
Gets and sets the property DatapointsToAlarm. The number of data points that must not within the specified threshold to trigger the alarm. |
|
EvaluationPeriods | System.Int32 |
Gets and sets the property EvaluationPeriods. The number of periods over which data is compared to the specified threshold. |
|
Location | Amazon.Lightsail.Model.ResourceLocation |
Gets and sets the property Location. An object that lists information about the location of the alarm. |
|
MetricName | Amazon.Lightsail.MetricName |
Gets and sets the property MetricName. The name of the metric associated with the alarm. |
|
MonitoredResourceInfo | Amazon.Lightsail.Model.MonitoredResourceInfo |
Gets and sets the property MonitoredResourceInfo. An object that lists information about the resource monitored by the alarm. |
|
Name | System.String |
Gets and sets the property Name. The name of the alarm. |
|
NotificationEnabled | System.Boolean |
Gets and sets the property NotificationEnabled. Indicates whether the alarm is enabled. |
|
NotificationTriggers | System.Collections.Generic.List<System.String> |
Gets and sets the property NotificationTriggers. The alarm states that trigger a notification. |
|
Period | System.Int32 |
Gets and sets the property Period. The period, in seconds, over which the statistic is applied. |
|
ResourceType | Amazon.Lightsail.ResourceType |
Gets and sets the property ResourceType. The Lightsail resource type of the alarm. |
|
State | Amazon.Lightsail.AlarmState |
Gets and sets the property State. The current state of the alarm. An alarm has the following possible states:
|
|
Statistic | Amazon.Lightsail.MetricStatistic |
Gets and sets the property Statistic. The statistic for the metric associated with the alarm. The following statistics are available:
|
|
SupportCode | System.String |
Gets and sets the property SupportCode. The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily. |
|
Threshold | System.Double |
Gets and sets the property Threshold. The value against which the specified statistic is compared. |
|
TreatMissingData | Amazon.Lightsail.TreatMissingData |
Gets and sets the property TreatMissingData. Specifies how the alarm handles missing data points. An alarm can treat missing data in the following ways:
|
|
Unit | Amazon.Lightsail.MetricUnit |
Gets and sets the property Unit. The unit of the metric associated with the alarm. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5