CreateMetricInput
Input for creating a metric
Fields
Associated device ID
Associated work centre ID — links this metric to a specific machine or station
Machine-readable metric name (required)
Human-readable display name
Description of what this metric measures
Metric kind (required)
Possible values (4)
GAUGEInstantaneous value that can go up or down (temperature, speed, ink level)
COUNTERMonotonically increasing cumulative value (total impressions, error count)
STATUSDiscrete state as a numeric value (0/1 for door open/closed, online/offline)
RATEComputed rate of change (pages per minute, waste per hour)
Measurement unit (required). Use CUSTOM for vertical-specific units.
Possible values (39)
NONENo unit
PERCENTPercentage (0-100)
RATIORatio (0.0-1.0)
BOOLEANBoolean (0 or 1)
COUNTGeneric count
PIECESDiscrete pieces/items
MILLIMETERSMillimeters
METERSMeters
INCHESInches
FEETFeet
METERS_PER_MINUTEMeters per minute
FEET_PER_MINUTEFeet per minute
UNITS_PER_MINUTEUnits per minute (generic)
UNITS_PER_HOURUnits per hour (generic)
CELSIUSDegrees Celsius
FAHRENHEITDegrees Fahrenheit
KELVINKelvin
BARBar
PSIPounds per square inch
KILOPASCALKilopascal
GRAMSGrams
KILOGRAMSKilograms
POUNDSPounds
MILLILITERSMilliliters
LITERSLiters
SQUARE_METERSSquare meters
SQUARE_FEETSquare feet
MILLISECONDSMilliseconds
SECONDSSeconds
MINUTESMinutes
HOURSHours
VOLTSVolts
AMPSAmperes
WATTSWatts
KILOWATT_HOURSKilowatt-hours
BYTESBytes
KILOBYTESKilobytes
MEGABYTESMegabytes
CUSTOMVertical-specific or user-defined unit — provide the unit name in customUnit
Vertical-specific unit name when unit is CUSTOM (e.g. SHEETS, BOTTLES). Required when unit is CUSTOM.
Referenced by (1)
Exact type SDL
"""Input for creating a metric"""
input CreateMetricInput {
"""Associated device ID"""
deviceId: DeviceID
"""
Associated work centre ID — links this metric to a specific machine or station
"""
workCenterId: WorkCenterID
"""Machine-readable metric name (required)"""
name: String!
"""Human-readable display name"""
displayName: String
"""Description of what this metric measures"""
description: String
"""Metric kind (required)"""
kind: MetricKind!
"""Measurement unit (required). Use CUSTOM for vertical-specific units."""
unit: MetricUnit!
"""
Vertical-specific unit name when unit is CUSTOM (e.g. SHEETS, BOTTLES). Required when unit is CUSTOM.
"""
customUnit: String
"""Key-value metadata tags"""
tags: [DictionaryInput!]
}