LoadTest Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. LoadTest
- com.
Implements
public final class LoadTest
implements JsonSerializable<LoadTest>
Load test model.
Constructor Summary
| Constructor | Description |
|---|---|
| LoadTest() |
Creates an instance of Load |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Load |
fromJson(JsonReader jsonReader)
Reads an instance of Load |
|
Auto |
getAutoStopCriteria()
Get the auto |
| String |
getBaselineTestRunId()
Get the baseline |
|
Test |
getCertificate()
Get the certificate property: Certificates metadata. |
| String |
getCreatedBy()
Get the created |
|
Offset |
getCreatedDateTime()
Get the created |
| String |
getDescription()
Get the description property: The test description. |
| String |
getDisplayName()
Get the display |
| List<String> |
getEngineBuiltInIdentityIds()
Get the engine |
|
Load |
getEngineBuiltInIdentityType()
Get the engine |
| Map<String,String> |
getEnvironmentVariables()
Get the environment |
| Double |
getEstimatedVirtualUserHours()
Get the estimated |
|
Test |
getInputArtifacts()
Get the input |
| String |
getKeyvaultReferenceIdentityId()
Get the keyvault |
| String |
getKeyvaultReferenceIdentityType()
Get the keyvault |
|
Load |
getKind()
Get the kind property: Kind of test. |
| String |
getLastModifiedBy()
Get the last |
|
Offset |
getLastModifiedDateTime()
Get the last |
|
Load |
getLoadTestConfiguration()
Get the load |
| String |
getMetricsReferenceIdentityId()
Get the metrics |
|
Load |
getMetricsReferenceIdentityType()
Get the metrics |
|
Pass |
getPassFailCriteria()
Get the pass |
|
Test |
getPreferences()
Get the preferences property: Preferences for the test. |
|
Map<String,Test |
getSecrets()
Get the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. |
| String |
getSubnetId()
Get the subnet |
| String |
getTestId()
Get the test |
| Boolean |
isPublicIpDisabled()
Get the public |
|
Load |
setAutoStopCriteria(AutoStopCriteria autoStopCriteria)
Set the auto |
|
Load |
setBaselineTestRunId(String baselineTestRunId)
Set the baseline |
|
Load |
setCertificate(TestCertificate certificate)
Set the certificate property: Certificates metadata. |
|
Load |
setDescription(String description)
Set the description property: The test description. |
|
Load |
setDisplayName(String displayName)
Set the display |
|
Load |
setEngineBuiltInIdentityIds(List<String> engineBuiltInIdentityIds)
Set the engine |
|
Load |
setEngineBuiltInIdentityType(LoadTestingManagedIdentityType engineBuiltInIdentityType)
Set the engine |
|
Load |
setEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
|
Load |
setKeyvaultReferenceIdentityId(String keyvaultReferenceIdentityId)
Set the keyvault |
|
Load |
setKeyvaultReferenceIdentityType(String keyvaultReferenceIdentityType)
Set the keyvault |
|
Load |
setKind(LoadTestKind kind)
Set the kind property: Kind of test. |
|
Load |
setLoadTestConfiguration(LoadTestConfiguration loadTestConfiguration)
Set the load |
|
Load |
setMetricsReferenceIdentityId(String metricsReferenceIdentityId)
Set the metrics |
|
Load |
setMetricsReferenceIdentityType(LoadTestingManagedIdentityType metricsReferenceIdentityType)
Set the metrics |
|
Load |
setPassFailCriteria(PassFailCriteria passFailCriteria)
Set the pass |
|
Load |
setPreferences(TestPreferences preferences)
Set the preferences property: Preferences for the test. |
|
Load |
setPublicIpDisabled(Boolean publicIpDisabled)
Set the public |
|
Load |
setSecrets(Map<String,TestSecret> secrets)
Set the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. |
|
Load |
setSubnetId(String subnetId)
Set the subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
LoadTest
public LoadTest()
Creates an instance of LoadTest class.
Method Details
fromJson
public static LoadTest fromJson(JsonReader jsonReader)
Reads an instance of LoadTest from the JsonReader.
Parameters:
Returns:
Throws:
getAutoStopCriteria
public AutoStopCriteria getAutoStopCriteria()
Get the autoStopCriteria property: Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.
Returns:
getBaselineTestRunId
public String getBaselineTestRunId()
Get the baselineTestRunId property: Id of the test run to be marked as baseline to view trends of client-side metrics from recent test runs.
Returns:
getCertificate
public TestCertificate getCertificate()
Get the certificate property: Certificates metadata.
Returns:
getCreatedBy
public String getCreatedBy()
Get the createdBy property: The user that created.
Returns:
getCreatedDateTime
public OffsetDateTime getCreatedDateTime()
Get the createdDateTime property: The creation datetime(RFC 3339 literal format).
Returns:
getDescription
public String getDescription()
Get the description property: The test description.
Returns:
getDisplayName
public String getDisplayName()
Get the displayName property: Display name of a test.
Returns:
getEngineBuiltInIdentityIds
public List<String> getEngineBuiltInIdentityIds()
Get the engineBuiltInIdentityIds property: Resource Ids of the managed identity built in to load test engines. Required if engineBuiltInIdentityType is UserAssigned.
Returns:
getEngineBuiltInIdentityType
public LoadTestingManagedIdentityType getEngineBuiltInIdentityType()
Get the engineBuiltInIdentityType property: Type of the managed identity built in load test engines.
Returns:
getEnvironmentVariables
public Map<String,String> getEnvironmentVariables()
Get the environmentVariables property: Environment variables which are defined as a set of <name,value> pairs.
Returns:
getEstimatedVirtualUserHours
public Double getEstimatedVirtualUserHours()
Get the estimatedVirtualUserHours property: Estimated virtual user hours for the test.
Returns:
getInputArtifacts
public TestInputArtifacts getInputArtifacts()
Get the inputArtifacts property: The input artifacts for the test.
Returns:
getKeyvaultReferenceIdentityId
public String getKeyvaultReferenceIdentityId()
Get the keyvaultReferenceIdentityId property: Resource Id of the managed identity referencing the Key vault.
Returns:
getKeyvaultReferenceIdentityType
public String getKeyvaultReferenceIdentityType()
Get the keyvaultReferenceIdentityType property: Type of the managed identity referencing the Key vault.
Returns:
getKind
public LoadTestKind getKind()
Get the kind property: Kind of test.
Returns:
getLastModifiedBy
public String getLastModifiedBy()
Get the lastModifiedBy property: The user that last modified.
Returns:
getLastModifiedDateTime
public OffsetDateTime getLastModifiedDateTime()
Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).
Returns:
getLoadTestConfiguration
public LoadTestConfiguration getLoadTestConfiguration()
Get the loadTestConfiguration property: The load test configuration.
Returns:
getMetricsReferenceIdentityId
public String getMetricsReferenceIdentityId()
Get the metricsReferenceIdentityId property: Resource Id of the managed identity referencing the metrics.
Returns:
getMetricsReferenceIdentityType
public LoadTestingManagedIdentityType getMetricsReferenceIdentityType()
Get the metricsReferenceIdentityType property: Type of the managed identity referencing the metrics.
Returns:
getPassFailCriteria
public PassFailCriteria getPassFailCriteria()
Get the passFailCriteria property: Pass fail criteria for a test.
Returns:
getPreferences
public TestPreferences getPreferences()
Get the preferences property: Preferences for the test.
Returns:
getSecrets
public Map<String,TestSecret> getSecrets()
Get the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE.
Returns:
getSubnetId
public String getSubnetId()
Get the subnetId property: Subnet ID on which the load test instances should run.
Returns:
getTestId
public String getTestId()
Get the testId property: Unique test identifier for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
Returns:
isPublicIpDisabled
public Boolean isPublicIpDisabled()
Get the publicIpDisabled property: Inject load test engines without deploying public IP for outbound access.
Returns:
setAutoStopCriteria
public LoadTest setAutoStopCriteria(AutoStopCriteria autoStopCriteria)
Set the autoStopCriteria property: Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.
Parameters:
Returns:
setBaselineTestRunId
public LoadTest setBaselineTestRunId(String baselineTestRunId)
Set the baselineTestRunId property: Id of the test run to be marked as baseline to view trends of client-side metrics from recent test runs.
Parameters:
Returns:
setCertificate
public LoadTest setCertificate(TestCertificate certificate)
Set the certificate property: Certificates metadata.
Parameters:
Returns:
setDescription
public LoadTest setDescription(String description)
Set the description property: The test description.
Parameters:
Returns:
setDisplayName
public LoadTest setDisplayName(String displayName)
Set the displayName property: Display name of a test.
Parameters:
Returns:
setEngineBuiltInIdentityIds
public LoadTest setEngineBuiltInIdentityIds(List<String> engineBuiltInIdentityIds)
Set the engineBuiltInIdentityIds property: Resource Ids of the managed identity built in to load test engines. Required if engineBuiltInIdentityType is UserAssigned.
Parameters:
Returns:
setEngineBuiltInIdentityType
public LoadTest setEngineBuiltInIdentityType(LoadTestingManagedIdentityType engineBuiltInIdentityType)
Set the engineBuiltInIdentityType property: Type of the managed identity built in load test engines.
Parameters:
Returns:
setEnvironmentVariables
public LoadTest setEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables which are defined as a set of <name,value> pairs.
Parameters:
Returns:
setKeyvaultReferenceIdentityId
public LoadTest setKeyvaultReferenceIdentityId(String keyvaultReferenceIdentityId)
Set the keyvaultReferenceIdentityId property: Resource Id of the managed identity referencing the Key vault.
Parameters:
Returns:
setKeyvaultReferenceIdentityType
public LoadTest setKeyvaultReferenceIdentityType(String keyvaultReferenceIdentityType)
Set the keyvaultReferenceIdentityType property: Type of the managed identity referencing the Key vault.
Parameters:
Returns:
setKind
public LoadTest setKind(LoadTestKind kind)
Set the kind property: Kind of test.
Parameters:
Returns:
setLoadTestConfiguration
public LoadTest setLoadTestConfiguration(LoadTestConfiguration loadTestConfiguration)
Set the loadTestConfiguration property: The load test configuration.
Parameters:
Returns:
setMetricsReferenceIdentityId
public LoadTest setMetricsReferenceIdentityId(String metricsReferenceIdentityId)
Set the metricsReferenceIdentityId property: Resource Id of the managed identity referencing the metrics.
Parameters:
Returns:
setMetricsReferenceIdentityType
public LoadTest setMetricsReferenceIdentityType(LoadTestingManagedIdentityType metricsReferenceIdentityType)
Set the metricsReferenceIdentityType property: Type of the managed identity referencing the metrics.
Parameters:
Returns:
setPassFailCriteria
public LoadTest setPassFailCriteria(PassFailCriteria passFailCriteria)
Set the passFailCriteria property: Pass fail criteria for a test.
Parameters:
Returns:
setPreferences
public LoadTest setPreferences(TestPreferences preferences)
Set the preferences property: Preferences for the test.
Parameters:
Returns:
setPublicIpDisabled
public LoadTest setPublicIpDisabled(Boolean publicIpDisabled)
Set the publicIpDisabled property: Inject load test engines without deploying public IP for outbound access.
Parameters:
Returns:
setSecrets
public LoadTest setSecrets(Map<String,TestSecret> secrets)
Set the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE.
Parameters:
Returns:
setSubnetId
public LoadTest setSubnetId(String subnetId)
Set the subnetId property: Subnet ID on which the load test instances should run.
Parameters:
Returns: