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.
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 toONS_OPTIMIZED
.