Skip to main content

AsyncAPI for dedicated server manager controller service 0.0.1 documentation

Published Messages (dsmcontroller)

The service publishes one of these messages below.

allocationComplete

Contains fields from event and the following payload.

Example value
{
"payload": {
"server": "string",
"allocationEvents": [
{
"time_stamp": "2019-08-24T14:15:22Z",
"type": "string",
"description": "string"
}
]
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"target_namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"topic": "string",
"service": "string",
"sessionId": "string",
"traceId": "string",
"userId": "string",
"clientId": "string"
}

payload

NameTypeDescription
serverstringserver name
allocationEventsarray<allocationEvent>-

dsClaimed

Contains fields from event and the following payload.

Example value
{
"payload": {
"dsClaimed": true,
"sessionID": "string",
"dsClaimedAt": "2019-08-24T14:15:22Z"
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"target_namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"topic": "string",
"service": "string",
"sessionId": "string",
"traceId": "string",
"userId": "string",
"clientId": "string"
}

payload

NameTypeDescription
dsClaimedbooleands claimed or not
sessionIDstringsession ID
dsClaimedAtstring (date-time)-

dsCount

Contains fields from event and the following payload.

Example value
{
"payload": {
"property1": {
"property1": 0,
"property2": 0
},
"property2": {
"property1": 0,
"property2": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"target_namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"topic": "string",
"service": "string",
"sessionId": "string",
"traceId": "string",
"userId": "string",
"clientId": "string"
}

payload

This is a free-form object.

dsStatusChanged

Contains fields from event and the following payload.

Example value
{
"payload": {
"server": {
"allocation_events": [
{
"time_stamp": "2019-08-24T14:15:22Z",
"type": "string",
"description": "string"
}
],
"allocation_id": "string",
"alternate_ips": [
"string"
],
"cpu_limit": 0,
"created_at": "2019-08-24T14:15:22Z",
"custom_attribute": "string",
"deployment": "string",
"game_version": "string",
"image_version": "string",
"ip": "string",
"is_override_game_version": true,
"job_id": "string",
"last_update": "2019-08-24T14:15:22Z",
"mem_limit": 0,
"namespace": "string",
"params": "string",
"pod_name": "string",
"port": 0,
"ports": {
"property1": 0,
"property2": 0
},
"protocol": "string",
"provider": "string",
"region": "string",
"session_id": "string",
"status": "CREATING",
"status_history": [
{
"time_stamp": "2019-08-24T14:15:22Z",
"status": "CREATING"
}
],
"is_core_dump_enabled": true,
"artifact_path": "string"
},
"isBuffered": true
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"target_namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"topic": "string",
"service": "string",
"sessionId": "string",
"traceId": "string",
"userId": "string",
"clientId": "string"
}

payload

NameTypeDescription
serverserver-
isBufferedboolean-

sessionEnded

Contains fields from event and the following payload.

Example value
{
"payload": {
"session": {
"id": "string",
"namespace": "string",
"provider": "string",
"region": "string",
"Server": {
"allocation_events": [
{
"time_stamp": "2019-08-24T14:15:22Z",
"type": "string",
"description": "string"
}
],
"allocation_id": "string",
"alternate_ips": [
"string"
],
"cpu_limit": 0,
"created_at": "2019-08-24T14:15:22Z",
"custom_attribute": "string",
"deployment": "string",
"game_version": "string",
"image_version": "string",
"ip": "string",
"is_override_game_version": true,
"job_id": "string",
"last_update": "2019-08-24T14:15:22Z",
"mem_limit": 0,
"namespace": "string",
"params": "string",
"pod_name": "string",
"port": 0,
"ports": {
"property1": 0,
"property2": 0
},
"protocol": "string",
"provider": "string",
"region": "string",
"session_id": "string",
"status": "CREATING",
"status_history": [
{
"time_stamp": "2019-08-24T14:15:22Z",
"status": "CREATING"
}
],
"is_core_dump_enabled": true,
"artifact_path": "string"
}
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"target_namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"topic": "string",
"service": "string",
"sessionId": "string",
"traceId": "string",
"userId": "string",
"clientId": "string"
}

payload

NameTypeDescription
sessionobject-
payload.session
NameTypeDescription
idstringsession id
namespacestringsession namespace
providerstringinfrastructure provider
regionstringsession namespace
Serverserver-

Schemas

allocationEvent

NameTypeDescription
time_stampstring (date-time)-
typestring-
descriptionstring-

server

NameTypeDescription
allocation_eventsarray<allocationEvent>-
allocation_idstringnomad allocation id
alternate_ipsarray-
cpu_limitintegerserver cpu limit
created_atstring (date-time)-
custom_attributestring-
deploymentstringthe name of deployment
game_versionstringthe game version used in server
image_versionstringthe image version used in server
ipstringserver IP address
is_override_game_versionboolean-
job_idstringjob id
last_updatestring (date-time)-
mem_limitintegerserver memory limit
namespacestringserver namespace
paramsstring-
pod_namestring-
portinteger-
portsobject-
protocolstring-
providerstringinfrastructure provider
regionstringserver region
session_idstringsession id
statusstringserver status
status_historyarray<object>-
is_core_dump_enabledboolean-
artifact_pathstringartifact path. Not empty if provided by the image config.

ports

This is a free-form object.

status_history[number]

NameTypeDescription
time_stampstring (date-time)-
statusstringassigned server status

event

NameTypeDescription
idstring-
versioninteger-
namestring-
namespacestring-
parentNamespacestring-
target_namespacestring-
timestampstring (date-time)-
topicstring-
servicestring-
sessionIdstring-
traceIdstring-
userIdstring-
clientIdstring-