Merge pull request #16964 from influxdata/fix/import-experimental
fix(notification/rule): import experimental package for pagerduty rulepull/16912/head
commit
058ccc25cf
|
@ -66,7 +66,7 @@ func (s *PagerDuty) GenerateFlux(e influxdb.NotificationEndpoint) (string, error
|
|||
func (s *PagerDuty) GenerateFluxAST(e *endpoint.PagerDuty) (*ast.Package, error) {
|
||||
f := flux.File(
|
||||
s.Name,
|
||||
flux.Imports("influxdata/influxdb/monitor", "pagerduty", "influxdata/influxdb/secrets"),
|
||||
flux.Imports("influxdata/influxdb/monitor", "pagerduty", "influxdata/influxdb/secrets", "experimental"),
|
||||
s.generateFluxASTBody(e),
|
||||
)
|
||||
return &ast.Package{Package: "main", Files: []*ast.File{f}}, nil
|
||||
|
|
|
@ -64,6 +64,7 @@ func TestPagerDuty_GenerateFlux(t *testing.T) {
|
|||
import "influxdata/influxdb/monitor"
|
||||
import "pagerduty"
|
||||
import "influxdata/influxdb/secrets"
|
||||
import "experimental"
|
||||
|
||||
option task = {name: "foo", every: 1h}
|
||||
|
||||
|
@ -147,6 +148,7 @@ all_statuses
|
|||
import "influxdata/influxdb/monitor"
|
||||
import "pagerduty"
|
||||
import "influxdata/influxdb/secrets"
|
||||
import "experimental"
|
||||
|
||||
option task = {name: "foo", every: 1h}
|
||||
|
||||
|
@ -232,6 +234,7 @@ all_statuses
|
|||
import "influxdata/influxdb/monitor"
|
||||
import "pagerduty"
|
||||
import "influxdata/influxdb/secrets"
|
||||
import "experimental"
|
||||
|
||||
option task = {name: "foo", every: 1h}
|
||||
|
||||
|
|
Loading…
Reference in New Issue