3 The Spike microservice consumes and processes the Champ graph data event stream from which it generates events to be consumed by other components.
11 Spike receives events from the Champ microservice regarding changes to the graph database. Spike will buffer these events in an attempt to ensure proper chronological ordering, and then output them onto a configurable kafka or DMaaP queue.
13 The messages are in a similar format to Gizmo's async pipeline. Here are some examples:
19 "transaction-id": "38fe6bb0-6b3b-4c1d-95ea-7a9f5a29d857",
21 "schema-version": "v11",
23 "key": "a7cbd3fb-a7ee-4fec-91fb-d94793b4c641",
26 "vserver-name": "dan",
27 "vserver-id": "dan-vserv",
28 "last-mod-source-of-truth": "Dan-laptop",
29 "source-of-truth": "Dan-laptop",
30 "vserver-selflink": "something",
31 "is-closed-loop-disabled": false
34 "operation": "CREATE",
35 "timestamp": 1515524454947
41 "transaction-id": "cf0ef29b-3f38-42d9-8e65-2e03a8c97aae",
43 "schema-version": "v11",
45 "key": "a7cbd3fb-a7ee-4fec-91fb-d94793b4c641",
48 "vserver-name": "dan-updated",
49 "vserver-id": "dan-vserv",
50 "last-mod-source-of-truth": "Dan-laptop",
51 "vserver-selflink": "something",
52 "is-closed-loop-disabled": false
55 "operation": "UPDATE",
56 "timestamp": 1515525164176
62 "transaction-id": "3962b400-f5b2-4159-a0eb-cb7aa4e48580",
64 "schema-version": "v11",
66 "key": "a7cbd3fb-a7ee-4fec-91fb-d94793b4c641",
69 "vserver-name": "dan-updated",
70 "vserver-id": "dan-vserv",
71 "last-mod-source-of-truth": "Dan-laptop",
72 "vserver-selflink": "something",
73 "is-closed-loop-disabled": false
76 "operation": "DELETE",
77 "timestamp": 1515525766057
81 ##### Create Relationship
84 "transaction-id": "e654eee5-d8fc-445e-b09d-7dba20029a78",
88 "key": "2223dc8b-9e26-4c90-b767-7d1f61e8fa8d"
90 "schema-version": "v12",
91 "type": "tosca.relationships.HostedOn",
92 "key": "6a443848-21bb-4801-ab00-53ee286c290d",
94 "prevent-delete": "java.lang.String",
95 "SVC-INFRA": "java.lang.String",
96 "delete-other-v": "java.lang.String",
97 "contains-other-v": "java.lang.String"
101 "key": "32ed5257-a6ac-4d63-8635-ae1d3a615960"
104 "operation": "CREATE",
105 "timestamp": 1515526740371
108 ##### Update Relationship
111 "transaction-id": "db8d1626-346d-4f04-8856-f5a5e0e54313",
115 "key": "2223dc8b-9e26-4c90-b767-7d1f61e8fa8d"
117 "schema-version": "v12",
118 "type": "tosca.relationships.HostedOn",
119 "key": "6a443848-21bb-4801-ab00-53ee286c290d",
121 "prevent-delete": "java.lang.String",
122 "SVC-INFRA": "java.lang.String",
123 "delete-other-v": "updated",
124 "contains-other-v": "java.lang.String"
128 "key": "32ed5257-a6ac-4d63-8635-ae1d3a615960"
131 "operation": "UPDATE",
132 "timestamp": 1515526920973
135 ##### Delete Relationship
138 "transaction-id": "e7dbd137-cc07-41c4-8ba4-694334f4b2e4",
142 "key": "2223dc8b-9e26-4c90-b767-7d1f61e8fa8d"
144 "schema-version": "v12",
145 "type": "tosca.relationships.HostedOn",
146 "key": "6a443848-21bb-4801-ab00-53ee286c290d",
148 "prevent-delete": "java.lang.String",
149 "SVC-INFRA": "java.lang.String",
150 "delete-other-v": "updated",
151 "contains-other-v": "java.lang.String"
155 "key": "32ed5257-a6ac-4d63-8635-ae1d3a615960"
158 "operation": "DELETE",
159 "timestamp": 1515527840630
164 Champ, and therefore Spike, will publish separate events for each operation done within a transaction. Operations from the same transaction can be identified via the database-transaction-id field.
166 ##### Transaction example
168 The following three events were created in a single bulk request from Gizmo. Note the database-transaction-id.
171 "transaction-id": "7397ce4c-70ed-4b32-b8d0-24b6496e1791",
173 "schema-version": "v11",
175 "key": "b7c80b13-3b32-4007-83c6-553617d64cfa",
178 "vserver-name": "dan-vserver-1",
179 "prov-status": "Provisioned",
180 "vserver-id": "Vserver-AMT-002-HSGW",
181 "last-mod-source-of-truth": "Dan-laptop",
182 "vserver-name2": "Vs2-HSGW-OTT",
183 "source-of-truth": "Dan-laptop",
184 "vserver-selflink": "AMT VserverLink",
185 "is-closed-loop-disabled": false
188 "database-transaction-id": "52eb5657-0d43-4e4b-a4d5-042acc9bc574",
189 "operation": "CREATE",
190 "timestamp": 1515528272536
194 "transaction-id": "ec3d0552-e20b-4fc1-aa8e-634ddd2a9d76",
196 "schema-version": "v11",
198 "key": "ae43af1c-8479-4358-9325-416d3a854d69",
200 "ptnii-equip-name": "amdocs199snd9",
201 "hostname": "dan-bulk-1",
202 "equip-type": "server",
203 "equip-vendor": "HP",
204 "equip-model": "DL380p-nd",
206 "fqdn": "amdocs199snd9.amdocs.lab.com",
208 "resource-version": "1477013499",
209 "ipv4-oam-address": "135.182.138.60",
210 "last-mod-source-of-truth": "Dan-laptop",
211 "source-of-truth": "Dan-laptop"
214 "database-transaction-id": "52eb5657-0d43-4e4b-a4d5-042acc9bc574",
215 "operation": "CREATE",
216 "timestamp": 1515528272841
220 "transaction-id": "81b6a5bc-bf82-4043-92a7-f3bafe647f8e",
221 "database-transaction-id": "52eb5657-0d43-4e4b-a4d5-042acc9bc574",
225 "key": "b7c80b13-3b32-4007-83c6-553617d64cfa"
227 "schema-version": "v12",
228 "type": "tosca.relationships.HostedOn",
229 "key": "592d93d5-a17d-4dfd-83f2-68b777da0481",
231 "prevent-delete": "asdf",
233 "delete-other-v": "asdf",
234 "contains-other-v": "fdsa"
238 "key": "ae43af1c-8479-4358-9325-416d3a854d69"
241 "operation": "CREATE",
242 "timestamp": 1515528273738
246 The Spike micro service supports the standard echo service to allow it to be 'pinged' to verify that the service is up and responding.
248 The echo service is reachable via the following REST end point:
250 https://<host>:9518/services/spike/v1/echo-service/echo