Chilkat Online Tools

SQL Server / Datadog API Collection / Get hourly usage by product family

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

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

    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[timestamp][start]', '<dateTime>'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[timestamp][end]', '<dateTime>'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[product_families]', '<string>'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[include_descendants]', 'false'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[include_breakdown]', 'false'
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[versions]', '<string>'
    EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'page[limit]', 500
    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'page[next_record_id]', '<string>'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json;datetime-format=rfc3339'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://api.app.ddog-gov.com/api/v2/usage/hourly_usage', @queryParams
    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 @queryParams
        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 @queryParams
        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)

    -- {
    --   "data": [
    --     {
    --       "attributes": {
    --         "measurements": [
    --           {
    --             "usage_type": "<string>",
    --             "value": "<long>"
    --           },
    --           {
    --             "usage_type": "<string>",
    --             "value": "<long>"
    --           }
    --         ],
    --         "org_name": "<string>",
    --         "product_family": "<string>",
    --         "public_id": "<string>",
    --         "region": "<string>",
    --         "timestamp": "<dateTime>"
    --       },
    --       "id": "<string>",
    --       "type": "usage_timeseries"
    --     },
    --     {
    --       "attributes": {
    --         "measurements": [
    --           {
    --             "usage_type": "<string>",
    --             "value": "<long>"
    --           },
    --           {
    --             "usage_type": "<string>",
    --             "value": "<long>"
    --           }
    --         ],
    --         "org_name": "<string>",
    --         "product_family": "<string>",
    --         "public_id": "<string>",
    --         "region": "<string>",
    --         "timestamp": "<dateTime>"
    --       },
    --       "id": "<string>",
    --       "type": "usage_timeseries"
    --     }
    --   ],
    --   "meta": {
    --     "pagination": {
    --       "next_record_id": "<string>"
    --     }
    --   }
    -- }

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

    DECLARE @Org_name nvarchar(4000)

    DECLARE @Product_family nvarchar(4000)

    DECLARE @Public_id nvarchar(4000)

    DECLARE @Region nvarchar(4000)

    DECLARE @Timestamp nvarchar(4000)

    DECLARE @id nvarchar(4000)

    DECLARE @v_type nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @usage_type nvarchar(4000)

    DECLARE @value nvarchar(4000)

    DECLARE @Next_record_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Next_record_id OUT, 'meta.pagination.next_record_id'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @Org_name OUT, 'data[i].attributes.org_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Product_family OUT, 'data[i].attributes.product_family'
        EXEC sp_OAMethod @jResp, 'StringOf', @Public_id OUT, 'data[i].attributes.public_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Region OUT, 'data[i].attributes.region'
        EXEC sp_OAMethod @jResp, 'StringOf', @Timestamp OUT, 'data[i].attributes.timestamp'
        EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'data[i].id'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'data[i].type'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'data[i].attributes.measurements'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @usage_type OUT, 'data[i].attributes.measurements[j].usage_type'
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'data[i].attributes.measurements[j].value'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

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


END
GO

Curl Command

curl -G -d "filter[timestamp][start]=%3CdateTime%3E"
	-d "filter[timestamp][end]=%3CdateTime%3E"
	-d "filter[product_families]=%3Cstring%3E"
	-d "filter[include_descendants]=false"
	-d "filter[include_breakdown]=false"
	-d "filter[versions]=%3Cstring%3E"
	-d "page[limit]=500"
	-d "page[next_record_id]=%3Cstring%3E"
	-H "Accept: application/json;datetime-format=rfc3339"
https://api.app.ddog-gov.com/api/v2/usage/hourly_usage

Postman Collection Item JSON

