Occurrences over a span of time (v2)

Same as /api/1/metrics/occurrences, except that occurrence ids are 32-character lowercase hexadecimal strings (see API versions):

  • in the response, every occurrence_id value, whether from group_by: ["occurrence_id"] or from a max, min, topk or array aggregate over occurrence_id, and last_occurrence_id when the response carries one;
  • in the request, the values of an occurrence_id filter, which also accept the decimal number. A value that is not an occurrence id, such as a like pattern, is a 400.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer

Unix timestamp of start time for the query. Optional. When missing, or earlier than the account's data retention, the query starts at the retention boundary

integer

Unix timestamp of end time for the query, inclusive. Optional. When missing, the range has no upper bound

filters
array of objects

Array of filters, all of which must match. Supported operators: eq, ne, gt, gte, lt, lte, like, ilike, is_null, and not_null. Only eq and ne accept more than one value. See the endpoint description for details

filters
group_by
array of objects

An array of column names on which to group the results

group_by
aggregates
array of objects

An array of columns on which an aggregate function should be performed for each group. Supported functions are: count_all, count_distinct, max, min, sum, topk, quantiles, array, and json_array_length

aggregates
sort

Sort on one field, or on several in order of priority. Default is timestamp ascending

string
enum

Timepoint size of the returned results. Optional. Without it, all rows are returned in a single timepoint

Allowed:
string

Timezone used to bucket timepoints. Optional, default is UTC. Other examples: US/Pacific, Europe/London, Japan, and etc.

integer

Total rows/groups to return in the set. Optional. With neither limit nor offset, every row is returned. With only offset, the default is 25

integer

Number of rows/groups to skip before the first one returned. Optional, default is 0

Headers
string
required

Use a Project or Account Access Token with 'read' scope. An Account Access Token names the project with project_id on an endpoint that acts on one project, and a personal access token can do only what its user is permitted to.

Responses

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