Skip to main content
QUERY
equipmentStatusChanges(equipmentId: String, from: DateTime, siteId: Int, statuses: [String!], to: DateTime): [EquipmentStatusChange!]!

Arguments

equipmentId
String

Id of the equipment whose status changes to return.

from
DateTime

Earliest change time to include.

siteId
Int

Id of the site whose equipment to include.

statuses
[String!]

New statuses to include, any of 'OPERATIONAL' (Operational) or 'OUT_OF_ORDER' (Out of order). Set as an empty list if there are no statuses to narrow by.

to
DateTime

Latest change time to include.

changedAt
DateTime!

When the status changed.

changedById
String

Id of the user who changed the status.

equipmentId
String!

Id of the equipment whose status changed.

fromStatus
String

Status before the change, one of 'OPERATIONAL' (Operational) or 'OUT_OF_ORDER' (Out of order).

id
String!

Id of the status change.

note
String

Note explaining the change.

toStatus
String!

Status after the change, one of 'OPERATIONAL' (Operational) or 'OUT_OF_ORDER' (Out of order).

Query
Response