seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 3 | "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:v1", |
| 4 | "$ref": "#/definitions/AvcEvent", |
| 5 | "definitions": { |
| 6 | "AvcEvent": { |
| 7 | "description": "The payload for AVC event.", |
| 8 | "type": "object", |
| 9 | "properties": { |
| 10 | "eventId": { |
| 11 | "description": "The unique id identifying the event generated by DMI for this AVC event.", |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "eventCorrelationId": { |
| 15 | "description": "The request id passed by NCMP for this AVC event.", |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "eventTime": { |
| 19 | "description": "The time of the AVC event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", |
| 20 | "type": "string" |
| 21 | }, |
mpriyank | ec5d74d | 2023-03-20 10:55:32 +0000 | [diff] [blame] | 22 | "eventSource": { |
| 23 | "description": "The source of the AVC event.", |
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 24 | "type": "string" |
| 25 | }, |
| 26 | "eventType": { |
| 27 | "description": "The type of the AVC event.", |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "eventSchema": { |
| 31 | "description": "The event schema for AVC events.", |
| 32 | "type": "string" |
| 33 | }, |
| 34 | "eventSchemaVersion": { |
| 35 | "description": "The event schema version for AVC events.", |
| 36 | "type": "string" |
| 37 | }, |
| 38 | "event": { |
| 39 | "$ref": "#/definitions/Event" |
| 40 | } |
| 41 | }, |
| 42 | "required": [ |
| 43 | "eventId", |
| 44 | "eventCorrelationId", |
| 45 | "eventTime", |
mpriyank | ec5d74d | 2023-03-20 10:55:32 +0000 | [diff] [blame] | 46 | "eventSource", |
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 47 | "eventType", |
| 48 | "eventSchema", |
| 49 | "eventSchemaVersion" |
mpriyank | c02ce94 | 2023-03-14 13:51:15 +0000 | [diff] [blame] | 50 | ], |
| 51 | "additionalProperties": false |
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 52 | }, |
| 53 | "Event": { |
| 54 | "description": "The AVC event content.", |
mpriyank | c02ce94 | 2023-03-14 13:51:15 +0000 | [diff] [blame] | 55 | "type": "object", |
| 56 | "existingJavaType": "java.lang.Object", |
| 57 | "additionalProperties": false |
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 58 | } |
| 59 | } |
| 60 | } |