Skip to content

Commit

Permalink
Day of Week / Month support
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Oct 7, 2024
1 parent 29feb1b commit 8a6a80d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v1/scheduler/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ type Schedule struct {

// TimeSyncZone indicates the timezone that the TimeSyncHour is relative to. Ignored if TimeDelaySync is set to None
TimeSyncZone TimeZone `json:"timeSyncZone" yaml:"timeSyncZone" validate:"oneof=ULT UTC CIT"`

// DayOfMonth is the day of the month to process the schedule
DayOfMonth int `json:"dayOfMonth" yaml:"dayOfMonth" validate:"min=1,max=31"`

// DayOfWeek is the day of the week to process the schedule (1 = Monday) - Sunday moved to 7 to leave 0 as an ignored value
DayOfWeek int `json:"dayOfWeek" yaml:"dayOfWeek" validate:"min=1,max=7"`
}

0 comments on commit 8a6a80d

Please sign in to comment.