Chilkat Online Tools

Ruby / Monitoring API / Updates an alarm.

Back to Collection Items

require 'chilkat'

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

http = Chilkat::CkHttp.new()

# Use this online tool to generate code from sample JSON: Generate Code to Create JSON

# The following JSON is sent in the request body.

# {
#   "body": "sit id sunt dolor non",
#   "compartmentId": "{{compartment_ocid}}",
#   "definedTags": {},
#   "destinations": [
#     "do labore",
#     "eu commodo"
#   ],
#   "displayName": "tempor nostrud Duis irure pariatur",
#   "freeformTags": {},
#   "isEnabled": true,
#   "metricCompartmentId": "lab",
#   "metricCompartmentIdInSubtree": true,
#   "namespace": "ex enim",
#   "pendingDuration": "consectetur adipisicing",
#   "query": "in fugiat reprehenderit do",
#   "repeatNotificationDuration": "occaecat",
#   "resolution": "dolore",
#   "resourceGroup": "commod",
#   "severity": "cillum labore",
#   "suppression": {
#     "timeSuppressFrom": "1949-03-18T16:13:14.000Z",
#     "timeSuppressUntil": "1962-10-09T22:56:10.031Z",
#     "description": "reprehenderit in dolore"
#   }
# }

json = Chilkat::CkJsonObject.new()
json.UpdateString("body","sit id sunt dolor non")
json.UpdateString("compartmentId","{{compartment_ocid}}")
json.UpdateNewObject("definedTags")
json.UpdateString("destinations[0]","do labore")
json.UpdateString("destinations[1]","eu commodo")
json.UpdateString("displayName","tempor nostrud Duis irure pariatur")
json.UpdateNewObject("freeformTags")
json.UpdateBool("isEnabled",true)
json.UpdateString("metricCompartmentId","lab")
json.UpdateBool("metricCompartmentIdInSubtree",true)
json.UpdateString("namespace","ex enim")
json.UpdateString("pendingDuration","consectetur adipisicing")
json.UpdateString("query","in fugiat reprehenderit do")
json.UpdateString("repeatNotificationDuration","occaecat")
json.UpdateString("resolution","dolore")
json.UpdateString("resourceGroup","commod")
json.UpdateString("severity","cillum labore")
json.UpdateString("suppression.timeSuppressFrom","1949-03-18T16:13:14.000Z")
json.UpdateString("suppression.timeSuppressUntil","1962-10-09T22:56:10.031Z")
json.UpdateString("suppression.description","reprehenderit in dolore")

http.SetRequestHeader("opc-request-id","pariatur nostrud eiusmod")
http.SetRequestHeader("Content-Type","application/json")
http.SetRequestHeader("x-content-sha256","{{content_sha256}}")
http.SetRequestHeader("Authorization","{{signature}}")
http.SetRequestHeader("Date","{{date}}")
http.SetRequestHeader("if-match","pariatur nostrud eiusmod")

sbRequestBody = Chilkat::CkStringBuilder.new()
json.EmitSb(sbRequestBody)

# resp is a CkHttpResponse
resp = http.PTextSb("PUT","https://telemetry.{{region}}.oraclecloud.com/20180401/alarms/:alarmId",sbRequestBody,"utf-8","application/json",false,false)
if (http.get_LastMethodSuccess() == false)
    print http.lastErrorText() + "\n";
    exit
end

sbResponseBody = Chilkat::CkStringBuilder.new()
resp.GetBodySb(sbResponseBody)

jResp = Chilkat::CkJsonObject.new()
jResp.LoadSb(sbResponseBody)
jResp.put_EmitCompact(false)

print "Response Body:" + "\n";
print jResp.emit() + "\n";

respStatusCode = resp.get_StatusCode()
print "Response Status Code = " + respStatusCode.to_s() + "\n";
if (respStatusCode >= 400)
    print "Response Header:" + "\n";
    print resp.header() + "\n";
    print "Failed." + "\n";

    exit
end

# Sample JSON response:
# (Sample code for parsing the JSON response is shown below)

# {
#   "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"
#   }
# }

# Sample code for parsing the JSON response...
# Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

