Show / Hide Table of Contents

    Class AutoscaleSettingResource

    The autoscale setting resource.

    Inheritance
    Object
    Resource
    AutoscaleSettingResource
    Inherited Members
    Resource.Id
    Resource.Location
    Resource.Name
    Resource.Tags
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class AutoscaleSettingResource : Microsoft.Azure.Management.Monitor.Models.Resource

    Constructors

    AutoscaleSettingResource()

    Initializes a new instance of the AutoscaleSettingResource class.

    Declaration
    public AutoscaleSettingResource ();

    AutoscaleSettingResource(String, IList<AutoscaleProfile>, String, String, String, IDictionary<String,String>, IList<AutoscaleNotification>, Nullable<Boolean>, String, String)

    Initializes a new instance of the AutoscaleSettingResource class.

    Declaration
    public AutoscaleSettingResource (string location, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleProfile> profiles, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleNotification> notifications = null, Nullable<bool> enabled = null, string autoscaleSettingResourceName = null, string targetResourceUri = null);
    Parameters
    String location

    Resource location

    IList<AutoscaleProfile> profiles

    the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

    String id

    Azure resource Id

    String name

    Azure resource name

    String type

    Azure resource type

    IDictionary<String,String> tags

    Resource tags

    IList<AutoscaleNotification> notifications

    the collection of notifications.

    Nullable<Boolean> enabled

    the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.

    String autoscaleSettingResourceName

    the name of the autoscale setting.

    String targetResourceUri

    the resource identifier of the resource that the autoscale setting should be added to.

    Properties

    AutoscaleSettingResourceName

    Gets or sets the name of the autoscale setting.

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

    Enabled

    Gets or sets the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.enabled")]
    public Nullable<bool> Enabled { get; set; }
    Property Value
    Nullable<Boolean>

    Notifications

    Gets or sets the collection of notifications.

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

    Profiles

    Gets or sets the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

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

    TargetResourceUri

    Gets or sets the resource identifier of the resource that the autoscale setting should be added to.

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

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net