Skip to content
  • There are no suggestions because the search field is empty.

Resource Metrics and Usage Analytics

get-metric-names

Fetches metric names for a resource.
Parameters:
--company [company slug]
--id [12345]
--resource-id [cloud-resource-id]

get-metric-names-for-resource-type

Fetches metric names for provided resource type.
Parameters:
--company [company slug]
--resource-type [string]

get-metric-check-results

Gets the metric check results for a resource.
Parameters:
--company [company_id]
--id [resource id]
--resource-id [cloud-resource-id]

get-aggregate-metrics

Gets the aggregate metrics for a resource.
Parameters:
--granularity ['Day' or 'Hour']
--metric-check-result-id (optional) [metric check result id]
--offset (optional) [number] assists in pagination of records, default is 0
--limit (optional) [number] assists in pagination of records, default is 100, max is 250
--resource-id (optional) [database resource id]
--metric-type (optional) [string]
--calculated-at-from (optional) [timestamp]
--calculated-at-to (optional) [timestamp]

upload-metrics

Uploads a file of metrics for a resource.
Parameters:
--company [company_id]
--account [account_id]
--resource-id [cloud-resource-id]
--metrics [path to metrics file]

get-usage-analytics

Calculates the resource usage analytics for given criteria.
Parameters:
--id [resource_id]
--metric-type [string]
--analysis-type (optional) [string]
--grouping-period (optional) [h | d | m | y]
--calculated-at-from (optional) [2021-09-01T00:00:00.000Z]
--calculated-at-to (optional) [2023-10-01T00:00:00.000Z]