compartmentId = jResp.stringOf("compartmentId")
displayName = jResp.stringOf("displayName")
id = jResp.stringOf("id")
isEnabled = jResp.BoolOf("isEnabled")
lifecycleState = jResp.stringOf("lifecycleState")
metricCompartmentId = jResp.stringOf("metricCompartmentId")
namespace = jResp.stringOf("namespace")
query = jResp.stringOf("query")
severity = jResp.stringOf("severity")
timeCreated = jResp.stringOf("timeCreated")
timeUpdated = jResp.stringOf("timeUpdated")
body = jResp.stringOf("body")
metricCompartmentIdInSubtree = jResp.BoolOf("metricCompartmentIdInSubtree")
pendingDuration = jResp.stringOf("pendingDuration")
repeatNotificationDuration = jResp.stringOf("repeatNotificationDuration")
resolution = jResp.stringOf("resolution")
resourceGroup = jResp.stringOf("resourceGroup")
TimeSuppressFrom = jResp.stringOf("suppression.timeSuppressFrom")
TimeSuppressUntil = jResp.stringOf("suppression.timeSuppressUntil")
Description = jResp.stringOf("suppression.description")
i = 0
count_i = jResp.SizeOfArray("destinations")
while i < count_i
    jResp.put_I(i)
    strVal = jResp.stringOf("destinations[i]")
    i = i + 1
end

Curl Command

curl -X PUT
	-H "if-match: pariatur nostrud eiusmod"
	-H "opc-request-id: pariatur nostrud eiusmod"
	-H "Content-Type: application/json"
	-H "Date: {{date}}"
	-H "Authorization: {{signature}}"
	-H "x-content-sha256: {{content_sha256}}"
	-d '{
    "body": "sit id sunt dolor non",
    "compartmentId": "{{compartment_ocid}}",
    "definedTags": {},
    "destinations": [
        "do labore",
        "eu commodo"
    ],
    "displayName": "tempor nostrud Duis irure pariatur",
    "freeformTags": {},
    "isEnabled": true,
    "metricCompartmentId": "lab",
    "metricCompartmentIdInSubtree": true,
    "namespace": "ex enim",
    "pendingDuration": "consectetur adipisicing",
    "query": "in fugiat reprehenderit do",
    "repeatNotificationDuration": "occaecat",
    "resolution": "dolore",
    "resourceGroup": "commod",
    "severity": "cillum labore",
    "suppression": {
        "timeSuppressFrom": "1949-03-18T16:13:14.000Z",
        "timeSuppressUntil": "1962-10-09T22:56:10.031Z",
        "description": "reprehenderit in dolore"
    }
}'
https://telemetry.{{region}}.oraclecloud.com/20180401/alarms/:alarmId

Postman Collection Item JSON

