RegionalConfiguration Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. RegionalConfiguration
- com.
Implements
public final class RegionalConfiguration
implements JsonSerializable<RegionalConfiguration>
Region distribution configuration for the load test.
Constructor Summary
| Constructor | Description |
|---|---|
| RegionalConfiguration() |
Creates an instance of Regional |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Regional |
fromJson(JsonReader jsonReader)
Reads an instance of Regional |
| int |
getEngineInstances()
Get the engine |
| String |
getRegion()
Get the region property: Azure region name. |
|
Regional |
setEngineInstances(int engineInstances)
Set the engine |
|
Regional |
setRegion(String region)
Set the region property: Azure region name. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
RegionalConfiguration
public RegionalConfiguration()
Creates an instance of RegionalConfiguration class.
Method Details
fromJson
public static RegionalConfiguration fromJson(JsonReader jsonReader)
Reads an instance of RegionalConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getEngineInstances
public int getEngineInstances()
Get the engineInstances property: The number of engine instances to execute load test in specified region. Supported values are in range of 1-400.
Returns:
getRegion
public String getRegion()
Get the region property: Azure region name. The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command.
Returns:
setEngineInstances
public RegionalConfiguration setEngineInstances(int engineInstances)
Set the engineInstances property: The number of engine instances to execute load test in specified region. Supported values are in range of 1-400.
Required when create the resource.
Parameters:
Returns:
setRegion
public RegionalConfiguration setRegion(String region)
Set the region property: Azure region name. The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command.
Required when create the resource.
Parameters:
Returns: