Skip to content

Commit ee4965b

Browse files
committed
Add displayName to field config
1 parent c4cd0c9 commit ee4965b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

panel.go

+9-8
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,15 @@ type (
371371
Mode string `json:"mode"`
372372
}
373373
FieldConfigDefaults struct {
374-
Unit string `json:"unit"`
375-
Decimals *int `json:"decimals,omitempty"`
376-
Min *int `json:"min,omitempty"`
377-
Max *int `json:"max,omitempty"`
378-
Color FieldConfigColor `json:"color"`
379-
Thresholds Thresholds `json:"thresholds"`
380-
Custom FieldConfigCustom `json:"custom"`
381-
Links []Link `json:"links,omitempty"`
374+
Unit string `json:"unit"`
375+
Decimals *int `json:"decimals,omitempty"`
376+
Min *int `json:"min,omitempty"`
377+
Max *int `json:"max,omitempty"`
378+
Color FieldConfigColor `json:"color"`
379+
Thresholds Thresholds `json:"thresholds"`
380+
Custom FieldConfigCustom `json:"custom"`
381+
Links []Link `json:"links,omitempty"`
382+
DisplayName string `json:"displayName,omitempty"`
382383
}
383384
FieldConfigCustom struct {
384385
AxisLabel string `json:"axisLabel,omitempty"`

0 commit comments

Comments
 (0)