diff --git a/http/swagger.yml b/http/swagger.yml index dc21735640..b271572b17 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -9345,9 +9345,6 @@ components: offset: description: Duration to delay after the schedule, before executing check. type: string - cron: - description: The check repetition interval in the form `* * * * * *`. - type: string tags: description: List of tags to write to each status. type: array @@ -9529,9 +9526,6 @@ components: offset: description: Duration to delay after the schedule, before executing check. type: string - cron: - description: The notification repetition interval in the form `* * * * * *`. - type: string runbookLink: type: string limitEvery: diff --git a/notification/check/check.go b/notification/check/check.go index d968e46279..08becde249 100644 --- a/notification/check/check.go +++ b/notification/check/check.go @@ -91,10 +91,6 @@ func (b Base) generateTaskOption() ast.Statement { props = append(props, flux.Property("name", flux.String(b.Name))) - if b.Cron != "" { - props = append(props, flux.Property("cron", flux.String(b.Cron))) - } - if b.Every != nil { props = append(props, flux.Property("every", (*ast.DurationLiteral)(b.Every))) } diff --git a/notification/rule/rule.go b/notification/rule/rule.go index e32a156144..2da48c6d0e 100644 --- a/notification/rule/rule.go +++ b/notification/rule/rule.go @@ -53,7 +53,6 @@ type Base struct { Status influxdb.Status `json:"status"` // SleepUntil is an optional sleeptime to start a task. SleepUntil *time.Time `json:"sleepUntil,omitempty"` - Cron string `json:"cron,omitempty"` Every *notification.Duration `json:"every,omitempty"` // Offset represents a delay before execution. // It gets marshalled from a string duration, i.e.: "10s" is 10 seconds @@ -270,10 +269,6 @@ func (b *Base) generateTaskOption() ast.Statement { props = append(props, flux.Property("name", flux.String(b.Name))) - if b.Cron != "" { - props = append(props, flux.Property("cron", flux.String(b.Cron))) - } - if b.Every != nil { // Make the windows overlap and filter records from previous queries. // This is so that we wont miss the first points possible state change.