Moving an Alarm

Move an alarm in Monitoring to another compartment.

Important

To move resources between compartments, resource users must have sufficient access permissions for the compartment that the resource is being moved to and the current compartment. For more information about permissions for Monitoring resources, see Details for Monitoring.

When you move an alarm to a new compartment, its associated metrics remain where they are. After you move the alarm to the new compartment, inherent policies apply immediately and affect access to the alarm through the Console. For more information about moving resources, see Moving Resources to a Different Compartment.

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. In the alarm details page, click Move resource.
    4. In the Move resource dialog box, choose the destination compartment from the list.
    5. Click Move resource.
  • Use the oci monitoring alarm change-compartment command and required parameters to move an alarm:

    oci monitoring alarm change-compartment --compartment-id <destination_compartment_OCID> --alarm-id <alarm_OCID>

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

  • Run the ChangeAlarmCompartment operation to move an alarm.