Creates a new alarm in the specified compartment.
POST {{baseUrl}}/alarms
Creates a new alarm in the specified compartment. For important limits information, see Limits on Monitoring.
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "destinations"=>["ea"], "displayName"=>"dolor ex", "isEnabled"=>true, "metricCompartmentId"=>"cupidatat ea tempor", "namespace"=>"consectetur sunt", "query"=>"in", "severity"=>"magna irure dolor", "body"=>"non pariatur magna", "metricCompartmentIdInSubtree"=>true, "pendingDuration"=>"dolore enim proident in", "repeatNotificationDuration"=>"ea commodo eiusmod cillum", "resolution"=>"d", "resourceGroup"=>"dolore in", "suppression"=>{"timeSuppressFrom"=>"1989-11-06T15:51:14.979Z", "timeSuppressUntil"=>"2018-11-24T14:49:54.070Z", "description"=>"occaecat et"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Customer part of the request identifier token. If you need to contact Oracle about a particular | |
request, please provide the complete request ID. | |||
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations. For example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
might be rejected. | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"compartmentId":"veniam","destinations":["reprehenderit aute in magna"],"displayName":"sit","id":"Lorem qui ex veniam proident","isEnabled":true,"lifecycleState":"DELETED","metricCompartmentId":"reprehenderit nostrud est","namespace":"cupidatat tempor aliquip elit","query":"fugiat","severity":"INFO","timeCreated":"1944-02-22T03:18:34.935Z","timeUpdated":"1988-11-03T02:58:13.311Z","body":"labore id","definedTags":{},"freeformTags":{},"metricCompartmentIdInSubtree":true,"pendingDuration":"nostrud","repeatNotificationDuration":"incididunt ea","resolution":"in nostrud sed aute","resourceGroup":"nulla aliqua commodo sed","suppression":{"timeSuppressFrom":"2004-03-12T05:00:19.371Z","timeSuppressUntil":"1953-09-18T23:32:40.152Z","description":"sit aute"}}