fix(alerts): remove the cron option from checks/rules
parent
c24710a00d
commit
265bc7bf2a
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue