Appearance
MetricState
Type: Object
A metric definition describing a trackable measurement
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| createdAt | String! | Creation timestamp (ISO8601) | ||
| customUnit | String | Vertical-specific unit name when unit is CUSTOM (e.g. SHEETS, BOTTLES) | ||
| description | String | Description of what this metric measures | ||
| deviceId | DeviceID | Associated device ID | ||
| deviceName | String | Resolved device name (read-only) | ||
| displayName | String | Human-readable display name | ||
| id | MetricID! | Unique identifier | ||
| kind | MetricKind! | Metric kind (gauge, counter, status, rate) | ||
| name | String! | Machine-readable metric name (e.g. door_open, ink_level) | ||
| resolvedUnitLabel | String! | Display-friendly unit label — returns customUnit for CUSTOM, otherwise the standard unit name | ||
| tags | [Dictionary!]! | Key-value metadata tags | ||
| unit | MetricUnit! | Measurement unit (CUSTOM when using a vertical-specific unit) | ||
| updatedAt | String! | Last update timestamp (ISO8601) | ||
| workCenter | WorkCenterState | Resolved work centre (via DataLoader) | ||
| workCenterId | WorkCenterID | Associated work centre ID — enables filtering and cross-machine comparison |