Get events usage

GET
/api/v2/usage/events/:type

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

typestringRequired

The type of event to retrieve. Must be either received or published.

Query parameters

fromstringOptional

The series of data returned starts from this timestamp. Defaults to 24 hours ago.

tostringOptional

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

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