Get evaluations usage

GET
/api/v2/usage/evaluations/:projectKey/:environmentKey/:featureFlagKey

Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.

Path parameters

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

featureFlagKeystringRequired

The feature flag key

Query parameters

fromstringOptional

The series of data returned starts from this timestamp. Defaults to 30 days ago.

tostringOptional

The series of data returned ends at this timestamp. Defaults to the current time.

tzstringOptional

The timezone to use for breaks between days when returning daily data.

Response

Usage response

metadatalist of maps from strings to any

Metadata about each series

serieslist of maps from strings to integers

An array of data points with timestamps. Each element of the array is an object with a ‘time’ field, whose value is the timestamp, and one or more key fields. If there are multiple key fields, they are labeled ‘0’, ‘1’, and so on, and are explained in the metadata.

Errors

Built with