Class RecommendedActionImpactRecord
java.lang.Object
com.azure.resourcemanager.sql.models.RecommendedActionImpactRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RecommendedActionImpactRecord>
public final class RecommendedActionImpactRecord
extends Object
implements com.azure.json.JsonSerializable<RecommendedActionImpactRecord>
Contains information of estimated or observed impact on various metrics for an Azure SQL Database, Server or Elastic
Pool Recommended Action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RecommendedActionImpactRecord class. -
Method Summary
Modifier and TypeMethodDescriptionGet the absoluteValue property: Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected.Get the changeValueAbsolute property: Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes.Get the changeValueRelative property: Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage.Get the dimensionName property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecommendedActionImpactRecord from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecommendedActionImpactRecord
public RecommendedActionImpactRecord()Creates an instance of RecommendedActionImpactRecord class.
-
-
Method Details
-
dimensionName
Get the dimensionName property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.- Returns:
- the dimensionName value.
-
unit
Get the unit property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.- Returns:
- the unit value.
-
absoluteValue
Get the absoluteValue property: Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected.- Returns:
- the absoluteValue value.
-
changeValueAbsolute
Get the changeValueAbsolute property: Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes.- Returns:
- the changeValueAbsolute value.
-
changeValueRelative
Get the changeValueRelative property: Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage.- Returns:
- the changeValueRelative value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RecommendedActionImpactRecord>- Throws:
IOException
-
fromJson
public static RecommendedActionImpactRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RecommendedActionImpactRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RecommendedActionImpactRecord if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RecommendedActionImpactRecord.
-