{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://agent-telemetry.dev/v1/schema/kinds/job.dispatch.schema.json",
	"title": "Job Dispatch Event",
	"allOf": [{ "$ref": "../event.base.schema.json" }],
	"properties": {
		"kind": { "const": "job.dispatch" },
		"task_name": { "type": "string", "maxLength": 128 },
		"task_id": { "type": "string", "maxLength": 128 },
		"queue": { "type": "string", "maxLength": 128 },
		"attempt": { "type": "integer", "minimum": 0 },
		"outcome": { "type": "string", "enum": ["success", "error"] }
	},
	"required": ["kind", "span_id", "parent_span_id", "task_name", "outcome"]
}
