Skip to main content
GET
/
api
/
v1
/
data
/
events
{
  "events": [
    {
      "category": "<string>",
      "happened_at": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "labels": {},
      "payload_json": "<string>",
      "payload_object": {},
      "source": "<string>",
      "title": "<string>",
      "type": "<string>"
    }
  ],
  "page": {
    "next_token": "<string>"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Query Parameters

happened_after
string<date-time>

Only events which happened_at after this time will be returned. If set, happened_before must also be set. If no time range is set, defaults to 1 hour ago.

happened_before
string<date-time>

Only events which happened_at before this will be returned. If set, happened_after must also be set. If no time range is set, defaults to now.

query
string

A query string specifying the query. The query supports the following operators: (=, =~, !=, !~, AND, OR) The query supports nesting using parentheses, and also searching for label values by using a dot operator. The query supports using either ' or " for identifying strings

Example queries: type = "my-type" type="my-type" type != 'my-type' AND source !~ "my-source|my-other-source" type =~ "my-type|my-other-type" OR (source != "my-source" AND labels.cluster =~ "my-cluster")

page.max_size
integer<int64>

Sets the preferred number of items to return per page. If set to 0, the server will use its default value. Regardless of the value specified, clients must never assume how many items will be returned.

page.token
string

An opaque page token that identifies which page the client should request. An empty value indicates the first page.

Response

A successful response.

events
object[]
page
object