blob: 8871a81f5152dc01f8bd3bd6913bbf492f3d334b [file] [log] [blame]
Bruno Sakotoff7d57a2021-09-07 18:21:59 -04001.. 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=====================
8CPS Temporal Modeling
9=====================
10
Bruno Sakotoa43a13b2021-10-07 09:11:48 -040011Event Structure
12===============
13
14Data manipulated by both CPS Core and CPS Temporal to represent a Data Updated
15Event 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
19And 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