Formatting Messages for an Alarm

Update an alarm in Monitoring to send messages with friendly formatting or other format options.

For more information about friendly formatting, see Friendly formatting (on the "Overview of Notifications" page).

For alarm troubleshooting, see Troubleshooting Alarms.

    1. Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
    2. Click the name of the alarm that you want.
    3. On the alarm details page, click Actions and then select Edit alarm.
    4. On the Edit alarm page, under Message Format, select the formatting option that you want.
      For friendly formatting, select Send formatted messages.
    5. Click Save alarm.
  • Use the oci monitoring alarm update command and required parameters to update an alarm to use the message format option that you want:

    oci monitoring alarm update --message-format <format-option> [...]

    The following example specifies friendly formatting:

    oci monitoring alarm update --message-format ONS_OPTIMIZED [...]

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.

  • Run the UpdateAlarm operation to update an alarm to use the message format option that you want.

    When defining details for UpdateAlarmDetails, set messageFormat to the option you want. For friendly formatting, set it to ONS_OPTIMIZED.