Metric
Type: Object
Defines a time-series metric for tracking and analysis. A metric represents a queryable, correlatable pool of data, such as machine speed, material consumption, or job completion rates. It provides the structure for collecting data points and is used to monitor Key Performance Indicators (KPIs) and other critical business or operational measures.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| averageValue | Float | from: DateTimeto: DateTime | ||
| countPoints | Int | from: DateTimeto: DateTime | ||
| dataPoints | [MetricDataPoint!]! | filter: MetricDataPointFilterInputlimit: Intoffset: Intsort: [MetricDataPointSortInput] | The data points associated with this metric. | |
| description | String | An optional description of the metric. | ||
| id | ID! | |||
| kind | MetricKind! | The kind of metric - such as a speed, a count, a temperature etc. | ||
| maxValue | Float | from: DateTimeto: DateTime | ||
| minValue | Float | from: DateTimeto: DateTime | ||
| name | String! | The name of the metric, this must be unique. | ||
| resource | Resource | Optional resource this metric is scoped to when not generic. | ||
| resourceId | ID | |||
| signalDetails | JsonString! | Vendor or sensor-specific metadata describing the signal. | ||
| signalType | SignalType! | Semantic signal classification (TOPIC_SUBTOPIC_STREAM). | ||
| tags | JsonString! | Any tags relevant to this metric. | ||
| unit | String | The unit of the metric. |