Log
Get Log
Endpoint to retrieve a single Log by ID
post/logs/{id}/get-item
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
ID of the Log to retrieve
Request body
Example request
{
"select": {
"projectId": true,
"primaryEntityId": true,
"primaryEntityType": true
}
}Response
Successful response
Example response
{
"data": {
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityType": "Example text value",
"time": "example_value",
"timeUnixNano": "example_value",
"severityText": "Example text value",
"severityNumber": 42,
"attributes": "example_value",
"attributeKeys": [
"item1",
"item2",
"item3"
],
"entityKeys": [
"item1",
"item2",
"item3"
],
"serviceEntityKey": "Example text value",
"hostEntityKey": "Example text value",
"k8sPodEntityKey": "Example text value",
"k8sNodeEntityKey": "Example text value",
"k8sClusterEntityKey": "Example text value",
"containerEntityKey": "Example text value",
"traceId": "Example text value",
"spanId": "Example text value",
"sessionId": "Example text value",
"body": "Example text value",
"observedTimeUnixNano": "example_value",
"droppedAttributesCount": 42,
"flags": 42
}
}Changes
No recorded changes to this operation across all 1 revision of this API.