Skip to content

Instantly share code, notes, and snippets.

@dmexe
Last active May 22, 2021 15:28
Show Gist options
  • Save dmexe/5fd4127ae03bd59c3ec10a61935216dc to your computer and use it in GitHub Desktop.
Save dmexe/5fd4127ae03bd59c3ec10a61935216dc to your computer and use it in GitHub Desktop.

Publisher

When published an import to audio2 for processing

{
  "message": "Successfully published ImportCreatedOrUpdated(123e4567-e89b-12d3-a456-426614174000) to publisher-v1-json-events[2]/14788",
  "event.kind": "event",
  "event.created": "2016-05-23T08:05:34.853Z",
  "event.code": "publisher:import_created_or_updated",
  "evnet.id": "123e4567-e89b-12d3-a456-426614174000"
}

AudiobooksImport

When received an event from the publisher

{
  "message": "Start processing ImportCreatedOrUpdated(123e4567-e89b-12d3-a456-426614174000) from publisher-v1-json-events[2]/14788",
  "event.kind": "event",
  "event.start": "2016-05-23T08:05:34.853Z",
  "event.code": "publisher:import_created_or_updated",
  "evnet.id": "123e4567-e89b-12d3-a456-426614174000"
}

When an import sucessfully processed:

{
  "message": "BookVersion[id: 42, uuid: 123e4567-e89b-12d3-a456-426614174000] was successfully created",
  "event.kind": "event",
  "event.outcome": "success",
  "event.end": "2016-05-23T08:05:34.853Z",
  "event.duration": 12324324,
  "event.code": "publisher:import_created_or_updated",
  "evnet.id": "123e4567-e89b-12d3-a456-426614174000"
}

When published an import status to the publisher

{
  "message": "Successfully published ImportCreatedOrUpdated(123e4567-e89b-12d3-a456-426614174000) to audiobooks-import-v2-json-events[0]/83554",
  "event.kind": "event",
  "event.created": "2016-05-23T08:05:34.853Z",
  "event.code": "audio:import_created_or_updated",
  "event.id": "123e4567-e89b-12d3-a456-426614174000"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment