GET /api/v1/events
Authenticate with Authorization: Bearer YOUR_API_KEY and X-Project-Id: YOUR_PROJECT_ID. Replace path placeholders and example values with your project's values.
Parameters
| Name | Location | Type | Presence | Description |
|---|---|---|---|---|
X-Project-Id | header | string (uuid) | Required | Project UUID. Use the project associated with your API key. |
query | query | string | Optional | |
since | query | string | Optional | |
from | query | string | Optional | |
to | query | string | Optional | |
source | query | string | Optional | |
limit | query | integer | Optional | |
with_children | query | boolean | Optional | |
include_attributes | query | boolean | Optional | |
environment | query | string | Optional | |
service | query | string | Optional |
Examples
curl --request GET 'https://api.monoscope.tech/api/v1/events' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'X-Project-Id: YOUR_PROJECT_ID'import requests
response = requests.get(
"https://api.monoscope.tech/api/v1/events",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"X-Project-Id": "YOUR_PROJECT_ID"
},
timeout=30,
)
response.raise_for_status()
print(response.text)const response = await fetch("https://api.monoscope.tech/api/v1/events", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"X-Project-Id": "YOUR_PROJECT_ID"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());Responses
HTTP 200
Response defined by the API schema.
| Field | Type | Presence | Description |
|---|---|---|---|
colIdxMap | object | Required | |
cols | string[] | Required | |
count | integer | Required | |
cursor | string | Optional | |
error | string | Optional | |
hasMore | boolean | Required | |
logsData | object[][] | Required | |
nextUrl | string | Required | |
queryResultCount | integer | Required | |
recentUrl | string | Required | |
resetLogsUrl | string | Required | |
serviceColors | object | Required | |
traces | object[] | Required | |
viz | logs | timeseries | timeseries_line | top_list | heatmap | patterns | sessions | Optional |
JSON schema
{
"properties": {
"colIdxMap": {
"additionalProperties": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"type": "object"
},
"cols": {
"items": {
"type": "string"
},
"type": "array"
},
"count": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"cursor": {
"type": "string"
},
"error": {
"type": "string"
},
"hasMore": {
"type": "boolean"
},
"logsData": {
"items": {
"items": {
"$ref": "#/components/schemas/JSONValue"
},
"type": "array"
},
"type": "array"
},
"nextUrl": {
"type": "string"
},
"queryResultCount": {
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
"recentUrl": {
"type": "string"
},
"resetLogsUrl": {
"type": "string"
},
"serviceColors": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"traces": {
"items": {
"$ref": "#/components/schemas/TraceTreeEntry"
},
"type": "array"
},
"viz": {
"enum": [
"logs",
"timeseries",
"timeseries_line",
"top_list",
"heatmap",
"patterns",
"sessions"
],
"type": "string"
}
},
"required": [
"logsData",
"cols",
"colIdxMap",
"nextUrl",
"resetLogsUrl",
"recentUrl",
"serviceColors",
"queryResultCount",
"count",
"hasMore",
"traces"
],
"type": "object"
}HTTP 400
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}HTTP 401
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}