メインコンテンツまでスキップ

Achievement Service Events 0.1.0 documentation

備考

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.

Table of Contents

Operations

PUB achievement Operation

Accepts one of the following messages:

Message userAchievementUnlocked

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.userAchievementobject---additional properties are allowed
payload.userAchievement.userIdstring----
payload.userAchievement.namespacestring----
payload.userAchievement.achievementCodestring----
payload.userAchievement.statusinteger----
payload.userAchievement.achievedAtinteger----
payload.userAchievement.statCodestring----
payload.x-uid0--"AnonymousSchema1"--
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"userAchievement": {
"userId": "string",
"namespace": "string",
"achievementCode": "string",
"status": 0,
"achievedAt": 0,
"statCode": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message globalAchievementUnlocked

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.globalAchievementobject---additional properties are allowed
payload.globalAchievement.achievementCodestring----
payload.globalAchievement.namespacestring----
payload.globalAchievement.statusinteger----
payload.globalAchievement.achievedAtinteger----
payload.x-uid0--"AnonymousSchema2"--
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"globalAchievement": {
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message achievementRewardClaimed

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.achievementRewardClaimedobject---additional properties are allowed
payload.achievementRewardClaimed.userIdstring----
payload.achievementRewardClaimed.achievementCodestring----
payload.achievementRewardClaimed.namespacestring----
payload.achievementRewardClaimed.statusinteger----
payload.achievementRewardClaimed.achievementinteger----
payload.achievementRewardClaimed.claimedAtinteger----
payload.x-uid0--"AnonymousSchema3"--
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"achievementRewardClaimed": {
"userId": "string",
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievement": 0,
"claimedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}