Show / Hide Table of Contents

    Class AutoscaleProfile

    Autoscale profile.

    Inheritance
    Object
    AutoscaleProfile
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    public class AutoscaleProfile

    Constructors

    AutoscaleProfile()

    Initializes a new instance of the AutoscaleProfile class.

    Declaration
    public AutoscaleProfile ();

    AutoscaleProfile(String, ScaleCapacity, IList<ScaleRule>, TimeWindow, Recurrence)

    Initializes a new instance of the AutoscaleProfile class.

    Declaration
    public AutoscaleProfile (string name, Microsoft.Azure.Management.Monitor.Models.ScaleCapacity capacity, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.ScaleRule> rules, Microsoft.Azure.Management.Monitor.Models.TimeWindow fixedDate = null, Microsoft.Azure.Management.Monitor.Models.Recurrence recurrence = null);
    Parameters
    String name

    the name of the profile.

    ScaleCapacity capacity

    the number of instances that can be used during this profile.

    IList<ScaleRule> rules

    the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.

    TimeWindow fixedDate

    the specific date-time for the profile. This element is not used if the Recurrence element is used.

    Recurrence recurrence

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

    Properties

    Capacity

    Gets or sets the number of instances that can be used during this profile.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="capacity")]
    public Microsoft.Azure.Management.Monitor.Models.ScaleCapacity Capacity { get; set; }
    Property Value
    ScaleCapacity

    FixedDate

    Gets or sets the specific date-time for the profile. This element is not used if the Recurrence element is used.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="fixedDate")]
    public Microsoft.Azure.Management.Monitor.Models.TimeWindow FixedDate { get; set; }
    Property Value
    TimeWindow

    Name

    Gets or sets the name of the profile.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="name")]
    public string Name { get; set; }
    Property Value
    String

    Recurrence

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="recurrence")]
    public Microsoft.Azure.Management.Monitor.Models.Recurrence Recurrence { get; set; }
    Property Value
    Recurrence

    Rules

    Gets or sets the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="rules")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.ScaleRule> Rules { get; set; }
    Property Value
    IList<ScaleRule>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net