Chilkat Online Tools

SQL Server / Monitoring API / Publishes raw metric data points to the Monitoring service.

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

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

    -- The following JSON is sent in the request body.

    -- {
    --   "metricData": [
    --     {
    --       "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
    --       "datapoints": [
    --         {
    --           "timestamp": "1994-05-17T10:59:55.167Z",
    --           "value": -83252608.68908729,
    --           "count": -10002502
    --         }
    --       ],
    --       "dimensions": {},
    --       "name": "veniam",
    --       "namespace": "fugiat Lorem Excepteur",
    --       "metadata": {},
    --       "resourceGroup": "commodo sunt"
    --     },
    --     {
    --       "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
    --       "datapoints": [
    --         {
    --           "timestamp": "1953-09-20T17:05:02.218Z",
    --           "value": -62004646.91934333,
    --           "count": 42788267
    --         }
    --       ],
    --       "dimensions": {},
    --       "name": "ut elit esse proident",
    --       "namespace": "est sunt cillum tempor",
    --       "metadata": {},
    --       "resourceGroup": "ex et commodo enim eu"
    --     }
    --   ],
    --   "batchAtomicity": "NON_ATOMIC"
    -- }

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[0].compartmentId', 'ocid1.compartment.oc1..exampleuniqueID'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[0].datapoints[0].timestamp', '1994-05-17T10:59:55.167Z'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'metricData[0].datapoints[0].value', '-83252608.68908729'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'metricData[0].datapoints[0].count', -10002502
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'metricData[0].dimensions'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[0].name', 'veniam'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[0].namespace', 'fugiat Lorem Excepteur'
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'metricData[0].metadata'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[0].resourceGroup', 'commodo sunt'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[1].compartmentId', 'ocid1.compartment.oc1..exampleuniqueID'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[1].datapoints[0].timestamp', '1953-09-20T17:05:02.218Z'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'metricData[1].datapoints[0].value', '-62004646.91934333'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'metricData[1].datapoints[0].count', 42788267
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'metricData[1].dimensions'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[1].name', 'ut elit esse proident'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[1].namespace', 'est sunt cillum tempor'
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'metricData[1].metadata'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'metricData[1].resourceGroup', 'ex et commodo enim eu'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'batchAtomicity', 'NON_ATOMIC'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'opc-request-id', 'pariatur nostrud eiusmod'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'x-content-sha256', '{{content_sha256}}'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Authorization', '{{signature}}'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Date', '{{date}}'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://telemetry-ingestion.{{region}}.oraclecloud.com/20180401/metrics', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

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

    -- {
    --   "failedMetricsCount": 72002088,
    --   "failedMetrics": [
    --     {
    --       "message": "dolore",
    --       "metricData": {
    --         "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
    --         "datapoints": [
    --           {
    --             "timestamp": "2000-01-08T07:21:32.073Z",
    --             "value": -85208083.5588465,
    --             "count": -51496551
    --           }
    --         ],
    --         "dimensions": {},
    --         "name": "est consectetur",
    --         "namespace": "fugiat ipsum",
    --         "metadata": {},
    --         "resourceGroup": "anim adipisicing velit irure"
    --       }
    --     },
    --     {
    --       "message": "eu incididunt",
    --       "metricData": {
    --         "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
    --         "datapoints": [
    --           {
    --             "timestamp": "1966-06-29T20:14:12.311Z",
    --             "value": -94922550.57743683,
    --             "count": 58273421
    --           }
    --         ],
    --         "dimensions": {},
    --         "name": "nisi elit ex",
    --         "namespace": "consequat ex",
    --         "metadata": {},
    --         "resourceGroup": "officia id velit"
    --       }
    --     }
    --   ]
    -- }

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

    DECLARE @message nvarchar(4000)

    DECLARE @CompartmentId nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @Namespace nvarchar(4000)

    DECLARE @ResourceGroup nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @timestamp nvarchar(4000)

    DECLARE @value nvarchar(4000)

    DECLARE @count int

    DECLARE @failedMetricsCount int
    EXEC sp_OAMethod @jResp, 'IntOf', @failedMetricsCount OUT, 'failedMetricsCount'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'failedMetrics'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @message OUT, 'failedMetrics[i].message'
        EXEC sp_OAMethod @jResp, 'StringOf', @CompartmentId OUT, 'failedMetrics[i].metricData.compartmentId'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'failedMetrics[i].metricData.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Namespace OUT, 'failedMetrics[i].metricData.namespace'
        EXEC sp_OAMethod @jResp, 'StringOf', @ResourceGroup OUT, 'failedMetrics[i].metricData.resourceGroup'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'failedMetrics[i].metricData.datapoints'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @timestamp OUT, 'failedMetrics[i].metricData.datapoints[j].timestamp'
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'failedMetrics[i].metricData.datapoints[j].value'
            EXEC sp_OAMethod @jResp, 'IntOf', @count OUT, 'failedMetrics[i].metricData.datapoints[j].count'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-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 '{
    "metricData": [
        {
            "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
            "datapoints": [
                {
                    "timestamp": "1994-05-17T10:59:55.167Z",
                    "value": -83252608.68908729,
                    "count": -10002502
                }
            ],
            "dimensions": {},
            "name": "veniam",
            "namespace": "fugiat Lorem Excepteur",
            "metadata": {},
            "resourceGroup": "commodo sunt"
        },
        {
            "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
            "datapoints": [
                {
                    "timestamp": "1953-09-20T17:05:02.218Z",
                    "value": -62004646.91934333,
                    "count": 42788267
                }
            ],
            "dimensions": {},
            "name": "ut elit esse proident",
            "namespace": "est sunt cillum tempor",
            "metadata": {},
            "resourceGroup": "ex et commodo enim eu"
        }
    ],
    "batchAtomicity": "NON_ATOMIC"
}'
https://telemetry-ingestion.{{region}}.oraclecloud.com/20180401/metrics

