Get Status History
GET
/api/v1/devices/{device_type}/status-history
Get a collection of all the previous UP/DOWN statuses for a device.
This route should provide 90 days of device status history along with the current status of a device.
Parameters
Path Parameters
device_type
required
DeviceTypeName
Enumeration of allowed and legacy device type names
string
Responses
200
Successful Response
NonPaginatedResponse[ProducedManyDeviceHistoryResponse]
Represents a response with either a list of items or a single item in a single page.
Generic Parameters:
- A
(TypeVar): The type bound to this class, which can be a single BaseModel,
a list of BaseModels, or None.
Usage:
- To respond with an unpaginated list of FooResponse
items
from an API endpoint, ensure that your function
returns NonPaginatedResponse[List[FooResponse]]
.
- To respond with a single `FooResponse` item from an API endpoint,
make sure that your function returns `NonPaginatedResponse[FooResponse]`
and that Python recognizes it.
object
data
ProducedManyDeviceHistoryResponse
object
device_type
required
DeviceTypeName
Enumeration of allowed and legacy device type names
string
current_status
required
DeviceStatus
An enumeration.
string
current_status_message
Current Status Message
string
history
required
History
Array<object>
DeviceStatusHistoryUpdateobject
status
required
DeviceStatus
An enumeration.
string
message
Message
string
created_at
required
Created At
string format: date-time
422
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string