174 строки
12 KiB
YAML
174 строки
12 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.resourcemanager.monitor.models.ScaleAction"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction"
|
|
name: "ScaleAction"
|
|
nameWithType: "ScaleAction"
|
|
summary: "The parameters for the scaling action."
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public final class **ScaleAction**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />>"
|
|
constructors:
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.ScaleAction()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.ScaleAction()"
|
|
name: "ScaleAction()"
|
|
nameWithType: "ScaleAction.ScaleAction()"
|
|
summary: "Creates an instance of Scale<wbr>Action class."
|
|
syntax: "public ScaleAction()"
|
|
desc: "Creates an instance of ScaleAction class."
|
|
methods:
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.cooldown()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.cooldown()"
|
|
name: "cooldown()"
|
|
nameWithType: "ScaleAction.cooldown()"
|
|
summary: "Get the cooldown property: the amount of time to wait since the last scaling action before this action occurs."
|
|
syntax: "public Duration cooldown()"
|
|
desc: "Get the cooldown property: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format."
|
|
returns:
|
|
description: "the cooldown value."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.direction()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.direction()"
|
|
name: "direction()"
|
|
nameWithType: "ScaleAction.direction()"
|
|
summary: "Get the direction property: the scale direction."
|
|
syntax: "public ScaleDirection direction()"
|
|
desc: "Get the direction property: the scale direction. Whether the scaling action increases or decreases the number of instances."
|
|
returns:
|
|
description: "the direction value."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleDirection?alt=com.azure.resourcemanager.monitor.models.ScaleDirection&text=ScaleDirection\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.fromJson(com.azure.json.JsonReader)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.fromJson(JsonReader jsonReader)"
|
|
name: "fromJson(JsonReader jsonReader)"
|
|
nameWithType: "ScaleAction.fromJson(JsonReader jsonReader)"
|
|
summary: "Reads an instance of Scale<wbr>Action from the Json<wbr>Reader."
|
|
modifiers:
|
|
- "static"
|
|
parameters:
|
|
- description: "The JsonReader being read."
|
|
name: "jsonReader"
|
|
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public static ScaleAction fromJson(JsonReader jsonReader)"
|
|
exceptions:
|
|
- description: "If the deserialized JSON object was missing any required properties."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
|
|
desc: "Reads an instance of ScaleAction from the JsonReader."
|
|
returns:
|
|
description: "An instance of ScaleAction if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.toJson(com.azure.json.JsonWriter)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.toJson(JsonWriter jsonWriter)"
|
|
name: "toJson(JsonWriter jsonWriter)"
|
|
nameWithType: "ScaleAction.toJson(JsonWriter jsonWriter)"
|
|
parameters:
|
|
- name: "jsonWriter"
|
|
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
|
|
exceptions:
|
|
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
|
|
returns:
|
|
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.type()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.type()"
|
|
name: "type()"
|
|
nameWithType: "ScaleAction.type()"
|
|
summary: "Get the type property: the type of action that should occur when the scale rule fires."
|
|
syntax: "public ScaleType type()"
|
|
desc: "Get the type property: the type of action that should occur when the scale rule fires."
|
|
returns:
|
|
description: "the type value."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleType?alt=com.azure.resourcemanager.monitor.models.ScaleType&text=ScaleType\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.validate()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.validate()"
|
|
name: "validate()"
|
|
nameWithType: "ScaleAction.validate()"
|
|
summary: "Validates the instance."
|
|
syntax: "public void validate()"
|
|
desc: "Validates the instance."
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.value()"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.value()"
|
|
name: "value()"
|
|
nameWithType: "ScaleAction.value()"
|
|
summary: "Get the value property: the number of instances that are involved in the scaling action."
|
|
syntax: "public String value()"
|
|
desc: "Get the value property: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1."
|
|
returns:
|
|
description: "the value value."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.withCooldown(java.time.Duration)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.withCooldown(Duration cooldown)"
|
|
name: "withCooldown(Duration cooldown)"
|
|
nameWithType: "ScaleAction.withCooldown(Duration cooldown)"
|
|
summary: "Set the cooldown property: the amount of time to wait since the last scaling action before this action occurs."
|
|
parameters:
|
|
- description: "the cooldown value to set."
|
|
name: "cooldown"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
|
|
syntax: "public ScaleAction withCooldown(Duration cooldown)"
|
|
desc: "Set the cooldown property: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format."
|
|
returns:
|
|
description: "the ScaleAction object itself."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.withDirection(com.azure.resourcemanager.monitor.models.ScaleDirection)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.withDirection(ScaleDirection direction)"
|
|
name: "withDirection(ScaleDirection direction)"
|
|
nameWithType: "ScaleAction.withDirection(ScaleDirection direction)"
|
|
summary: "Set the direction property: the scale direction."
|
|
parameters:
|
|
- description: "the direction value to set."
|
|
name: "direction"
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleDirection?alt=com.azure.resourcemanager.monitor.models.ScaleDirection&text=ScaleDirection\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public ScaleAction withDirection(ScaleDirection direction)"
|
|
desc: "Set the direction property: the scale direction. Whether the scaling action increases or decreases the number of instances."
|
|
returns:
|
|
description: "the ScaleAction object itself."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.withType(com.azure.resourcemanager.monitor.models.ScaleType)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.withType(ScaleType type)"
|
|
name: "withType(ScaleType type)"
|
|
nameWithType: "ScaleAction.withType(ScaleType type)"
|
|
summary: "Set the type property: the type of action that should occur when the scale rule fires."
|
|
parameters:
|
|
- description: "the type value to set."
|
|
name: "type"
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleType?alt=com.azure.resourcemanager.monitor.models.ScaleType&text=ScaleType\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public ScaleAction withType(ScaleType type)"
|
|
desc: "Set the type property: the type of action that should occur when the scale rule fires."
|
|
returns:
|
|
description: "the ScaleAction object itself."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.resourcemanager.monitor.models.ScaleAction.withValue(java.lang.String)"
|
|
fullName: "com.azure.resourcemanager.monitor.models.ScaleAction.withValue(String value)"
|
|
name: "withValue(String value)"
|
|
nameWithType: "ScaleAction.withValue(String value)"
|
|
summary: "Set the value property: the number of instances that are involved in the scaling action."
|
|
parameters:
|
|
- description: "the value value to set."
|
|
name: "value"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public ScaleAction withValue(String value)"
|
|
desc: "Set the value property: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1."
|
|
returns:
|
|
description: "the ScaleAction object itself."
|
|
type: "<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "class"
|
|
desc: "The parameters for the scaling action."
|
|
implements:
|
|
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.resourcemanager.monitor.models.ScaleAction?alt=com.azure.resourcemanager.monitor.models.ScaleAction&text=ScaleAction\" data-throw-if-not-resolved=\"False\" />>"
|
|
metadata: {}
|
|
package: "com.azure.resourcemanager.monitor.models"
|
|
artifact: com.azure.resourcemanager:azure-resourcemanager-monitor:2.44.0
|