Skip to content

Commit 34bf1f0

Browse files
committed
adj out_of_range model
1 parent 146116c commit 34bf1f0

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

backend/internal/adj/models.go

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,25 @@ type Measurement struct {
5858
}
5959

6060
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"`
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 BelowOrAbove `json:"below"`
67+
Above BelowOrAbove `json:"above"`
68+
OutOfRange OutOfRange `json:"out_of_range"`
69+
EnumValues []string `json:"enumValues"`
70+
}
71+
72+
type BelowOrAbove struct {
73+
Safe *float64 `json:"safe"`
74+
Warning *float64 `json:"warning"`
75+
}
76+
77+
type OutOfRange struct {
78+
Safe []*float64 `json:"safe"`
79+
Warning []*float64 `json:"warning"`
6980
}
7081

7182
type Range struct {

0 commit comments

Comments
 (0)