14.11.2 Get Inspection Data
Inspection data is information about the server state.
You can get the inspection data using the following code:
Get the Inspection Data Using Java
JsonNode serverState = instance.getServerState();
Get the Inspection Data Using Python
server_state = instance.get_server_state()
This returns a JsonNode
which contains all administration information, such as, number of graphs loaded, number of sessions, memory usage for graphs and properties and so on.
{
"cached_graphs": [],
"published_graphs": [],
"graphs_currently_loading": [],
"sessions": [],
"tasks": [],
"pools": [],
"memory": {}
}
Parent topic: Admin API