From 9ba3ac3f14d61729303b1f560c197f392fff8f5c Mon Sep 17 00:00:00 2001 From: vagrawal-newrelic Date: Mon, 15 Jul 2024 15:41:47 +0530 Subject: [PATCH] fix(dashboard): update line and table widget threshold to and from fields datatypes to float64 (#1192) --- pkg/dashboards/type_overrides.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/dashboards/type_overrides.go b/pkg/dashboards/type_overrides.go index 1a4abc2d9..112dbe981 100644 --- a/pkg/dashboards/type_overrides.go +++ b/pkg/dashboards/type_overrides.go @@ -16,15 +16,15 @@ type DashboardLineWidgetThresholdInput struct { } type DashboardLineWidgetThresholdThresholdInput struct { - From *int `json:"from,omitempty"` - To *int `json:"to,omitempty"` + From *float64 `json:"from,omitempty"` + To *float64 `json:"to,omitempty"` Name string `json:"name,omitempty"` Severity DashboardLineTableWidgetsAlertSeverity `json:"severity,omitempty"` } type DashboardTableWidgetThresholdInput struct { - From *int `json:"from,omitempty"` - To *int `json:"to,omitempty"` + From *float64 `json:"from,omitempty"` + To *float64 `json:"to,omitempty"` ColumnName string `json:"columnName,omitempty"` Severity DashboardLineTableWidgetsAlertSeverity `json:"severity,omitempty"` }