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. See also Creating a Basic Alarm.

    1. On the Alarm Definitions list page, select the alarm that you want to work with. If you need help finding the list page or the alarm, see Listing Alarms.
    2. Go to Actions and then select Edit alarm.
    3. On the Edit alarm page, under Message Format, select the formatting option that you want.
      For friendly formatting, select Send formatted messages.
    4. Select 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.