Getting the History of an Alarm
Get the history of an alarm in Monitoring. Alarm history is retained for 90 days.
For alarm troubleshooting, see Troubleshooting Alarms.
Before You Begin
IAM policies: To get alarm history, you must be given the required type of access in a policy written by an administrator. This requirement applies whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don’t have permission or are unauthorized, check with the administrator. You might not have the required type of access in the current compartment .
Administrators: For an example policy, see Get Alarm Details and History.
- Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
- Click the name of the alarm that you want.
The alarm details page opens. Under Alarm history, a chart shows data for the indicated time range. Following the chart is a list of timestamped transitions, such as Firing to OK.
Use the oci monitoring alarm-history-collection get-alarm-history command and required parameters to get history for an alarm:
oci monitoring alarm-history-collection get-alarm-history [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Monitoring.
Run the GetAlarmHistory operation to get history for an alarm.