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
- 200
- 401
- 500
- 502
- 504
Content type
application/json
{- "data": [
- {
- "id": 0,
- "type": "string",
- "title": "string",
- "message": "string",
- "details": {
- "type": "string",
- "data": { }
}, - "time": "2019-08-24T14:15:22Z",
- "sourceType": "string",
- "sourceNamespace": "string",
- "sourceId": "string"
}
], - "facets": [
- {
- "id": "string",
- "name": "string",
- "values": [
- {
- "id": "string",
- "name": "string",
- "count": 0
}
]
}
]
}
Create a new event
header Parameters
X-Scope-OrgID | string Scope header |
Api-Version | string API version |
Request Body schema: application/jsonrequired
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
- Payload
Content type
application/json
{- "type": "string",
- "title": "string",
- "message": "string",
- "details": {
- "type": "string",
- "data": { }
}, - "time": "2019-08-24T14:15:22Z",
- "sourceType": "string",
- "sourceNamespace": "string",
- "sourceId": "string"
}
Response samples
- 201
- 400
- 401
- 403
- 500
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
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "id": 0,
- "type": "string",
- "title": "string",
- "message": "string",
- "details": {
- "type": "string",
- "data": { }
}, - "time": "2019-08-24T14:15:22Z",
- "sourceType": "string",
- "sourceNamespace": "string",
- "sourceId": "string"
}