Skip to content

Commit bd783a0

Browse files
committed
new adj models
1 parent bef6519 commit bd783a0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

backend/internal/adj/models.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ type Measurement struct {
5757
EnumValues []string `json:"enumValues"`
5858
}
5959

60+
type MeasurementJSON struct {
61+
Id string `json:"id"`
62+
Name string `json:"name"`
63+
Type string `json:"type"`
64+
PodUnits string `json:"podUnits"`
65+
DisplayUnits string `json:"displayUnits"`
66+
Below *float64 `json:"below"`
67+
Above *float64 `json:"above"`
68+
EnumValues []string `json:"enumValues"`
69+
}
70+
71+
type Range struct {
72+
Warning *float64 `json:"warning"`
73+
Safe *float64 `json:"safe"`
74+
}
75+
6076
type Structure struct {
6177
Packet Packet
6278
Measurements []Measurement

0 commit comments

Comments
 (0)