Defining the Predicate for an Alarm Query
Define the trigger rule, or predicate, for an alarm query. A trigger rule is the condition that must be satisfied for the alarm to be in the firing state. The condition can specify a threshold, such as 90% for CPU utilization, or an absence.
For valid predicate operators in MQL expressions, see Predicate Operators.
- Example
- Average CPU utilization is greater than 90% over the past 5 minutes (quickstart contextual notification)
For alarm troubleshooting, see Troubleshooting Alarms.
Use the oci monitoring alarm update command and required parameters to update an alarm. Use the
--query-text
parameter to define the trigger rule (part of the MQL expression).oci monitoring alarm update [...] --query-text <mql_expression> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Monitoring.
Run the UpdateAlarm operation to update an alarm. Use the
query
attribute to define the trigger rule (part of the MQL expression).