Chilkat Online Tools

Objective-C / Monitoring API / Creates a new alarm in the specified compartment.

Back to Collection Items

#import <CkoHttp.h>
#import <CkoJsonObject.h>
#import <CkoHttpResponse.h>
#import <CkoStringBuilder.h>
#import <NSString.h>

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

CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;

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

// The following JSON is sent in the 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",
//   "definedTags": {},
//   "freeformTags": {},
//   "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"
//   }
// }

CkoJsonObject *json = [[CkoJsonObject alloc] init];
[json UpdateString: @"compartmentId" value: @"{{compartment_ocid}}"];
[json UpdateString: @"destinations[0]" value: @"ea"];
[json UpdateString: @"displayName" value: @"dolor ex"];
[json UpdateBool: @"isEnabled" value: YES];
[json UpdateString: @"metricCompartmentId" value: @"cupidatat ea tempor"];
[json UpdateString: @"namespace" value: @"consectetur sunt"];
[json UpdateString: @"query" value: @"in"];
[json UpdateString: @"severity" value: @"magna irure dolor"];
[json UpdateString: @"body" value: @"non pariatur magna"];
[json UpdateNewObject: @"definedTags"];
[json UpdateNewObject: @"freeformTags"];
[json UpdateBool: @"metricCompartmentIdInSubtree" value: YES];
[json UpdateString: @"pendingDuration" value: @"dolore enim proident in"];
[json UpdateString: @"repeatNotificationDuration" value: @"ea commodo eiusmod cillum"];
[json UpdateString: @"resolution" value: @"d"];
[json UpdateString: @"resourceGroup" value: @"dolore in"];
[json UpdateString: @"suppression.timeSuppressFrom" value: @"1989-11-06T15:51:14.979Z"];
[json UpdateString: @"suppression.timeSuppressUntil" value: @"2018-11-24T14:49:54.070Z"];
[json UpdateString: @"suppression.description" value: @"occaecat et"];

[http SetRequestHeader: @"opc-retry-token" value: @"exercitation commodo"];
[http SetRequestHeader: @"opc-request-id" value: @"pariatur nostrud eiusmod"];
[http SetRequestHeader: @"Content-Type" value: @"application/json"];
[http SetRequestHeader: @"x-content-sha256" value: @"{{content_sha256}}"];
[http SetRequestHeader: @"Authorization" value: @"{{signature}}"];
[http SetRequestHeader: @"Date" value: @"{{date}}"];

CkoHttpResponse *resp = [http PostJson3: @"https://telemetry.{{region}}.oraclecloud.com/20180401/alarms" contentType: @"application/json" json: json];
if (http.LastMethodSuccess == NO) {
    NSLog(@"%@",http.LastErrorText);
    return;
}

CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
[resp GetBodySb: sbResponseBody];

CkoJsonObject *jResp = [[CkoJsonObject alloc] init];
[jResp LoadSb: sbResponseBody];
jResp.EmitCompact = NO;

NSLog(@"%@",@"Response Body:");
NSLog(@"%@",[jResp Emit]);

int respStatusCode = [resp.StatusCode intValue];
NSLog(@"%@%d",@"Response Status Code = ",respStatusCode);
if (respStatusCode >= 400) {
    NSLog(@"%@",@"Response Header:");
    NSLog(@"%@",resp.Header);
    NSLog(@"%@",@"Failed.");

    return;
}

// 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

NSString *strVal = 0;

NSString *compartmentId = [jResp StringOf: @"compartmentId"];
NSString *displayName = [jResp StringOf: @"displayName"];
NSString *id = [jResp StringOf: @"id"];
BOOL isEnabled = [jResp BoolOf: @"isEnabled"];
NSString *lifecycleState = [jResp StringOf: @"lifecycleState"];
NSString *metricCompartmentId = [jResp StringOf: @"metricCompartmentId"];
NSString *namespace = [jResp StringOf: @"namespace"];
NSString *query = [jResp StringOf: @"query"];
NSString *severity = [jResp StringOf: @"severity"];
NSString *timeCreated = [jResp StringOf: @"timeCreated"];
NSString *timeUpdated = [jResp StringOf: @"timeUpdated"];
NSString *body = [jResp StringOf: @"body"];
BOOL metricCompartmentIdInSubtree = [jResp BoolOf: @"metricCompartmentIdInSubtree"];
NSString *pendingDuration = [jResp StringOf: @"pendingDuration"];
NSString *repeatNotificationDuration = [jResp StringOf: @"repeatNotificationDuration"];
NSString *resolution = [jResp StringOf: @"resolution"];
NSString *resourceGroup = [jResp StringOf: @"resourceGroup"];
NSString *TimeSuppressFrom = [jResp StringOf: @"suppression.timeSuppressFrom"];
NSString *TimeSuppressUntil = [jResp StringOf: @"suppression.timeSuppressUntil"];
NSString *Description = [jResp StringOf: @"suppression.description"];
int i = 0;
int count_i = [[jResp SizeOfArray: @"destinations"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    strVal = [jResp StringOf: @"destinations[i]"];
    i = i + 1;
}

Curl Command

curl -X POST
	-H "opc-request-id: pariatur nostrud eiusmod"
	-H "opc-retry-token: exercitation commodo"
	-H "Content-Type: application/json"
	-H "Date: {{date}}"
	-H "Authorization: {{signature}}"
	-H "x-content-sha256: {{content_sha256}}"
	-d '{
    "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",
    "definedTags": {},
    "freeformTags": {},
    "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"
    }
}'
https://telemetry.{{region}}.oraclecloud.com/20180401/alarms

Postman Collection Item JSON

{
  "name": "Creates a new alarm in the specified compartment.\n",
  "request": {
    "method": "POST",
    "header": [
      {
        "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"
      },
      {
        "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
        "key": "opc-retry-token",
        "value": "exercitation commodo"
      },
      {
        "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    \"compartmentId\": \"{{compartment_ocid}}\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/alarms",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "alarms"
      ]
    },
    "description": "Creates a new alarm in the specified compartment.\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 created alarm.",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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": "Conflict",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "status": "Conflict",
      "code": 409,
      "_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": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "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"
          },
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations. For example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmight be rejected.\n",
            "key": "opc-retry-token",
            "value": "exercitation commodo"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"occaecat ea veniam Excepteur consequat\",\n    \"destinations\": [\n        \"ea\"\n    ],\n    \"displayName\": \"dolor ex\",\n    \"isEnabled\": true,\n    \"metricCompartmentId\": \"cupidatat ea tempor\",\n    \"namespace\": \"consectetur sunt\",\n    \"query\": \"in\",\n    \"severity\": \"magna irure dolor\",\n    \"body\": \"non pariatur magna\",\n    \"definedTags\": {},\n    \"freeformTags\": {},\n    \"metricCompartmentIdInSubtree\": true,\n    \"pendingDuration\": \"dolore enim proident in\",\n    \"repeatNotificationDuration\": \"ea commodo eiusmod cillum\",\n    \"resolution\": \"d\",\n    \"resourceGroup\": \"dolore in\",\n    \"suppression\": {\n        \"timeSuppressFrom\": \"1989-11-06T15:51:14.979Z\",\n        \"timeSuppressUntil\": \"2018-11-24T14:49:54.070Z\",\n        \"description\": \"occaecat et\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/alarms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alarms"
          ]
        }
      },
      "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}"
    }
  ]
}