Postman Collection Item JSON

{
  "name": "Publishes raw metric data points to the Monitoring service.\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"
      },
      {
        "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    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1994-05-17T10:59:55.167Z\",\n                    \"value\": -83252608.68908729,\n                    \"count\": -10002502\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"veniam\",\n            \"namespace\": \"fugiat Lorem Excepteur\",\n            \"metadata\": {},\n            \"resourceGroup\": \"commodo sunt\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1953-09-20T17:05:02.218Z\",\n                    \"value\": -62004646.91934333,\n                    \"count\": 42788267\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"ut elit esse proident\",\n            \"namespace\": \"est sunt cillum tempor\",\n            \"metadata\": {},\n            \"resourceGroup\": \"ex et commodo enim eu\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
    },
    "url": {
      "raw": "{{baseUrlIngestion}}/metrics",
      "host": [
        "{{baseUrlIngestion}}"
      ],
      "path": [
        "metrics"
      ]
    },
    "description": "Publishes raw metric data points to the Monitoring service.\nFor more information about publishing metrics, see [Publishing Custom Metrics](https://docs.oracle.com/iaas/Content/Monitoring/Tasks/publishingcustommetrics.htm).\nFor important limits information, see [Limits on Monitoring](https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits).\n\nPer-call limits information follows.\n\n* Dimensions per metric group*. Maximum: 20. Minimum: 1.\n* Unique metric streams*. Maximum: 50.\n* Transactions Per Second (TPS) per-tenancy limit for this operation: 50.\n\n*A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits.\nA dimension is a qualifier provided in a metric definition.\nA metric stream is an individual set of aggregated data for a metric, typically specific to a resource.\nFor more information about metric-related concepts, see [Monitoring Concepts](https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts).\n\nThe endpoints for this operation differ from other Monitoring operations. Replace the string `telemetry` with `telemetry-ingestion` in the endpoint, as in the following example:\n\nhttps://telemetry-ingestion.eu-frankfurt-1.oraclecloud.com\n"
  },
  "response": [
    {
      "name": "Successfully posted metrics to the Monitoring service.\nThis response means that the request passed the partial or full input validation requirements\ndetermined by the BatchAtomicity parameter value. The default value of NON_ATOMIC requires a\npartial pass:",
      "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_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 \"failedMetricsCount\": 72002088,\n \"failedMetrics\": [\n  {\n   \"message\": \"dolore\",\n   \"metricData\": {\n    \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n    \"datapoints\": [\n     {\n      \"timestamp\": \"2000-01-08T07:21:32.073Z\",\n      \"value\": -85208083.5588465,\n      \"count\": -51496551\n     }\n    ],\n    \"dimensions\": {},\n    \"name\": \"est consectetur\",\n    \"namespace\": \"fugiat ipsum\",\n    \"metadata\": {},\n    \"resourceGroup\": \"anim adipisicing velit irure\"\n   }\n  },\n  {\n   \"message\": \"eu incididunt\",\n   \"metricData\": {\n    \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n    \"datapoints\": [\n     {\n      \"timestamp\": \"1966-06-29T20:14:12.311Z\",\n      \"value\": -94922550.57743683,\n      \"count\": 58273421\n     }\n    ],\n    \"dimensions\": {},\n    \"name\": \"nisi elit ex\",\n    \"namespace\": \"consequat ex\",\n    \"metadata\": {},\n    \"resourceGroup\": \"officia id velit\"\n   }\n  }\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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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": "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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": "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"metricData\": [\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1976-10-03T00:44:27.642Z\",\n                    \"value\": 32639079.99363251,\n                    \"count\": 18349529\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"occaecat nisi non sunt\",\n            \"namespace\": \"ea eu\",\n            \"metadata\": {},\n            \"resourceGroup\": \"magna Excepteur irure exercitation occaecat\"\n        },\n        {\n            \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n            \"datapoints\": [\n                {\n                    \"timestamp\": \"1951-07-18T03:25:24.251Z\",\n                    \"value\": -34569427.02391634,\n                    \"count\": 24600903\n                }\n            ],\n            \"dimensions\": {},\n            \"name\": \"velit reprehenderit culpa officia deserunt\",\n            \"namespace\": \"ad Ut laborum nisi\",\n            \"metadata\": {},\n            \"resourceGroup\": \"do nulla amet sit exercitation\"\n        }\n    ],\n    \"batchAtomicity\": \"NON_ATOMIC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics"
          ]
        }
      },
      "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}"
    }
  ]
}