From 0ad5b821a865ed927a2a96600ddd050a8d923eef Mon Sep 17 00:00:00 2001 From: vagrawal-newrelic Date: Thu, 11 Jul 2024 15:34:32 +0530 Subject: [PATCH] fix(Dashboard): Update line and table widget threashold 'to' and 'from' dataType to 'Float' Updated the data type for the "to" and "From" feilds in "Threashold" in line and table widget from int to float(GitHub #2703) --- 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 1a4abc2d..112dbe98 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"` }