Skip to content

Events History ​

The event API allows to retrieve some special events related to cluster handling hyperindexes.

Retrieve events count ​

GET /api/monitor/get/event/count/:start/:end

This endpoint retrieve the number of events starting between :start and :end timestamps.

Example:

text
curl http://myindeximacluster:8082/api/monitor/get/event/count/1667075793000/1667075937000 \
  -H "Authorization: $ACCESS_TOKEN" \
  -H "Monitor-Target-Host: indexima-core-1" \
  -H "Monitor-Target-Port: 9999" \
  --compressed -s | jq

Retrieve events listing ​

GET /api/monitor/get/event/desc/:start/:end/:limit

GET /api/monitor/get/event/asc/:start/:end/:limit

This endpoint retrieve all events starting between :start and :end timestamps.
Events will be ordered ascending with /get/event/asc or descending with /get/event/desc .
The timestamps for :start and :end are unix timestamps in milliseconds.
The parameter :limit is the maximum number of events to retrieve.

Example:

text
curl http://myindeximacluster:8082/api/monitor/get/event/desc/1667075793000/1667075937000/2 \
  -H "Authorization: $ACCESS_TOKEN" \
  -H "Monitor-Target-Host: indexima-core-1" \
  -H "Monitor-Target-Port: 9999" \
  --compressed -s | jq

Reply JSON Format:

NameTypeDescription
(reqs | runnings).typeStringName of the event
(reqs | runnings).dateTimestampUnix timestamp for the start of the event
(reqs | runnings).durationIntegerTime it took for the event to execute, if available
(reqs | runnings).commentStringA comment associated with the event, if available
lastLongThe timestamp of the current listing

Event list:

NameComment in the eventDescription
CLUSTER_STARTNoneCluster starts, tables aren't loaded yet
CLUSTER_STOPNoneCluster stops, thereby receiving a stop command
NODE_DOWNNumber of the nodeA specific node is unreachable
CLUSTER_INITNoneCluster is reinitializing
MEMORY_LOWNoneCluster runs out of memory and tries to unload indexes
TABLE_LOADEDName of the tableA specific table is loaded and available
HYPER_INDEX_LOADEDName of the indexA HyperIndex is loaded and available
HYPER_INDEX_UNLOADEDName of the indexA HyperIndex is unloaded because it is lacking memory
SAVE_METADATANumber of tables that has been upgradedCluster is saving metadata
PRELOAD_FINISHEDNumber of indexes loadedLoad of frequently used tables is finished (during the start of the cluster)