Get Historical Events
- 20 Jun 2024
- 1 Minute to read
- Print
- Dark
Get Historical Events
- Updated on 20 Jun 2024
- 1 Minute to read
- Print
- Dark
Article summary
Did you find this summary helpful?
Thank you for your feedback!
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
Response
Click Try It! to start a request and see the response here!
Code Samples
x
curl --request GET \
--url https://api.limacharlie.io/v1/insight/%7Boid%7D/%7Bsid%7D \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'accept: '
Was this article helpful?
Response
Click Try It! to start a request and see the response here!
Code Samples
xxxxxxxxxx
curl --request GET \
--url https://api.limacharlie.io/v1/insight/%7Boid%7D/%7Bsid%7D \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'accept: '