Schedule
Schedule represents the meta information required by the server to set resources in maintenance mode at the right interval/time. To construct specific schedules, please see some of the static helper utilities in this class.
Properties
The beginning hour of the schedule.
Type of the schedule. NOTE: Currently schedule type ‘YEARLY’ is not supported.
Possible values are: UNKNOWN , ONCE , DAILY , WEEKLY , MONTHLY , YEARLY
The beginning minutes of the schedule.
Duration of the schedule in minutes.
Deprecated, will be removed after couple of releases.
Day of the month on which the job should be triggered. Must be specified only when scheduleType = MONTHLY
. Mutually exclusive with daysOfTheMonth and weeksOfTheMonth.
The number of run after which the schedule should expire. Mutually exclusive with expirationDate and either of them should be always defined when scheduleType != ONCE
.
The expiration date of the schedule. Should be in format MM/DD/YYYY. Mutually exclusive with expireRuns and either of them should be always defined when scheduleType != ONCE
.
Days of the week on which the job should be triggered. Must be specified only when scheduleType = WEEKLY
or scheduleType = MONTHLY
.
When scheduleType = MONTHLY
this parameter is mutually exclusive with dayOfTheMonth and daysOfTheMonth, should be specified together with daysOfTheWeek.
Possible values are: UNKNOWN , SUNDAY , MONDAY , TUESDAY , WEDNESDAY , THURSDAY , FRIDAY , SATURDAY
Deprecated, will be removed after couple of releases.
Month of the year on which the job should be triggered. Must be specified only when scheduleType = MONTHLY
. Mutually exclusive with months.
Months of the year on which the job should be triggered. Must be specified only when scheduleType = MONTHLY
. Mutually exclusive with month.
Configures how the schedule is repeated within the provided interval, e.g. if scheduleType = DAILY
then setting recurrence = 2
would trigger the job every 2 days.
Applicable only when scheduleType = DAILY
or scheduleType = WEEKLY
.
The list of the days of the month on which the job should be triggered. Applicable values are {1,2,…,31,LAST}. Must be specified only when scheduleType = MONTHLY
. Mutually exclusive with dayOfTheMonth and weeksOfTheMonth.
Start date for the schedule. Should be in format MM/DD/YYYY and if not specified current date is used.
Time Zone of the schedule.
If not provided, defaults to the time of the vRealize Operations Manager server.
The list of the week indices of the month on which the job should be triggered. Must be specified only when scheduleType = MONTHLY
. Mutually exclusive with dayOfTheMonth and daysOfTheMonth, should be specified together with daysOfTheWeek.
Possible values are: UNKNOWNN , FIRST , SECOND , THIRD , FOURTH , LAST
JSON Example
{
"duration": 0,
"hour": 0,
"minuteOfTheHour": 0,
"scheduleType": "UNKNOWN"
}
Property Of
MaintenanceSchedule