Skip to main content

Challenge Service Events 1.0.0 documentation

info

In this document, PUB means "publish" and SUB means "subscribe". This refers to the "publish/subscribe" (pub/sub) messaging framework, where "publish" means that the service sends data to Kafka topics, and "subscribe" means the service acts as a consumer that subscribes to specific Kafka topics to receive data.

  • Specification ID: http://challenge-service
  • Protobuf File Spec: challenge.proto

Table of Contents

Operations

PUB goalCompleted Operation

Event fired when a user completes a goal

Message goalCompleted

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.namespacestringnamespace origin of completed goal--required
payload.challengeCodestringassociated challengeCode from completed goal--required
payload.goalCodestringcompleted goalCode--required
payload.completedAtstringtimestamp of completion-format (date-time)required
payload.userIdstringuserId that completes the goal--required
payload.scheduleIdstringscheduleId which the goal completed--required
payload.scheduleStartstringtimestamp of the schedule's start time-format (date-time)required
payload.scheduleEndstringtimestamp of the schedule's end time (optional)-format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstringUserId of the operator for this event (optional)---
traceIdstring----
sessionIdstring----
spanContextstring----

Examples of payload (generated)

{
"payload": {
"namespace": "string",
"challengeCode": "string",
"goalCode": "string",
"completedAt": "2019-08-24T14:15:22Z",
"userId": "string",
"scheduleId": "string",
"scheduleStart": "2019-08-24T14:15:22Z",
"scheduleEnd": "2019-08-24T14:15:22Z"
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string",
"spanContext": "string"
}