Last active
September 17, 2019 02:25
-
-
Save CoeusCC/553e115f4810f096d23683e209e232cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class DataEvent { | |
constructor(type, payload, uuid) { | |
return { | |
uuid: uuid, | |
type: type, | |
payload: payload, | |
meta: { | |
version: { | |
series: "SERVICE", | |
number: 1 | |
}, | |
created: new Date(), | |
dregs: [], | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uuid": "5ad3a56a-14fa-47ef-8b6a-02a3e6284c8a", | |
"type": "sampleEventRecorded", | |
"payload": { | |
"foo": "bar" | |
}, | |
"meta": { | |
"version": { | |
"series": "CURRENTSERVICE", | |
"number": 1 | |
}, | |
"created": "2019-09-03T03:18:38.062Z", | |
"dregs": [ | |
{ | |
"OLDERSERVICE_17": { | |
"olderUnusedKey": "Older data." | |
} | |
}, | |
{ | |
"NEWERSERVICE_2": { | |
"newerUnusedKey": "Newer data." | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment