Class Condition
A rule that defines a specific autoscaling action to take (scale in or scale out) and the metric that triggers that action.
Inherited Members
Namespace: Oci.AutoscalingService.Models
Assembly: OCI.DotNetSDK.Autoscaling.dll
Syntax
public class Condition
Properties
Action
Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
public Action Action { get; set; }
Property Value
Type | Description |
---|---|
Action |
Remarks
Required
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 | ID of the condition that is assigned after creation. |
Metric
Declaration
[Required(ErrorMessage = "Metric is required.")]
[JsonProperty(PropertyName = "metric")]
public Metric Metric { get; set; }
Property Value
Type | Description |
---|---|
Metric |
Remarks
Required