Class AutoScalingConfiguration
An autoscaling configuration lets you dynamically scale the resources in a Compute instance pool. For more information, see Autoscaling.
Inherited Members
Namespace: Oci.AutoscalingService.Models
Assembly: OCI.DotNetSDK.Autoscaling.dll
Syntax
public class AutoScalingConfiguration
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment containing the autoscaling configuration. |
Remarks
Required
CoolDownInSeconds
Declaration
[JsonProperty(PropertyName = "coolDownInSeconds")]
public int? CoolDownInSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which
is also the default. The cooldown period starts when the instance pool reaches the running state.
|
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a
namespace. For more information, see Resource Tags.
|
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. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair with no
predefined name, type, or namespace. For more information, see Resource Tags.
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the autoscaling configuration. |
Remarks
Required
IsEnabled
Declaration
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether the autoscaling configuration is enabled. |
MaxResourceCount
Declaration
[JsonProperty(PropertyName = "maxResourceCount")]
public int? MaxResourceCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The maximum number of resources to scale out to. |
MinResourceCount
Declaration
[JsonProperty(PropertyName = "minResourceCount")]
public int? MinResourceCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The minimum number of resources to scale in to. |
Policies
Declaration
[Required(ErrorMessage = "Policies is required.")]
[JsonProperty(PropertyName = "policies")]
public List<AutoScalingPolicy> Policies { get; set; }
Property Value
| Type | Description |
|---|---|
| List<AutoScalingPolicy> | Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take. |
Remarks
Required
Resource
Declaration
[Required(ErrorMessage = "Resource is required.")]
[JsonProperty(PropertyName = "resource")]
public Resource Resource { get; set; }
Property Value
| Type | Description |
|---|---|
| Resource |
Remarks
Required
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.
|
Remarks
Required