{
  "name": "Updates an alarm.\n",
  "request": {
    "method": "PUT",
    "header": [
      {
        "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
        "key": "if-match",
        "value": "pariatur nostrud eiusmod"
      },
      {
        "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
        "key": "opc-request-id",
        "value": "pariatur nostrud eiusmod"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Date",
        "value": "{{date}}",
        "description": "(Required) Current Date",
        "type": "text"
      },
      {
        "key": "Authorization",
        "value": "{{signature}}",
        "description": "(Required) Signature Authentication on Authorization header",
        "type": "text"
      },
      {
        "key": "x-content-sha256",
        "value": "{{content_sha256}}",
        "description": "(Required) Content sha256 for POST, PUT and PATCH operations",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"body\": \"sit id sunt dolor non\",\n    \"compartmentId\": \"{{compartment_ocid}}\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"do labore\",\n        \"eu commodo\"\n    ],\n    \"displayName\": \"tempor nostrud Duis irure pariatur\",\n    \"freeformTags\": {},\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"lab\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"ex enim\",\n    \"pendingDuration\": \"consectetur adipisicing\",\n    \"query\": \"in fugiat reprehenderit do\",\n    \"repeatNotificationDuration\": \"occaecat\",\n    \"resolution\": \"dolore\",\n    \"resourceGroup\": \"commod\",\n    \"severity\": \"cillum labore\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1949-03-18T16:13:14.000Z\",\n        \"timeSuppressUntil\": \"1962-10-09T22:56:10.031Z\",\n        \"description\": \"reprehenderit in dolore\"\n    }\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/alarms/:alarmId",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "alarms",
        ":alarmId"
      ],
      "variable": [
        {
          "key": "alarmId",
          "value": "mollit in Duis enim",
          "description": "(Required) The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm.\n"
        }
      ]
    },
    "description": "Updates the specified alarm.\nFor important limits information, see [Limits on Monitoring](https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits).\n\nThis call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations.\nMonitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests,\nor transactions, per second (TPS) for a given tenancy.\n"
  },
  "response": [
    {
      "name": "Successfully updated alarm.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "etag",
          "value": "pariatur nostrud eiusmod",
          "description": "For optimistic concurrency control. See `if-match`.\n"
        },
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"compartmentId\": \"veniam\",\n \"destinations\": [\n  \"reprehenderit aute in magna\"\n ],\n \"displayName\": \"sit\",\n \"id\": \"Lorem qui ex veniam proident\",\n \"isEnabled\": true,\n \"lifecycleState\": \"DELETED\",\n \"metricCompartmentId\": \"reprehenderit nostrud est\",\n \"namespace\": \"cupidatat tempor aliquip elit\",\n \"query\": \"fugiat\",\n \"severity\": \"INFO\",\n \"timeCreated\": \"1944-02-22T03:18:34.935Z\",\n \"timeUpdated\": \"1988-11-03T02:58:13.311Z\",\n \"body\": \"labore id\",\n \"definedTags\": {},\n \"freeformTags\": {},\n \"metricCompartmentIdInSubtree\": true,\n \"pendingDuration\": \"nostrud\",\n \"repeatNotificationDuration\": \"incididunt ea\",\n \"resolution\": \"in nostrud sed aute\",\n \"resourceGroup\": \"nulla aliqua commodo sed\",\n \"suppression\": {\n  \"timeSuppressFrom\": \"2004-03-12T05:00:19.371Z\",\n  \"timeSuppressUntil\": \"1953-09-18T23:32:40.152Z\",\n  \"description\": \"sit aute\"\n }\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "Unauthorized",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "Not Authorized Or Not Found",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "Precondition Failed",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Precondition Failed",
      "code": 412,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "Client is getting throttled, please retry with backoff.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "Internal Server Error",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    },
    {
      "name": "An error has occurred.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource.  The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "pariatur nostrud eiusmod"
          },
          {
            "description": "Customer part of the request identifier token. If you need to contact Oracle about a particular\nrequest, please provide the complete request ID.\n",
            "key": "opc-request-id",
            "value": "pariatur nostrud eiusmod"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"body\": \"est in\",\n    \"compartmentId\": \"non sit\",\n    \"definedTags\": {},\n    \"destinations\": [\n        \"tempor in\",\n        \"dolor proident\"\n    ],\n    \"displayName\": \"occaecat ex ad sint\",\n    \"freeformTags\": {},\n    \"isEnabled\": false,\n    \"metricCompartmentId\": \"ad aliqua\",\n    \"metricCompartmentIdInSubtree\": true,\n    \"namespace\": \"fugiat\",\n    \"pendingDuration\": \"laborum qui in ullamco magna\",\n    \"query\": \"id nisi\",\n    \"repeatNotificationDuration\": \"nulla mollit sed\",\n    \"resolution\": \"nulla Ut ad Lorem\",\n    \"resourceGroup\": \"Duis ullamco voluptate reprehenderit\",\n    \"severity\": \"\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1948-02-13T05:55:04.771Z\",\n        \"timeSuppressUntil\": \"1996-08-05T14:06:44.620Z\",\n        \"description\": \"occaecat labore culpa ad\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms/:alarmId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms",
            ":alarmId"
          ],
          "variable": [
            {
              "key": "alarmId"
            }
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "pariatur nostrud eiusmod",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact Oracle about\na particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"qui anim ut\",\n \"message\": \"esse proident\"\n}"
    }
  ]
}