Skip to main content

Get Robot State Timeline

GET 

/api/v1/analytics/robot-state-timeline

Time-weighted distribution of the seven robot states over a window. The server reads raw state events from event_analytics, carries the last known state forward across gaps, measures the time spent in each state, and returns finished durations, percentages and timeline segments — the client does no math.

Request​

Query Parameters

    start_timestamp stringrequired

    Mandatory. Inclusive window start — ISO 8601 datetime or epoch milliseconds. Typically local midnight (12:00 AM) of the selected day.

    end_timestamp stringrequired

    Mandatory. Inclusive window end — ISO 8601 datetime or epoch milliseconds. now() for the current day, or the next local midnight (12:00 AM) for a past day.

Responses​

Successful response with the robot state timeline

Schema
    success booleanrequired
    message stringrequired
    data objectrequired
    window objectrequired
    start stringrequired
    end stringrequired
    elapsed_ms numberrequired
    tracked_ms numberrequired
    coverage_pct numberrequired
    states object[]required
  • Array [
  • key stringrequired
    val numberrequired
    duration_ms numberrequired
    percentage numberrequired
    segments object[]required
  • Array [
  • start stringrequired
    end stringrequired
    duration_ms numberrequired
  • ]
  • ]
  • status numberrequired
Loading...