Get Agent Logs
Returns logs emitted by an Agent.
Path Parameters
The ID of the agent to get logs for.
Query Parameters
The earliest timestamp (as seconds since the epoch) to query.
Defaults to 15 minutes before the current time.
The latest timestamp (as seconds since the epoch) to query.
Defaults to the current time.
The maximum number of logs to return.
Defaults to 100. Cannot be more than 1000.
The offset of the first log to return.
The minimum severity of logs to return.
Defaults to 9 (INFO). See https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-severitynumber for more information.
The ID of the conversation to get logs for.
The ID of the message to get logs for.
- 200
- default
OK
Schema
- Array [
- ]
logs object[]
The timestamp of the log event.
The trace ID that this log event is associated with.
The span ID that this log event is associated with.
The severity of the log event.
See https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-severitynumber for more information.
The log message.
Additional attributes that were logged.
{
"logs": [
{
"timestamp": "2024-03-07T22:56:08.360Z",
"traceId": "string",
"spanId": "string",
"severity": 0,
"message": "string",
"attributes": {}
}
]
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}