Get hourly usage by product family

GET {{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>

Get hourly usage by product family.

Request Params

KeyDatatypeRequiredDescription
filter[timestamp][start]string(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
filter[timestamp][end]stringDatetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending before this hour.
filter[product_families]string(Required) Comma separated list of product families to retrieve. Available families are all, analyzed_logs,
application_security, audit_trail, serverless, ci_app, cloud_cost_management,
csm_container_enterprise, csm_host_enterprise, cspm, custom_events, cws, dbm, fargate,
infra_hosts, incident_management, indexed_logs, indexed_spans, ingested_spans, iot,
lambda_traced_invocations, logs, network_flows, network_hosts, netflow_monitoring, observability_pipelines,
online_archive, profiling, rum, rum_browser_sessions, rum_mobile_sessions, sds, snmp,
synthetics_api, synthetics_browser, synthetics_mobile, synthetics_parallel_testing, and timeseries.
The following product family has been deprecated: audit_logs.
filter[include_descendants]booleanInclude child org usage in the response. Defaults to false.
filter[include_breakdown]booleanInclude breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false.
filter[versions]stringComma separated list of product family versions to use in the format product_family:version. For example,
infra_hosts:1.0.0. If this parameter is not used, the API will use the latest version of each requested
product family. Currently all families have one version 1.0.0.
page[limit]numberMaximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified.
page[next_record_id]stringList following results with a next_record_id provided in the previous query.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;attributes&quot;:{&quot;measurements&quot;:[{&quot;usage_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003clong\u003e&quot;},{&quot;usage_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003clong\u003e&quot;}],&quot;org_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;product_family&quot;:&quot;\u003cstring\u003e&quot;,&quot;public_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;region&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;usage_timeseries&quot;},{&quot;attributes&quot;:{&quot;measurements&quot;:[{&quot;usage_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003clong\u003e&quot;},{&quot;usage_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003clong\u003e&quot;}],&quot;org_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;product_family&quot;:&quot;\u003cstring\u003e&quot;,&quot;public_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;region&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;usage_timeseries&quot;}],&quot;meta&quot;:{&quot;pagination&quot;:{&quot;next_record_id&quot;:&quot;\u003cstring\u003e&quot;}}}