Tagging an Alarm at Creation

Add metadata to an alarm in Monitoring when you create it.

    1. On the Alarm Definitions list page, select Create Alarm. If you need help finding the list page, see Listing Alarms.
    2. Under Tags (optional), configure tags:
      • Tag namespace: The container of the tag that you want (for defined tags).
      • Tag key: The name of the tag that you want.
      • Value: The value that you want to assign to the selected tag.
      • + Additional tag: Add a tag name-value pair.
    3. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    4. Select Save alarm.
  • Use the oci monitoring alarm create command and required parameters to tag an alarm when you create it:

    oci monitoring alarm create [--defined-tags | --freeform-tags] <tags> [...]

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

  • Run the CreateAlarm operation to tag an alarm when you create it. Include the definedTags and freeformTags attributes and their values.