MENU
    Get Historical Events
    • 20 Jun 2024
    • 1 Minute to read
    • Dark

    Get Historical Events

    • Dark

    Article summary

    Get
    /insight/{oid}/{sid}

    Retrieve historical data from the sensor using Insight.

    Security
    HTTP
    Type bearer
    Path parameters
    oid
    stringRequired

    organization id

    sid
    stringRequired

    sensor id

    Query parameters
    start
    integer

    required timestamp in seconds where to begin fetching events

    end
    integer

    required timestamp in seconds where to stop fetching events

    limit
    integer

    maximum number of events to return

    event_type
    string

    specific event type to fetch

    is_compressed
    string

    set to 'true' to enable compression, data returned 'events' is base64(gzip(data))

    cursor
    string

    optional cursor for paginated access, set to '-' for first query

    is_forward
    string

    direction of paginated query results, defaults to 'true' (ascending).

    output_name
    string

    send data to a named output instead

    Responses
    200

    successful operation

    401

    Access token is missing or invalid

    Authentication
    Token
    *
    URL
    Base URL
    https://api.limacharlie.io/v1
    Parameters
    oid*
    sid*
    start
    end
    limit
    event_type
    is_compressed
    cursor
    is_forward
    output_name
    Response
    Click Try It! to start a request and see the response here!
    Code Samples

    Was this article helpful?

    Authentication
    Token
    *
    URL
    Base URL
    https://api.limacharlie.io/v1
    Parameters
    oid*
    sid*
    start
    end
    limit
    event_type
    is_compressed
    cursor
    is_forward
    output_name
    Response
    Click Try It! to start a request and see the response here!
    Code Samples