Raritan PX2/PX3 JSON-RPC API
Log.idl
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3  * Copyright 2014 Raritan Inc. All rights reserved.
4  */
5 
6 #ifndef __LOG_IDL__
7 #define __LOG_IDL__
8 
9 /** Device Logging */
10 module logging {
11 
12  /** General log info */
13  structure LogInfo {
14  long creationTime; ///< Creation time of log; changed by clear()
15  int idFirst; ///< Serial number of first entry of the log
16  int idNext; ///< Next unused serial number of the log
17  };
18 
19  /** A log entry */
20  structure LogEntry {
21  int id; ///< Serial number
22  time timestamp; ///< Time stamp
23  string eventClass; ///< Category (aka event class)
24  string message; ///< Message
25  };
26 
27  /** A log chunk */
28  structure LogChunk {
29  long logCreationTime; ///< Creation time of log at chunk generation
30  int idFirst; ///< Serial number of first entry in the chunk
31  int allEntryCnt; ///< Number of all entries in the chunk
32  vector<LogEntry> selEntries; ///< Selected entries of the chunk
33  };
34 
35  /** Range direction when fetching log entries */
36  enumeration RangeDirection {
37  FORWARD, ///< Ascending serial numbers
38  BACKWARD ///< Descending serial numbers
39  };
40 
41 }
42 
43 #endif /* __LOG_IDL__ */
time timestamp
Time stamp.
Definition: Log.idl:22
string message
Message.
Definition: Log.idl:24
Device Logging.
Definition: DebugLog.idl:14
A log chunk.
Definition: Log.idl:28
int idNext
Next unused serial number of the log.
Definition: Log.idl:16
int idFirst
Serial number of first entry in the chunk.
Definition: Log.idl:30
vector< LogEntry > selEntries
Selected entries of the chunk.
Definition: Log.idl:32
int idFirst
Serial number of first entry of the log.
Definition: Log.idl:15
long creationTime
Creation time of log; changed by clear()
Definition: Log.idl:14
int id
Serial number.
Definition: Log.idl:21
RangeDirection
Range direction when fetching log entries.
Definition: Log.idl:36
General log info.
Definition: Log.idl:13
int allEntryCnt
Number of all entries in the chunk.
Definition: Log.idl:31
Ascending serial numbers.
Definition: Log.idl:37
long logCreationTime
Creation time of log at chunk generation.
Definition: Log.idl:29
A log entry.
Definition: Log.idl:20
Descending serial numbers.
Definition: Log.idl:38
string eventClass
Category (aka event class)
Definition: Log.idl:23