Get active occurrence counts

Analogous to "Hourly Error/Critical Occurrences" and "Daily Error/Critical Occurrences" on the Project Dashboard.

Returns an array of recent counts as [timestamp, count] pairs, where each count is the number of matching active occurrences in the time range [timestamp, timestamp + bucket_size - 1].

Timestamps are UNIX timestamps, in whole seconds.

Response

{
  "err": 0,
  "result": [
    [
      // timestamp
      1728561200,
      // count (number of occurrences from time 1728561200 until time 1728564799)
      0
    ],
    [
      1728564800,
      0
    ],
    [
      1728568400,
      0
    ],
    [
      1728572000,
      6
    ]
  ]
}```

 
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
Defaults to 86400

Size of each bucket, in seconds. Valid values are 60 (minute), 3600 (hour), and 86400 (day). Timezone for all buckets is GMT.

string

Comma-separated list of environments to filter by. Empty means "any environment".

string
Defaults to error

Minimum item level to filter by. One of debug, info, warning, error, or critical.

string

Maximum item level to filter by. One of debug, info, warning, error, or critical

int32

Item ID to filter by.

Headers
string
required

Use a Project Access Token with 'read' scope

Response
200

success

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!