Skip to content

Commit

Permalink
fix: change datatypes of to and from in line and table thresholds fro…
Browse files Browse the repository at this point in the history
…m float64 to string (#1199)
  • Loading branch information
vagrawal-newrelic authored Aug 1, 2024
1 parent 36d7acf commit 24943ee
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 *float64 `json:"from,omitempty"`
To *float64 `json:"to,omitempty"`
From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
Name string `json:"name,omitempty"`
Severity DashboardLineTableWidgetsAlertSeverity `json:"severity,omitempty"`
}

type DashboardTableWidgetThresholdInput struct {
From *float64 `json:"from,omitempty"`
To *float64 `json:"to,omitempty"`
From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
ColumnName string `json:"columnName,omitempty"`
Severity DashboardLineTableWidgetsAlertSeverity `json:"severity,omitempty"`
}
Expand Down

0 comments on commit 24943ee

Please sign in to comment.