Share via


Schedule Class

Definition

Set assessment schedule for SQL Server.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Models.Api20220801Preview.ScheduleTypeConverter))]
public class Schedule : Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Models.Api20220801Preview.ISchedule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Models.Api20220801Preview.ScheduleTypeConverter))>]
type Schedule = class
    interface ISchedule
    interface IJsonSerializable
Public Class Schedule
Implements ISchedule
Inheritance
Schedule
Attributes
Implements

Constructors

Schedule()

Creates an new Schedule instance.

Properties

DayOfWeek

Day of the week to run assessment.

Enable

Enable or disable assessment schedule on SQL virtual machine.

MonthlyOccurrence

Occurrence of the DayOfWeek day within a month to schedule assessment. Takes values: 1,2,3,4 and -1. Use -1 for last DayOfWeek day of the month

StartTime

Time of the day in HH:mm format. Eg. 17:30

WeeklyInterval

Number of weeks to schedule between 2 assessment runs. Takes value from 1-6

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Schedule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Schedule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Models.Api20220801Preview.ISchedule.

FromJsonString(String)

Creates a new instance of Schedule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Schedule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to