From cf21ff0bdcac8ecb38ca8857be88a87af916c01f Mon Sep 17 00:00:00 2001 From: Peter Kristensen Date: Tue, 21 Dec 2021 12:48:44 +0100 Subject: [PATCH] Add displayName to field config --- panel.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/panel.go b/panel.go index b5ca1dc..60caf74 100644 --- a/panel.go +++ b/panel.go @@ -337,15 +337,16 @@ type ( Mode string `json:"mode"` } FieldConfigDefaults struct { - Unit string `json:"unit"` - NoValue string `json:"noValue,omitempty"` - Decimals *int `json:"decimals,omitempty"` - Min *float64 `json:"min,omitempty"` - Max *float64 `json:"max,omitempty"` - Color FieldConfigColor `json:"color"` - Thresholds Thresholds `json:"thresholds"` - Custom FieldConfigCustom `json:"custom"` - Links []Link `json:"links,omitempty"` + Unit string `json:"unit"` + NoValue string `json:"noValue,omitempty"` + Decimals *int `json:"decimals,omitempty"` + Min *float64 `json:"min,omitempty"` + Max *float64 `json:"max,omitempty"` + Color FieldConfigColor `json:"color"` + Thresholds Thresholds `json:"thresholds"` + Custom FieldConfigCustom `json:"custom"` + Links []Link `json:"links,omitempty"` + DisplayName string `json:"displayName,omitempty"` } FieldConfigOverrideProperty struct { ID string `json:"id"`