136 lines
2.7 KiB
JSON
136 lines
2.7 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.toki-labs.com/toki/ariadne/contracts/error-event/v1/schema.json",
|
|
"title": "Ariadne error event",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema_version",
|
|
"event_id",
|
|
"occurred_at",
|
|
"source",
|
|
"error"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "ariadne.error-event.v1"
|
|
},
|
|
"event_id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 200
|
|
},
|
|
"occurred_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source": {
|
|
"$ref": "#/$defs/source"
|
|
},
|
|
"error": {
|
|
"$ref": "#/$defs/error"
|
|
},
|
|
"runtime": {
|
|
"$ref": "#/$defs/runtime"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"maxLength": 512
|
|
},
|
|
"labels": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string",
|
|
"maxLength": 1000
|
|
},
|
|
"maxProperties": 100
|
|
}
|
|
},
|
|
"$defs": {
|
|
"source": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"system",
|
|
"service",
|
|
"environment"
|
|
],
|
|
"properties": {
|
|
"system": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 200
|
|
},
|
|
"service": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 200
|
|
},
|
|
"environment": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 100
|
|
},
|
|
"component": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"message"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 300
|
|
},
|
|
"code": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 20000
|
|
},
|
|
"stack_trace": {
|
|
"type": "string",
|
|
"maxLength": 200000
|
|
},
|
|
"cause": {
|
|
"type": "string",
|
|
"maxLength": 20000
|
|
}
|
|
}
|
|
},
|
|
"runtime": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"host": {
|
|
"type": "string",
|
|
"maxLength": 300
|
|
},
|
|
"process": {
|
|
"type": "string",
|
|
"maxLength": 300
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"commit_sha": {
|
|
"type": "string",
|
|
"maxLength": 100
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|