Key to group data packets and make server to process them in a strict sequence.
expiryPeriod
Integer
How long the sent data packet is valid (ms).
payload
JSONrequired
Any json-represented data you wish the server to process and store.
period
Integer
The sum of values in this field and in server's config file defines how long the sent data packet is valid (ms). If period is not provided, only the server's value will be applied. These ones will be ignored if expiryPeriod is provided.
timestamp
Integer
UNIX timestamp in ms.
Examples
Fully Qualified Stat
1
{
2
"groupKey": "gk_893",
3
"expiryPeriod": 60000",
4
"payload": {
5
"statusCode": 200
6
},
7
"timestamp": 1620719755782
8
}
Copied!
1
{
2
"groupKey": "gk_893",
3
"payload": {
4
"statusCode": 200
5
},
6
"period": 60000,
7
"timestamp": 1620719755782
8
}
Copied!
Shortened Stat
As all of the fields except payload are optional it is possible to send shortened version of the stat. Please compare with the examples above: