Get cardinality

Retrieve metrics cardinality per dimension

Use this API to retrieve metric cardinality per dimension. The response returns dimensions sorted by the cardinality of their values, along with example metrics.

Request Arguments

NameDescription
startTimeRequired. Fetch metrics starting from this time (Unix timestamp in seconds). Maximum: 90 days in the past.
endTimeRequired. Fetch metrics up to this time (Unix timestamp in seconds).
sizeNumber of dimensions to return.
dimsComma-separated list of dimensions to include in the results.
streamName of the stream to retrieve results for.
fromStarting index for pagination (0-based integer).

Response Fields

If successful, the API returns an array of cardinality objects (as described below), along with high-level metadata.

ParameterDescription
totalMetricsNumber of metrics that match the criteria.
startIndexStarting index for this result set.
nextIndexIndex of the next batch of metrics (used for pagination).
cardinalityCardinality of the metric (number of unique values).
examplesArray of example metrics.
whatThe measure to which the metric belongs.
Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json