To load a few latest messages for a specified point in time, use the command messages/load_last:
svc=messages/load_last¶ms={"itemId":<long>, "lastTime":<uint>, "lastCount":<uint>, "flags":<uint>, "flagsMask":<uint>, "loadCount":<uint>}
Name | Parameters |
---|---|
itemId | unit or resource ID (depends on type of message you want to get) |
lastTime | time for which messages are requested |
lastCount | how many messages to load |
flags | message flags: to load messages with defined flags only (see Data format: Messages) |
flagsMask | mask (see Load messages for interval) |
loadCount | how many messages to return |
{ "count":<uint>, /* messages count */ "messages":[ /* array of messages */ { ... } ] }
You can find message formats in the chapter Data format: Messages.