{
  "name": "Get hourly usage by product family",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json;datetime-format=rfc3339"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/usage/hourly_usage?filter[timestamp][start]=<dateTime>&filter[timestamp][end]=<dateTime>&filter[product_families]=<string>&filter[include_descendants]=false&filter[include_breakdown]=false&filter[versions]=<string>&page[limit]=500&page[next_record_id]=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "usage",
        "hourly_usage"
      ],
      "query": [
        {
          "key": "filter[timestamp][start]",
          "value": "<dateTime>",
          "description": "(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour."
        },
        {
          "key": "filter[timestamp][end]",
          "value": "<dateTime>",
          "description": "Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour."
        },
        {
          "key": "filter[product_families]",
          "value": "<string>",
          "description": "(Required) Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,\n`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,\n`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,\n`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,\n`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,\n`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,\n`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.\nThe following product family has been **deprecated**: `audit_logs`."
        },
        {
          "key": "filter[include_descendants]",
          "value": "false",
          "description": "Include child org usage in the response. Defaults to false."
        },
        {
          "key": "filter[include_breakdown]",
          "value": "false",
          "description": "Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false."
        },
        {
          "key": "filter[versions]",
          "value": "<string>",
          "description": "Comma separated list of product family versions to use in the format `product_family:version`. For example,\n`infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested\nproduct family. Currently all families have one version `1.0.0`."
        },
        {
          "key": "page[limit]",
          "value": "500",
          "description": "Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified."
        },
        {
          "key": "page[next_record_id]",
          "value": "<string>",
          "description": "List following results with a next_record_id provided in the previous query."
        }
      ]
    },
    "description": "Get hourly usage by product family."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json;datetime-format=rfc3339"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/usage/hourly_usage?filter[timestamp][start]=<dateTime>&filter[timestamp][end]=<dateTime>&filter[product_families]=<string>&filter[include_descendants]=false&filter[include_breakdown]=false&filter[versions]=<string>&page[limit]=500&page[next_record_id]=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "usage",
            "hourly_usage"
          ],
          "query": [
            {
              "key": "filter[timestamp][start]",
              "value": "<dateTime>",
              "description": "(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour."
            },
            {
              "key": "filter[timestamp][end]",
              "value": "<dateTime>",
              "description": "Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour."
            },
            {
              "key": "filter[product_families]",
              "value": "<string>",
              "description": "(Required) Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,\n`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,\n`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,\n`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,\n`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,\n`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,\n`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.\nThe following product family has been **deprecated**: `audit_logs`."
            },
            {
              "key": "filter[include_descendants]",
              "value": "false",
              "description": "Include child org usage in the response. Defaults to false."
            },
            {
              "key": "filter[include_breakdown]",
              "value": "false",
              "description": "Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false."
            },
            {
              "key": "filter[versions]",
              "value": "<string>",
              "description": "Comma separated list of product family versions to use in the format `product_family:version`. For example,\n`infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested\nproduct family. Currently all families have one version `1.0.0`."
            },
            {
              "key": "page[limit]",
              "value": "500",
              "description": "Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified."
            },
            {
              "key": "page[next_record_id]",
              "value": "<string>",
              "description": "List following results with a next_record_id provided in the previous query."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json;datetime-format=rfc3339"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"data\": [\n    {\n      \"attributes\": {\n        \"measurements\": [\n          {\n            \"usage_type\": \"<string>\",\n            \"value\": \"<long>\"\n          },\n          {\n            \"usage_type\": \"<string>\",\n            \"value\": \"<long>\"\n          }\n        ],\n        \"org_name\": \"<string>\",\n        \"product_family\": \"<string>\",\n        \"public_id\": \"<string>\",\n        \"region\": \"<string>\",\n        \"timestamp\": \"<dateTime>\"\n      },\n      \"id\": \"<string>\",\n      \"type\": \"usage_timeseries\"\n    },\n    {\n      \"attributes\": {\n        \"measurements\": [\n          {\n            \"usage_type\": \"<string>\",\n            \"value\": \"<long>\"\n          },\n          {\n            \"usage_type\": \"<string>\",\n            \"value\": \"<long>\"\n          }\n        ],\n        \"org_name\": \"<string>\",\n        \"product_family\": \"<string>\",\n        \"public_id\": \"<string>\",\n        \"region\": \"<string>\",\n        \"timestamp\": \"<dateTime>\"\n      },\n      \"id\": \"<string>\",\n      \"type\": \"usage_timeseries\"\n    }\n  ],\n  \"meta\": {\n    \"pagination\": {\n      \"next_record_id\": \"<string>\"\n    }\n  }\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json;datetime-format=rfc3339"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/usage/hourly_usage?filter[timestamp][start]=<dateTime>&filter[timestamp][end]=<dateTime>&filter[product_families]=<string>&filter[include_descendants]=false&filter[include_breakdown]=false&filter[versions]=<string>&page[limit]=500&page[next_record_id]=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "usage",
            "hourly_usage"
          ],
          "query": [
            {
              "key": "filter[timestamp][start]",
              "value": "<dateTime>",
              "description": "(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour."
            },
            {
              "key": "filter[timestamp][end]",
              "value": "<dateTime>",
              "description": "Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour."
            },
            {
              "key": "filter[product_families]",
              "value": "<string>",
              "description": "(Required) Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,\n`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,\n`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,\n`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,\n`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,\n`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,\n`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.\nThe following product family has been **deprecated**: `audit_logs`."
            },
            {
              "key": "filter[include_descendants]",
              "value": "false",
              "description": "Include child org usage in the response. Defaults to false."
            },
            {
              "key": "filter[include_breakdown]",
              "value": "false",
              "description": "Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false."
            },
            {
              "key": "filter[versions]",
              "value": "<string>",
              "description": "Comma separated list of product family versions to use in the format `product_family:version`. For example,\n`infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested\nproduct family. Currently all families have one version `1.0.0`."
            },
            {
              "key": "page[limit]",
              "value": "500",
              "description": "Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified."
            },
            {
              "key": "page[next_record_id]",
              "value": "<string>",
              "description": "List following results with a next_record_id provided in the previous query."
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json;datetime-format=rfc3339"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    },
    {
      "name": "Forbidden - User is not authorized",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json;datetime-format=rfc3339"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/usage/hourly_usage?filter[timestamp][start]=<dateTime>&filter[timestamp][end]=<dateTime>&filter[product_families]=<string>&filter[include_descendants]=false&filter[include_breakdown]=false&filter[versions]=<string>&page[limit]=500&page[next_record_id]=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "usage",
            "hourly_usage"
          ],
          "query": [
            {
              "key": "filter[timestamp][start]",
              "value": "<dateTime>",
              "description": "(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour."
            },
            {
              "key": "filter[timestamp][end]",
              "value": "<dateTime>",
              "description": "Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour."
            },
            {
              "key": "filter[product_families]",
              "value": "<string>",
              "description": "(Required) Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,\n`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,\n`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,\n`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,\n`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,\n`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,\n`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.\nThe following product family has been **deprecated**: `audit_logs`."
            },
            {
              "key": "filter[include_descendants]",
              "value": "false",
              "description": "Include child org usage in the response. Defaults to false."
            },
            {
              "key": "filter[include_breakdown]",
              "value": "false",
              "description": "Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false."
            },
            {
              "key": "filter[versions]",
              "value": "<string>",
              "description": "Comma separated list of product family versions to use in the format `product_family:version`. For example,\n`infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested\nproduct family. Currently all families have one version `1.0.0`."
            },
            {
              "key": "page[limit]",
              "value": "500",
              "description": "Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified."
            },
            {
              "key": "page[next_record_id]",
              "value": "<string>",
              "description": "List following results with a next_record_id provided in the previous query."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json;datetime-format=rfc3339"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json;datetime-format=rfc3339"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/usage/hourly_usage?filter[timestamp][start]=<dateTime>&filter[timestamp][end]=<dateTime>&filter[product_families]=<string>&filter[include_descendants]=false&filter[include_breakdown]=false&filter[versions]=<string>&page[limit]=500&page[next_record_id]=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "usage",
            "hourly_usage"
          ],
          "query": [
            {
              "key": "filter[timestamp][start]",
              "value": "<dateTime>",
              "description": "(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour."
            },
            {
              "key": "filter[timestamp][end]",
              "value": "<dateTime>",
              "description": "Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour."
            },
            {
              "key": "filter[product_families]",
              "value": "<string>",
              "description": "(Required) Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,\n`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,\n`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,\n`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,\n`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,\n`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,\n`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`.\nThe following product family has been **deprecated**: `audit_logs`."
            },
            {
              "key": "filter[include_descendants]",
              "value": "false",
              "description": "Include child org usage in the response. Defaults to false."
            },
            {
              "key": "filter[include_breakdown]",
              "value": "false",
              "description": "Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false."
            },
            {
              "key": "filter[versions]",
              "value": "<string>",
              "description": "Comma separated list of product family versions to use in the format `product_family:version`. For example,\n`infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested\nproduct family. Currently all families have one version `1.0.0`."
            },
            {
              "key": "page[limit]",
              "value": "500",
              "description": "Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified."
            },
            {
              "key": "page[next_record_id]",
              "value": "<string>",
              "description": "List following results with a next_record_id provided in the previous query."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json;datetime-format=rfc3339"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    }
  ]
}