Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Asset Strip Logger interface. More...
Classes | |
struct | Info |
Log information structure. More... | |
struct | Record |
Log record structure. More... | |
Public Types | |
enum | RecordType { EMPTY , ASSET_TAG_CONNECTED , ASSET_TAG_DISCONNECTED , ASSET_STRIP_STATE_CHANGED } |
Log record type. More... | |
Public Member Functions | |
Info | getInfo () |
Retrieve the log information. More... | |
int | getRecords (out vector< Record > records, in int id, in int count) |
Retrieve records from the log ring buffer. More... | |
Public Attributes | |
constant int | NO_ERROR = 0 |
Error codes. More... | |
constant int | ERR_INVALID_PARAM = 1 |
Invalid parameter. More... | |
Asset Strip Logger interface.
Definition at line 17 of file AssetStripLogger.idl.
Log record type.
Definition at line 38 of file AssetStripLogger.idl.
Info assetmgrmodel::AssetStripLogger::getInfo | ( | ) |
Retrieve the log information.
int assetmgrmodel::AssetStripLogger::getRecords | ( | out vector< Record > | records, |
in int | id, | ||
in int | count | ||
) |
Retrieve records from the log ring buffer.
This method is used to read one or more records from the log ring buffer. It is allowed to read unused entries. The record index will wrap to 0 when reading beyond the end of the log.
records | Result: The requested log entries |
id | Index of the first log index to read (0..capacity) |
count | Number of records to read (1..capacity) |
constant int assetmgrmodel::AssetStripLogger::ERR_INVALID_PARAM = 1 |
Invalid parameter.
Definition at line 23 of file AssetStripLogger.idl.
constant int assetmgrmodel::AssetStripLogger::NO_ERROR = 0 |