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.
      The Create Alarm dialog box opens. Tag settings are under Show advanced options.
    2. To add a defined tag, select the namespace and key, then enter a value.
    3. To add a free-form tag, enter a key and value.
    4. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    5. 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.