Skip to main content

handle_status

Function handle_status 

Source
pub async fn handle_status(
    req: HttpRequest,
    state: Data<AppState>,
) -> Result<HttpResponse, HaystackError>
Expand description

GET /api/system/status

Returns a single-row grid with server status information:

  • uptime: seconds since the server started (with ā€œsā€ unit)
  • entityCount: number of entities in the graph
  • watchCount: number of active watch subscriptions