Chilkat Online Tools

ERROR!

------------------- GenerateCode ----------------------
ImpliedContentType: application/json
explicitContentType: application/json
---- begin chilkat script ----
// This example assumes the Chilkat API to have been previously unlocked.
// See {{-global_unlock:::Global Unlock Sample-}} for sample code.

new Http http;
ckbool success;

// Use this online tool to generate code from sample JSON: {{.https://tools.chilkat.io/jsonCreate|||Generate Code to Create JSON.}}

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

// {
//   "dimensionFilters": {},
//   "groupBy": [
//     "aliqua nisi incididunt magna Excepteur",
//     "eu et non laborum dolor"
//   ],
//   "name": "amet ut",
//   "namespace": "Ut dolore",
//   "resourceGroup": "aliqua sed",
//   "sortBy": "NAME",
//   "sortOrder": "ASC"
// }

new JsonObject json;
ignore = json.UpdateNewObject("dimensionFilters");
ignore = json.UpdateString("groupBy[0]","aliqua nisi incididunt magna Excepteur");
ignore = json.UpdateString("groupBy[1]","eu et non laborum dolor");
ignore = json.UpdateString("name","amet ut");
ignore = json.UpdateString("namespace","Ut dolore");
ignore = json.UpdateString("resourceGroup","aliqua sed");
ignore = json.UpdateString("sortBy","NAME");
ignore = json.UpdateString("sortOrder","ASC");

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

HttpResponse resp = http.PostJson3("https://telemetry-ingestion.{{region}}.oraclecloud.com/20180401/metrics/actions/listMetrics?compartmentId={{compartment_ocid}}&page=&limit=576&compartmentIdInSubtree=true","application/json",json);
if (http.LastMethodSuccess == ckfalse) {
    println http.LastErrorText;
    return;
}

new StringBuilder sbResponseBody;
ignore = resp.GetBodySb(sbResponseBody);

new JsonArray jarrResp;
call jarrResp.LoadSb(sbResponseBody);
jarrResp.EmitCompact = ckfalse;

println "Response Body:";
println jarrResp.Emit();

int respStatusCode = resp.StatusCode;
println "Response Status Code = ",respStatusCode;
if (respStatusCode >= 400) {
    println "Response Header:";
    println resp.Header;
    println "Failed.";
    delete resp;
    return;
}
delete resp;

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

// [
//   {
//     "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
//     "dimensions": {},
//     "name": "in veniam",
//     "namespace": "ut eu ex deserunt",
//     "resourceGroup": "sunt dolor dolore ea ipsum"
//   },
//   {
//     "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
//     "dimensions": {},
//     "name": "tempor nisi",
//     "namespace": "aliquip occaecat ullamco aute sint",
//     "resourceGroup": "cillum laboris"
//   }
// ]

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: {{.https://tools.chilkat.io/jsonParse|||Generate JSON Parsing Code.}}

#ifdef IS_C_CPP
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
#undef IS_C_CPP

JsonObject json;
string compartmentId;
string name;
string namespace;
string resourceGroup;

int i = 0;
int count_i = jarrResp.Size;
while i < count_i {
    json = jarrResp.ObjectAt(i);
    compartmentId = json.StringOf("compartmentId");
    name = json.StringOf("name");
    namespace = json.StringOf("namespace");
    resourceGroup = json.StringOf("resourceGroup");
    delete json;
    i = i + 1;
}



---- end chilkat script ----

delphiAx / Monitoring API / List metrics based on matching criteria.

Back to Collection Items

var
http: TChilkatHttp;
success: Integer;
json: TChilkatJsonObject;
resp: IChilkatHttpResponse;
sbResponseBody: TChilkatStringBuilder;
jarrResp: TChilkatJsonArray;
respStatusCode: Integer;
json: IChilkatJsonObject;
compartmentId: WideString;
name: WideString;
namespace: WideString;
resourceGroup: WideString;
i: Integer;
count_i: Integer;

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

http := TChilkatHttp.Create(Self);

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

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

// {
//   "dimensionFilters": {},
//   "groupBy": [
//     "aliqua nisi incididunt magna Excepteur",
//     "eu et non laborum dolor"
//   ],
//   "name": "amet ut",
//   "namespace": "Ut dolore",
//   "resourceGroup": "aliqua sed",
//   "sortBy": "NAME",
//   "sortOrder": "ASC"
// }

json := TChilkatJsonObject.Create(Self);
json.UpdateNewObject('dimensionFilters');
json.UpdateString('groupBy[0]','aliqua nisi incididunt magna Excepteur');
json.UpdateString('groupBy[1]','eu et non laborum dolor');
json.UpdateString('name','amet ut');
json.UpdateString('namespace','Ut dolore');
json.UpdateString('resourceGroup','aliqua sed');
json.UpdateString('sortBy','NAME');
json.UpdateString('sortOrder','ASC');

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}}');

resp := http.PostJson3('https://telemetry-ingestion.{{region}}.oraclecloud.com/20180401/metrics/actions/listMetrics?compartmentId={{compartment_ocid}}&page=&limit=576&compartmentIdInSubtree=true','application/json',json.ControlInterface);
if (http.LastMethodSuccess = 0) then
  begin
    Memo1.Lines.Add(http.LastErrorText);
    Exit;
  end;

sbResponseBody := TChilkatStringBuilder.Create(Self);
resp.GetBodySb(sbResponseBody.ControlInterface);

jarrResp := TChilkatJsonArray.Create(Self);
jarrResp.LoadSb(sbResponseBody.ControlInterface);
jarrResp.EmitCompact := 0;

