Skip to content

Commit

Permalink
fix(Dashboard): Update line and table widget threashold 'to' and 'fro…
Browse files Browse the repository at this point in the history
…m' 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)
  • Loading branch information
vagrawal-newrelic committed Jul 11, 2024
1 parent 06441fa commit 0ad5b82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/dashboards/type_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 0ad5b82

Please sign in to comment.