Appearance
UpsertMetricInput
Type: Input
Input for creating or updating a metric
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| customUnit | String | Vertical-specific unit name when unit is CUSTOM (e.g. SHEETS, BOTTLES). Required when unit is CUSTOM. | |
| description | String | Description of what this metric measures | |
| deviceId | DeviceID | Associated device ID | |
| displayName | String | Human-readable display name | |
| id | MetricID | ID for update; omit for create | |
| kind | MetricKind! | Metric kind (required) | |
| name | String! | Machine-readable metric name (required) | |
| tags | [DictionaryInput!] | Key-value metadata tags | |
| unit | MetricUnit! | Measurement unit (required). Use CUSTOM for vertical-specific units. | |
| workCenterId | WorkCenterID | Associated work centre ID — links this metric to a specific machine or station |