3 Gizmo has two modes, a Synchoronous (sync) mode and an Asynchronous (async) mode.
5 In the Async mode, Gizmo uses the consumer/producer model where when a
6 client makes a request, Gizmo will generate an event payload and
7 publish it on the async event stream. It will then wait for a
8 response for that particular event on a different event stream. Once it recieves a
9 response, gizmo will send a response back to the client which made the
12 ## Here are a few examples of the events published by Gizmo
19 "timestamp": 1514927928167,
20 "operation": "CREATE",
23 "ipv4-oam-address": "1.2.3.4",
24 "resource-version": "1477013499",
25 "purpose": "my-purpose",
26 "fqdn": "myhost.onap.net",
28 "equip-model": "DL380p-nd",
30 "equip-type": "server",
32 "ptnii-equip-name": "e-name"
36 "schema-version": "vX"
38 "transaction-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
39 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"
42 #### Updating a Vertex
45 "timestamp": 1514929776429,
46 "operation": "UPDATE",
49 "ipv4-oam-address": "1.2.3.4",
50 "resource-version": "1477013499",
51 "purpose": "my-purpose",
52 "fqdn": "updated.myhost.onap.net",
54 "equip-model": "DELL380p-nd",
55 "equip-vendor": "DELL",
56 "equip-type": "updated-server",
57 "hostname": "updated-myhost",
58 "ptnii-equip-name": "name-has-been-updated"
60 "key": "84bf7b3f-81f5-4c34-ab5c-207281cb71bd",
62 "schema-version": "vX"
64 "transaction-id": "3b8df1d5-4c51-47e3-bbef-c27b47e11149",
65 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"
68 #### Deleting a Vertex
71 "timestamp": 1514930052327,
72 "operation": "DELETE",
74 "key": "84bf7b3f-81f5-4c34-ab5c-207281cb71bd",
76 "schema-version": "vX"
78 "transaction-id": "6bb7a27b-a942-4cac-9b2b-0fa1f3897b8c",
79 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"
86 "timestamp": 1515005153863,
87 "operation": "CREATE",
90 "key": "febd8996-62ec-4ce6-ba8e-d2fa1609e13b",
94 "contains-other-v": "NONE",
95 "delete-other-v": "NONE",
96 "prevent-delete": "IN",
100 "type": "tosca.relationships.HostedOn",
101 "schema-version": "v11",
103 "key": "7beade35-19f1-4c1d-a1bd-bfba59e0b582",
107 "transaction-id": "63a8994d-1118-4e65-ab06-fff40f6f48ef",
108 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"
114 "timestamp": 1515005301622,
115 "operation": "UPDATE",
118 "key": "febd8996-62ec-4ce6-ba8e-d2fa1609e13b",
122 "contains-other-v": "NOPE",
123 "delete-other-v": "YES",
124 "prevent-delete": "MAYBE",
127 "key": "9727a0ea-559e-497c-98e4-0cbdaede0346",
128 "type": "tosca.relationships.HostedOn",
129 "schema-version": "v11",
131 "key": "7beade35-19f1-4c1d-a1bd-bfba59e0b582",
135 "transaction-id": "ed284991-6c2f-4c94-a592-76fed17a2f14",
136 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"
140 #### Deleting an Edge
143 "timestamp": 1515005579837,
144 "operation": "DELETE",
146 "key": "9727a0ea-559e-497c-98e4-0cbdaede0346",
147 "type": "tosca.relationships.HostedOn",
148 "schema-version": "v11"
150 "transaction-id": "b4583bc9-dd96-483f-ab2d-20c1c6e5622f",
151 "database-transaction-id": "b3e2853e-f643-47a3-a0c3-cb54cc997ad3"