Alarm Sample¶
This page is generated from the checked-in sample manifest at config/samples/monitoring_v1beta1_alarm.yaml.
| Field | Value |
|---|---|
| Resource | monitoring/Alarm |
| API Version | monitoring.oracle.com/v1beta1 |
| Source Path | config/samples/monitoring_v1beta1_alarm.yaml |
#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
#
# Replace the compartment OCIDs and destination OCID below before running e2e.
# Update spec.displayName or spec.query if you want to force a fresh create instead of
# binding to an existing Alarm with the same compartment and display name.
#
apiVersion: monitoring.oracle.com/v1beta1
kind: Alarm
metadata:
name: alarm-sample
spec:
displayName: osok-alarm-sample
compartmentId: ocid1.compartment.oc1..exampleuniqueID
metricCompartmentId: ocid1.compartment.oc1..exampleuniqueID
namespace: oci_computeagent
query: CpuUtilization[1m].mean() > 85
severity: CRITICAL
destinations:
- ocid1.onstopic.oc1..exampleuniqueID
isEnabled: true