Język

ArmMonitorModelFactory.MonitorRecurrence Method

Definition

The repeating times at which this profile begins. This element is not used if the FixedDate element is used.

public static Azure.ResourceManager.Monitor.Models.MonitorRecurrence MonitorRecurrence(Azure.ResourceManager.Monitor.Models.RecurrenceFrequency frequency = Azure.ResourceManager.Monitor.Models.RecurrenceFrequency.None, Azure.ResourceManager.Monitor.Models.RecurrentSchedule schedule = default);
static member MonitorRecurrence : Azure.ResourceManager.Monitor.Models.RecurrenceFrequency * Azure.ResourceManager.Monitor.Models.RecurrentSchedule -> Azure.ResourceManager.Monitor.Models.MonitorRecurrence
Public Shared Function MonitorRecurrence (Optional frequency As RecurrenceFrequency = Azure.ResourceManager.Monitor.Models.RecurrenceFrequency.None, Optional schedule As RecurrentSchedule = Nothing) As MonitorRecurrence

Parameters

frequency
RecurrenceFrequency

the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set schedule to every day of the week. The frequency property specifies that the schedule is repeated weekly.

schedule
RecurrentSchedule

the scheduling constraints for when the profile begins.

Returns

A new MonitorRecurrence instance for mocking.

Applies to