v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Tests an alarm by displaying a banner on the Amazon Lightsail console. If a notification trigger is configured for the specified alarm, the test also sends a notification to the notification protocol (Email and/or SMS) configured for the alarm.

An alarm is used to monitor a single metric for one of your resources. When a metric condition is met, the alarm can notify you by email, SMS text message, and a banner displayed on the Amazon Lightsail console. For more information, see Alarms in Amazon Lightsail.

post/#X-Amz-Target=Lightsail_20161128.TestAlarm

Headers

X-Amz-Target'Lightsail_20161128.TestAlarm' required

Request body

alarmNamestring required

The name of the alarm to test.

state'OK' | 'ALARM' | 'INSUFFICIENT_DATA' required
<p>The alarm state to test.</p> <p>An alarm has the following possible states that can be tested:</p> <ul> <li> <p> <code>ALARM</code> - The metric is outside of the defined threshold.</p> </li> <li> <p> <code>INSUFFICIENT_DATA</code> - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.</p> </li> <li> <p> <code>OK</code> - The metric is within the defined threshold.</p> </li> </ul>

Response

Success