Skip to main content

Get stats records

GET 

/api/v1/stats

Returns the most recent stat records in ascending order of time.

Request

Query Parameters

    id stringrequired

    ID of stream

    streamtype stringrequired

    Stream type, must be one of volume, weight, constituentresult, or rti

Responses

successful operation

Schema

    serverTime date-time
    error stringnullable

    description of error in natural language, absent in case of successful operation

    payload

    object[]

    nullable

    The response data

  • Array [

  • time int64

    Milliseconds since Unix epoch

    amendTime int64

    If the value has been amended after being previously published, this field indicates the time of the amendment in milliseconds since Unix epoch. If no amendment has been made, the field will be absent.

    repeatOfPreviousValue boolean

    If an error has occurred during calculation such that an index value could not be calculated for that day, and it has been replaced with the value from the previous day, this boolean field will exist, and will be true. If no such error has occurred, the field will be absent.

  • ]

Loading...