Range for Downtimes - every 2 weeks


(Monitor Junkie) #1

Hello,

does anyone know how to define a range “every 2 weeks” for downtime?

"just week" or "odd week"

Thx.


#2

At least defining something like the following doesn’t throw errors:

object TimePeriod "bi_weekly" {
  import "legacy-timeperiod"

  display_name = "TimePeriod every two weeks"
  ranges
    "2019-01-21 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-22 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-23 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-24 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-25 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-26 - 2999-12-31 / 14" = "00:00-24:00"
    "2019-01-27 - 2999-12-31 / 14" = "00:00-24:00"
  }
}

The timeperiods starting at the given dates should be repeated every 14 days (for a very long period).
AFAIK there is no option to define a repetition of certain weeks.