Skip to content

Commit 9db1272

Browse files
committed
feat(dashboards): add threshold block in threshold series overrides
1 parent 7c0fda3 commit 9db1272

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/dashboards/dashboards_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,17 @@ type DashboardWidgetBillboardGridOptions struct {
460460

461461
// DashboardBillboardWidgetThresholdsWithSeriesOverrides represents the thresholds with series overrides configuration for billboard widgets
462462
type DashboardBillboardWidgetThresholdsWithSeriesOverrides struct {
463+
Thresholds []DashboardBillboardWidgetThreshold `json:"thresholds,omitempty"`
463464
SeriesOverrides []DashboardBillboardWidgetThresholdSeriesOverride `json:"seriesOverrides,omitempty"`
464465
}
465466

467+
// DashboardBillboardWidgetThreshold represents a single threshold configuration
468+
type DashboardBillboardWidgetThreshold struct {
469+
From float64 `json:"from,omitempty"`
470+
To float64 `json:"to,omitempty"`
471+
Severity string `json:"severity,omitempty"`
472+
}
473+
466474
// DashboardBillboardWidgetThresholdSeriesOverride represents a single threshold series override
467475
type DashboardBillboardWidgetThresholdSeriesOverride struct {
468476
From float64 `json:"from,omitempty"`

0 commit comments

Comments
 (0)