get_stats
To obtain data on the status of history retransmission, use the retranslator/get_stats command.
svc=retranslator/get_stats¶ms={"itemId":<long>}
Parameters
The request must contain the itemId parameter, specifying the retranslator ID.
Response
If the request is completed successfully, a response of the following format is returned:
{
"au": <long>, /* The number of objects which have been added to the retranslator or removed from it directly. */
"ru": <long>, /* The number of objects in the queue for history retransmission */
"hf": <long>, /* Time when the retransmission started. */
"ht": <long> /* Time when the retransmission finished. */
"hc": <uint>, /* Time of the last retransmitted message. */
"hms": <uint>, /* Current queue of historical messages. */
"hp": <uint>, /* Progress percentage. */
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
7 | No ADF_ACL_AVL_RETR_EDIT_SETTINGS access right to the retranslator. |
4 | Wrong input parameters. |