6 #ifndef __ASSETMGRMODEL_ASSETSTRIP_LOGGER_IDL__
7 #define __ASSETMGRMODEL_ASSETSTRIP_LOGGER_IDL__
9 #include <AssetStrip.idl>
22 constant
int NO_ERROR = 0;
23 constant
int ERR_INVALID_PARAM = 1;
42 ASSET_STRIP_STATE_CHANGED
81 int getRecords(out vector<Record> records, in
int id, in
int count);
Asset Strip Logger interface.
Definition: AssetStripLogger.idl:17
RecordType
Log record type.
Definition: AssetStripLogger.idl:38
@ ASSET_TAG_CONNECTED
An asset tag has been connected.
Definition: AssetStripLogger.idl:40
@ EMPTY
The log record is empty.
Definition: AssetStripLogger.idl:39
@ ASSET_TAG_DISCONNECTED
An asset tag has been disconnected.
Definition: AssetStripLogger.idl:41
Info getInfo()
Retrieve the log information.
int getRecords(out vector< Record > records, in int id, in int count)
Retrieve records from the log ring buffer.
Asset Management Strip interface.
Definition: AssetStrip.idl:17
State
AssetStrip state
Definition: AssetStrip.idl:34
Asset Management Model.
Definition: AssetStrip.idl:15
Log information structure.
Definition: AssetStripLogger.idl:28
int newestRecord
Pointer to the newest log entry; -1 if the log is empty.
Definition: AssetStripLogger.idl:31
int capacity
Maximum number of entries in the record ring buffer.
Definition: AssetStripLogger.idl:29
int oldestRecord
Pointer to the oldest log entry; -1 if the log is empty.
Definition: AssetStripLogger.idl:30
int totalEventCount
Total number of events logged.
Definition: AssetStripLogger.idl:32
Log record structure.
Definition: AssetStripLogger.idl:48
int rackUnitPosition
Rack unit position, -1 if unknown.
Definition: AssetStripLogger.idl:53
RecordType type
Entry type.
Definition: AssetStripLogger.idl:50
string tagId
The ID of the asset management tag, empty if unknown.
Definition: AssetStripLogger.idl:55
AssetStrip::State state
Asset strip state.
Definition: AssetStripLogger.idl:57
int rackUnitNumber
Rack unit number (0-based), -1 if unknown.
Definition: AssetStripLogger.idl:52
string parentBladeId
ID of the parent blade extension tag in case slotNumber>0, empty otherwise.
Definition: AssetStripLogger.idl:56
time timestamp
Time of log entry creation (UNIX timestamp, UTC)
Definition: AssetStripLogger.idl:49
int assetStripNumber
Asset strip number (0-based), -1 if unknown.
Definition: AssetStripLogger.idl:51
int slotNumber
Blade extension slot number, -1 if unknown, 0 is main strip, >0 is blade.
Definition: AssetStripLogger.idl:54