Interface TimePeriod

Time periods can be used to specify when hosts/services should be checked or to limit when notifications should be sent out.

Examples:

object TimePeriod "nonworkhours" {
display_name = "Icinga 2 TimePeriod for non working hours"

ranges = {
monday = "00:00-8:00,17:00-24:00"
tuesday = "00:00-8:00,17:00-24:00"
wednesday = "00:00-8:00,17:00-24:00"
thursday = "00:00-8:00,17:00-24:00"
friday = "00:00-8:00,16:00-24:00"
saturday = "00:00-24:00"
sunday = "00:00-24:00"
}
}

object TimePeriod "exampledays" {
display_name = "Icinga 2 TimePeriod for random example days"

ranges = {
//We still believe in Santa, no peeking!
//Applies every 25th of December every year
"december 25" = "00:00-24:00"

//Any point in time can be specified,
//but you still have to use a range
"2038-01-19" = "03:13-03:15"

//Evey 3rd day from the second monday of February
//to 8th of November
"monday 2 february - november 8 / 3" = "00:00-24:00"
}
}

Additional examples can be found here.

interface TimePeriod {}