WorkloadGroupProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. WorkloadGroupProperties
- com.
Implements
public final class WorkloadGroupProperties
implements JsonSerializable<WorkloadGroupProperties>
Workload group definition. For more information look at sys.workload_management_workload_groups (DMV).
Constructor Summary
| Constructor | Description |
|---|---|
| WorkloadGroupProperties() |
Creates an instance of Workload |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Workload |
fromJson(JsonReader jsonReader)
Reads an instance of Workload |
| String |
importance()
Get the importance property: The workload group importance level. |
| int |
maxResourcePercent()
Get the max |
| Double |
maxResourcePercentPerRequest()
Get the max |
| int |
minResourcePercent()
Get the min |
| double |
minResourcePercentPerRequest()
Get the min |
| Integer |
queryExecutionTimeout()
Get the query |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Workload |
withImportance(String importance)
Set the importance property: The workload group importance level. |
|
Workload |
withMaxResourcePercent(int maxResourcePercent)
Set the max |
|
Workload |
withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)
Set the max |
|
Workload |
withMinResourcePercent(int minResourcePercent)
Set the min |
|
Workload |
withMinResourcePercentPerRequest(double minResourcePercentPerRequest)
Set the min |
|
Workload |
withQueryExecutionTimeout(Integer queryExecutionTimeout)
Set the query |
Methods inherited from java.lang.Object
Constructor Details
WorkloadGroupProperties
public WorkloadGroupProperties()
Creates an instance of WorkloadGroupProperties class.
Method Details
fromJson
public static WorkloadGroupProperties fromJson(JsonReader jsonReader)
Reads an instance of WorkloadGroupProperties from the JsonReader.
Parameters:
Returns:
Throws:
importance
public String importance()
Get the importance property: The workload group importance level.
Returns:
maxResourcePercent
public int maxResourcePercent()
Get the maxResourcePercent property: The workload group cap percentage resource.
Returns:
maxResourcePercentPerRequest
public Double maxResourcePercentPerRequest()
Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.
Returns:
minResourcePercent
public int minResourcePercent()
Get the minResourcePercent property: The workload group minimum percentage resource.
Returns:
minResourcePercentPerRequest
public double minResourcePercentPerRequest()
Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.
Returns:
queryExecutionTimeout
public Integer queryExecutionTimeout()
Get the queryExecutionTimeout property: The workload group query execution timeout.
Returns:
toJson
validate
public void validate()
Validates the instance.
withImportance
public WorkloadGroupProperties withImportance(String importance)
Set the importance property: The workload group importance level.
Parameters:
Returns:
withMaxResourcePercent
public WorkloadGroupProperties withMaxResourcePercent(int maxResourcePercent)
Set the maxResourcePercent property: The workload group cap percentage resource.
Parameters:
Returns:
withMaxResourcePercentPerRequest
public WorkloadGroupProperties withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)
Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.
Parameters:
Returns:
withMinResourcePercent
public WorkloadGroupProperties withMinResourcePercent(int minResourcePercent)
Set the minResourcePercent property: The workload group minimum percentage resource.
Parameters:
Returns:
withMinResourcePercentPerRequest
public WorkloadGroupProperties withMinResourcePercentPerRequest(double minResourcePercentPerRequest)
Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.
Parameters:
Returns:
withQueryExecutionTimeout
public WorkloadGroupProperties withQueryExecutionTimeout(Integer queryExecutionTimeout)
Set the queryExecutionTimeout property: The workload group query execution timeout.
Parameters:
Returns: