Skip to main content

Events service (v1)

Download OpenAPI specification:Download

events

Get events for given parameters with facets

query Parameters
startTimestamp
required
integer <int64> >= 0

From timestamp in seconds

endTimestamp
required
integer <int64> >= 0

To timestamp in seconds

sourceNamespace
Array of strings

Namespaces

sourceId
Array of strings

Source ids

title
Array of strings

Titles

type
Array of strings

Event types

header Parameters
X-Scope-OrgID
string

Scope header

Api-Version
string

API version

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "facets": [
    ]
}

Create a new event

header Parameters
X-Scope-OrgID
string

Scope header

Api-Version
string

API version

Request Body schema: application/json
required

JSON representation of the event to be created

type
required
string [ 1 .. 255 ] characters
title
required
string [ 1 .. 255 ] characters
message
required
string <= 255 characters
required
object (Event.Details)
time
required
string <date-time>
sourceType
required
string <= 255 characters
sourceNamespace
required
string <= 255 characters
sourceId
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "type": "string",
  • "title": "string",
  • "message": "string",
  • "details": {
    },
  • "time": "2019-08-24T14:15:22Z",
  • "sourceType": "string",
  • "sourceNamespace": "string",
  • "sourceId": "string"
}

Response samples

Content type
text/plain
1

Get event

path Parameters
id
required
integer <int64>

Event identifier

header Parameters
X-Scope-OrgID
string

Scope header

Api-Version
string

API version

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "type": "string",
  • "title": "string",
  • "message": "string",
  • "details": {
    },
  • "time": "2019-08-24T14:15:22Z",
  • "sourceType": "string",
  • "sourceNamespace": "string",
  • "sourceId": "string"
}