public class EventTableData extends java.lang.Object implements ComponentData
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ERROR |
static int |
STATUS_INFORMATION |
static int |
STATUS_WARNING |
static java.lang.String |
TIMESTAMP_DESCRIPTION |
static java.lang.String |
TIMESTAMP_FIELD |
static java.lang.String |
TIMESTAMP_STATUS |
static java.lang.String |
TIMESTAMP_STATUS_MSG |
Constructor and Description |
---|
EventTableData() |
Modifier and Type | Method and Description |
---|---|
void |
addEventItem(long timestamp,
java.lang.String description,
java.lang.String statusMsg) |
void |
addEventItem(long timestamp,
java.lang.String description,
java.lang.String statusMsg,
int status) |
JSONObject |
toJson() |
public static final int STATUS_INFORMATION
public static final int STATUS_WARNING
public static final int STATUS_ERROR
public static final java.lang.String TIMESTAMP_FIELD
public static final java.lang.String TIMESTAMP_DESCRIPTION
public static final java.lang.String TIMESTAMP_STATUS_MSG
public static final java.lang.String TIMESTAMP_STATUS
public void addEventItem(long timestamp, @Nullable java.lang.String description, @Nullable java.lang.String statusMsg)
public void addEventItem(long timestamp, @Nullable java.lang.String description, @Nullable java.lang.String statusMsg, int status)
@Nonnull public JSONObject toJson() throws JSONException
toJson
in interface ComponentData
JSONException