Skip to content

Commit 60d135f

Browse files
committed
Add measurement unit to point
1 parent d2f6c0f commit 60d135f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

schema/point.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,12 @@ type HistoryCOVThreshold struct {
132132
Title string `json:"title" default:"History COV Threshold"`
133133
Default *float64 `json:"default" default:"0.01"`
134134
}
135+
136+
type MeasurementUnit struct {
137+
Type string `json:"type" default:"string"`
138+
Title string `json:"title" default:"Units"`
139+
Help string `json:"help" default:"Measurement Units"`
140+
Default string `json:"default" default:""`
141+
Options []string `json:"enum" default:"[]"`
142+
EnumName []string `json:"enumNames" default:"[]"`
143+
}

0 commit comments

Comments
 (0)