Show / Hide Table of Contents

Class AutoScalingPolicy

Autoscaling policies define the criteria that trigger autoscaling actions and the actions to take.
An autoscaling policy is part of an autoscaling configuration. For more information, see Autoscaling.
You can create the following types of autoscaling policies:

  • Schedule-based: Autoscaling events take place at the specific times that you schedule.
  • Threshold-based: An autoscaling action is triggered when a performance metric meets or exceeds a threshold.
Inheritance
object
AutoScalingPolicy
ScheduledPolicy
ThresholdPolicy
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.AutoscalingService.Models
Assembly: OCI.DotNetSDK.Autoscaling.dll
Syntax
[JsonConverter(typeof(AutoScalingPolicyModelConverter))]
public class AutoScalingPolicy

Properties

Capacity

Declaration
[JsonProperty(PropertyName = "capacity")]
public Capacity Capacity { get; set; }
Property Value
Type Description
Capacity

The capacity requirements of the autoscaling policy.

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

Id

Declaration
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The ID of the autoscaling policy that is assigned after creation.

IsEnabled

Declaration
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type Description
bool?

Whether the autoscaling policy is enabled.

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the autoscaling configuration was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

In this article
Back to top