ArmCostManagementModelFactory.ScheduleProperties Method

Definition

The properties of the schedule.

public static Azure.ResourceManager.CostManagement.Models.ScheduleProperties ScheduleProperties(Azure.ResourceManager.CostManagement.Models.ScheduleFrequency frequency = default, int? hourOfDay = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.ScheduledActionDaysOfWeek> daysOfWeek = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.ScheduledActionWeeksOfMonth> weeksOfMonth = default, int? dayOfMonth = default, DateTimeOffset startOn = default, DateTimeOffset endOn = default);
static member ScheduleProperties : Azure.ResourceManager.CostManagement.Models.ScheduleFrequency * Nullable<int> * seq<Azure.ResourceManager.CostManagement.Models.ScheduledActionDaysOfWeek> * seq<Azure.ResourceManager.CostManagement.Models.ScheduledActionWeeksOfMonth> * Nullable<int> * DateTimeOffset * DateTimeOffset -> Azure.ResourceManager.CostManagement.Models.ScheduleProperties
Public Shared Function ScheduleProperties (Optional frequency As ScheduleFrequency = Nothing, Optional hourOfDay As Nullable(Of Integer) = Nothing, Optional daysOfWeek As IEnumerable(Of ScheduledActionDaysOfWeek) = Nothing, Optional weeksOfMonth As IEnumerable(Of ScheduledActionWeeksOfMonth) = Nothing, Optional dayOfMonth As Nullable(Of Integer) = Nothing, Optional startOn As DateTimeOffset = Nothing, Optional endOn As DateTimeOffset = Nothing) As ScheduleProperties

Parameters

frequency
ScheduleFrequency

Frequency of the schedule.

hourOfDay
Nullable<Int32>

UTC time at which cost analysis data will be emailed.

daysOfWeek
IEnumerable<ScheduledActionDaysOfWeek>

Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.

weeksOfMonth
IEnumerable<ScheduledActionWeeksOfMonth>

Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.

dayOfMonth
Nullable<Int32>

UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.

startOn
DateTimeOffset

The start date and time of the scheduled action (UTC).

endOn
DateTimeOffset

The end date and time of the scheduled action (UTC).

Returns

A new ScheduleProperties instance for mocking.

Applies to