fix tests. new product advisories enhancements
This commit is contained in:
73
docs/events/scheduler.rescan.delta@1.json
Normal file
73
docs/events/scheduler.rescan.delta@1.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://docs.stella-ops.org/events/scheduler.rescan.delta@1.json",
|
||||
"title": "Scheduler Rescan Delta Event",
|
||||
"description": "Emitted when a scheduled rescan detects vulnerability changes",
|
||||
"type": "object",
|
||||
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
|
||||
"properties": {
|
||||
"eventId": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Unique event identifier"
|
||||
},
|
||||
"kind": {
|
||||
"const": "scheduler.rescan.delta",
|
||||
"description": "Event kind"
|
||||
},
|
||||
"version": {
|
||||
"const": "1",
|
||||
"description": "Schema version"
|
||||
},
|
||||
"tenant": {
|
||||
"type": "string",
|
||||
"description": "Tenant identifier"
|
||||
},
|
||||
"ts": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "Event timestamp in ISO 8601 format"
|
||||
},
|
||||
"actor": {
|
||||
"type": "string",
|
||||
"description": "Service or user that triggered the event"
|
||||
},
|
||||
"payload": {
|
||||
"type": "object",
|
||||
"required": ["scheduleId", "deltaId"],
|
||||
"properties": {
|
||||
"scheduleId": {
|
||||
"type": "string",
|
||||
"description": "Schedule identifier"
|
||||
},
|
||||
"deltaId": {
|
||||
"type": "string",
|
||||
"description": "Delta report identifier"
|
||||
},
|
||||
"imagesAffected": {
|
||||
"type": "integer",
|
||||
"description": "Number of images affected"
|
||||
},
|
||||
"newVulnerabilities": {
|
||||
"type": "integer",
|
||||
"description": "Number of new vulnerabilities detected"
|
||||
},
|
||||
"resolvedVulnerabilities": {
|
||||
"type": "integer",
|
||||
"description": "Number of resolved vulnerabilities"
|
||||
},
|
||||
"links": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"schedule": { "type": "string", "format": "uri" },
|
||||
"delta": { "type": "string", "format": "uri" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"attributes": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user