Skip to content

Commit ab4b131

Browse files
fix(dashboards): add support for showApplyAction in variable options (#1343)
1 parent 7886354 commit ab4b131

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/dashboards/dashboard.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const getDashboardEntityQuery = `query ($guid: EntityGuid!) {
102102
options {
103103
excluded
104104
ignoreTimeRange
105+
showApplyAction
105106
}
106107
nrqlQuery {
107108
accountIds

pkg/dashboards/dashboards_api.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/dashboards/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ type DashboardVariableOptions struct {
511511
Excluded bool `json:"excluded,omitempty"`
512512
// Only applies to variables of type NRQL. With this turned on, the time range for the NRQL query will override the time picker on dashboards and other pages. Turn this off to use the time picker as normal.
513513
IgnoreTimeRange bool `json:"ignoreTimeRange,omitempty"`
514+
// Determines whether or not an Apply action will be shown when selecting multiple values in ENUM and NRQL variables.
515+
ShowApplyAction bool `json:"showApplyAction,omitempty"`
514516
}
515517

516518
// DashboardVariableOptionsInput - Options applied to the variable
@@ -519,6 +521,8 @@ type DashboardVariableOptionsInput struct {
519521
Excluded *bool `json:"excluded,omitempty"`
520522
// Only applies to variables of type NRQL. With this turned on, the time range for the NRQL query will override the time picker on dashboards and other pages. Turn this off to use the time picker as normal.
521523
IgnoreTimeRange *bool `json:"ignoreTimeRange,omitempty"`
524+
// Determines whether or not an Apply action will be shown when selecting multiple values in ENUM and NRQL variables.
525+
ShowApplyAction *bool `json:"showApplyAction,omitempty"`
522526
}
523527

524528
// DashboardWidgetConfigurationInput - Typed configuration for known visualizations. At most one may be populated.

pkg/entities/entities_api.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/entities/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,6 +5385,8 @@ type DashboardVariableOptions struct {
53855385
Excluded bool `json:"excluded,omitempty"`
53865386
// Only applies to variables of type NRQL. With this turned on, the time range for the NRQL query will override the time picker on dashboards and other pages. Turn this off to use the time picker as normal.
53875387
IgnoreTimeRange bool `json:"ignoreTimeRange,omitempty"`
5388+
// Determines whether or not an Apply action will be shown when selecting multiple values in ENUM and NRQL variables.
5389+
ShowApplyAction bool `json:"showApplyAction,omitempty"`
53885390
}
53895391

53905392
// DashboardWidget - Widgets in a Dashboard Page.

0 commit comments

Comments
 (0)