Edge core state change data (3100)
{
"state" : Number
}
- state is current core state. Values described as follows:
- ‘0’ Edge core thing is created
- ‘1’ TS edge core is running and ready for further deployments.
- ‘2’ TS Service core is running and ready for further deployments.
"" Edge sync DB data cmd request (3200)
{
"tsmDstTuid" : "XXXX17TESTCORE001",
"tsmId" : 3200,
"tsmEv" : 35,
"transactionId" : 2111111111,
"binaryType" : "EDGE_DATA_UPDATE",
"data" : {
"type": "Buffer",
"data": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
}
}
-
binaryType Describes the database update type
[EDGE_DATA_UPDATE,EDGE_DUMP_UPDATE,EDGE_SCHEMA_UPDATE]
-
data is database/delta/schema dump in zipped json Buffer.
Edge sync DB data cmd response (3200)
{ "data" : "EDGE_DATA_UPDATE", "tsmDstTuid" : "XXXX17TESTCORE001", "tsmId" : 3200, "tsmEv" : 36, "transactionId" : 2111111111, "result" : "success", "resultReason" : "DB updated." }
-
data Description of database update type
[EDGE_DATA_UPDATE,EDGE_DUMP_UPDATE,EDGE_SCHEMA_UPDATE]
-
result List the edge db update result [success/fail].
-
resultReason Describes the reason for result
Edge core stats diagnostics data event request (3300)
{
"tsmDstTuid" : "XXXX17TESTCORE001",
"tsmId" : 3300,
"tsmEv" : 27,
"transactionId" : 132456
}
Query for Core host stats. Edge core stats diagnostics data event response (3300)
{
"tsmDstTuid" : "XXXX17TESTCORE001",
"tsmId" : 3300,
"tsmEv" : 28,
"transactionId" : 132456,
"data": : "ABCDEFG"
}
- data base64 encoded stats data.
Edge core binary event (3400)
{
"tsmTs": 1573217629,
"tsmEv": 10,
"tsmId": 3400,
"tsmTuid": "XXXX17HALTIANSERVICE",
"payload": {
"type": "Buffer",
"data": [ 116, 117, 105, 10 ]
},
"index": 0,
"count": 4,
"checksum": "abcd"
}
- payload Binary buffer
- index Describes the sequence number of the binary packet for the event. Starts with 0. Last index is count-1
- count Describes the amount of events the binary package with checksum is compromised out of.
- checksum Describes the checksum of the complete binary payload. Consist of 1 to count events.