Bruno Sakoto | ff7d57a | 2021-09-07 18:21:59 -0400 | [diff] [blame] | 1 | .. This work is licensed under a |
| 2 | .. Creative Commons Attribution 4.0 International License. |
| 3 | .. http://creativecommons.org/licenses/by/4.0 |
| 4 | .. |
| 5 | .. Copyright (C) 2021 Bell Canada |
| 6 | |
| 7 | ===================== |
| 8 | CPS Temporal Modeling |
| 9 | ===================== |
| 10 | |
Bruno Sakoto | a43a13b | 2021-10-07 09:11:48 -0400 | [diff] [blame^] | 11 | Event Structure |
| 12 | =============== |
| 13 | |
| 14 | Data manipulated by both CPS Core and CPS Temporal to represent a Data Updated |
| 15 | Event is a JSON structure that is defined by following Json Schema: |
| 16 | |
| 17 | * :download:`cps-data-updated-event-schema.json <../_static/event-schema/cps-data-updated-event-schema-v1.json>` |
| 18 | |
| 19 | And following is an example of an event compliant with this schema: |
| 20 | |
| 21 | .. code:: json |
| 22 | |
| 23 | { |
| 24 | "schema": "urn:cps:org.onap.cps:data-updated-event-schema:v1", |
| 25 | "id": "38aa6cc6-264d-4ede-b534-18f5c1f403ea", |
| 26 | "source": "urn:cps:org.onap.cps", |
| 27 | "type": "org.onap.cps.data-updated-event", |
| 28 | "content": { |
| 29 | "observedTimestamp": "2021-06-09T13:00:00.123-0400", |
| 30 | "dataspaceName": "my-dataspace", |
| 31 | "schemaSetName": "my-schema-set", |
| 32 | "anchorName": "my-anchor", |
| 33 | "data": { |
| 34 | "interface": { |
| 35 | "name": "itf-1", |
| 36 | "status": "up" |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |