Files
pikasTech-HWLAB/protocol/schemas/trace-event.schema.json
T
2026-05-21 14:27:53 +00:00

58 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hwlab.pikastech.local/protocol/schemas/trace-event.schema.json",
"title": "HWLAB Agent Trace Event",
"type": "object",
"required": [
"traceEventId",
"traceId",
"projectId",
"serviceId",
"level",
"message",
"environment",
"occurredAt"
],
"properties": {
"traceEventId": {
"$ref": "common.json#/$defs/id"
},
"traceId": {
"$ref": "common.json#/$defs/id"
},
"projectId": {
"$ref": "common.json#/$defs/id"
},
"agentSessionId": {
"$ref": "common.json#/$defs/id"
},
"workerSessionId": {
"$ref": "common.json#/$defs/id"
},
"operationId": {
"$ref": "common.json#/$defs/id"
},
"serviceId": {
"$ref": "common.json#/$defs/serviceId"
},
"level": {
"$ref": "common.json#/$defs/traceLevel"
},
"message": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"environment": {
"$ref": "common.json#/$defs/environment"
},
"metadata": {
"$ref": "common.json#/$defs/jsonObject"
},
"occurredAt": {
"$ref": "common.json#/$defs/timestamp"
}
},
"additionalProperties": false
}