Memo1.Lines.Add('Response Body:');
Memo1.Lines.Add(jarrResp.Emit());

respStatusCode := resp.StatusCode;
Memo1.Lines.Add('Response Status Code = ' + IntToStr(respStatusCode));
if (respStatusCode >= 400) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(resp.Header);
    Memo1.Lines.Add('Failed.');

    Exit;
  end;

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

// [
//   {
//     "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
//     "dimensions": {},
//     "name": "in veniam",
//     "namespace": "ut eu ex deserunt",
//     "resourceGroup": "sunt dolor dolore ea ipsum"
//   },
//   {
//     "compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
//     "dimensions": {},
//     "name": "tempor nisi",
//     "namespace": "aliquip occaecat ullamco aute sint",
//     "resourceGroup": "cillum laboris"
//   }
// ]

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

ERROR: Var already declared: json

i := 0;
count_i := jarrResp.Size;
while i < count_i do
  begin
    json := jarrResp.ObjectAt(i);
    compartmentId := json.StringOf('compartmentId');
    name := json.StringOf('name');
    namespace := json.StringOf('namespace');
    resourceGroup := json.StringOf('resourceGroup');

    i := i + 1;
  end;

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 '{
    "dimensionFilters": {},
    "groupBy": [
        "aliqua nisi incididunt magna Excepteur",
        "eu et non laborum dolor"
    ],
    "name": "amet ut",
    "namespace": "Ut dolore",
    "resourceGroup": "aliqua sed",
    "sortBy": "NAME",
    "sortOrder": "ASC"
}'
https://telemetry-ingestion.{{region}}.oraclecloud.com/20180401/metrics/actions/listMetrics?compartmentId={{compartment_ocid}}&page=&limit=576&compartmentIdInSubtree=true

Postman Collection Item JSON

{
  "name": "List metrics based on matching criteria.",
  "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"aliqua nisi incididunt magna Excepteur\",\n        \"eu et non laborum dolor\"\n    ],\n    \"name\": \"amet ut\",\n    \"namespace\": \"Ut dolore\",\n    \"resourceGroup\": \"aliqua sed\",\n    \"sortBy\": \"NAME\",\n    \"sortOrder\": \"ASC\"\n}"
    },
    "url": {
      "raw": "{{baseUrlIngestion}}/metrics/actions/listMetrics?compartmentId={{compartment_ocid}}&page=&limit=576&compartmentIdInSubtree=true",
      "host": [
        "{{baseUrlIngestion}}"
      ],
      "path": [
        "metrics",
        "actions",
        "listMetrics"
      ],
      "query": [
        {
          "key": "compartmentId",
          "value": "{{compartment_ocid}}",
          "description": "(Required) The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the\nresources monitored by the metric that you are searching for. Use tenancyId to search in\nthe root compartment.\n\nExample: `ocid1.compartment.oc1..exampleuniqueID`\n"
        },
        {
          "key": "page",
          "value": "",
          "description": "For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.\nFor important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).\n"
        },
        {
          "key": "limit",
          "value": "576",
          "description": "For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.\nFor important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).\n\nDefault: 1000\n\nExample: 500\n"
        },
        {
          "key": "compartmentIdInSubtree",
          "value": "true",
          "description": "When true, returns resources from all compartments and subcompartments. The parameter can\nonly be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment).\nA true value requires the user to have tenancy-level permissions. If this requirement is not met,\nthen the call is rejected. When false, returns resources from only the compartment specified in\ncompartmentId. Default is false.\n"
        }
      ]
    },
    "description": "Returns metric definitions that match the criteria specified in the request. Compartment OCID required.\nFor information about metrics, see [Metrics Overview](https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview).\nFor important limits information, see [Limits on Monitoring](https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits).\n\nTransactions Per Second (TPS) per-tenancy limit for this operation: 10.\n"
  },
  "response": [
    {
      "name": "The metric definitions were successfully retrieved.\n",
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-next-page",
          "value": "pariatur nostrud eiusmod",
          "description": "For list pagination. When this header appears in the response, additional pages of results remain.\nFor important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).\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 {\n  \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n  \"dimensions\": {},\n  \"name\": \"in veniam\",\n  \"namespace\": \"ut eu ex deserunt\",\n  \"resourceGroup\": \"sunt dolor dolore ea ipsum\"\n },\n {\n  \"compartmentId\": \"ocid1.compartment.oc1..exampleuniqueID\",\n  \"dimensions\": {},\n  \"name\": \"tempor nisi\",\n  \"namespace\": \"aliquip occaecat ullamco aute sint\",\n  \"resourceGroup\": \"cillum laboris\"\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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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    \"dimensionFilters\": {},\n    \"groupBy\": [\n        \"ea dolor tempor nostrud\",\n        \"cillum ea in\"\n    ],\n    \"name\": \"exercitation dolor\",\n    \"namespace\": \"elit consectetur\",\n    \"resourceGroup\": \"enim adipis\",\n    \"sortBy\": \"NAMESPACE\",\n    \"sortOrder\": \"DESC\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/metrics/actions/listMetrics?compartmentId=mollit in Duis enim&page=do ipsum&limit=576&compartmentIdInSubtree=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "metrics",
            "actions",
            "listMetrics"
          ],
          "query": [
            {
              "key": "compartmentId",
              "value": "mollit in Duis enim"
            },
            {
              "key": "page",
              "value": "do ipsum"
            },
            {
              "key": "limit",
              "value": "576"
            },
            {
              "key": "compartmentIdInSubtree",
              "value": "true"
            }
          ]
        }
      },
      "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}"
    }
  ]
}