TestProfileRun Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.TestProfileRun

Implements

public final class TestProfileRun
implements JsonSerializable<TestProfileRun>

Test Profile Run model. The Test Profile Run Model. Test Profile Run resource enables you to instantiate an already created test profile and run load tests to get recommendations on the optimal configuration for the target resource.

Constructor Summary

Constructor Description
TestProfileRun()

Creates an instance of TestProfileRun class.

Method Summary

Modifier and Type Method and Description
static TestProfileRun fromJson(JsonReader jsonReader)

Reads an instance of TestProfileRun from the JsonReader.

String getCreatedBy()

Get the createdBy property: The user that created.

OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

String getDescription()

Get the description property: The test profile run description.

String getDisplayName()

Get the displayName property: Display name for the test profile run.

Long getDurationInSeconds()

Get the durationInSeconds property: Test profile run duration in seconds.

OffsetDateTime getEndDateTime()

Get the endDateTime property: The test profile run end DateTime(RFC 3339 literal format).

List<ErrorDetails> getErrorDetails()

Get the errorDetails property: Error details if there is any failure in test profile run.

String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

List<TestProfileRunRecommendation> getRecommendations()

Get the recommendations property: Recommendations provided based on a successful test profile run.

OffsetDateTime getStartDateTime()

Get the startDateTime property: The test profile run start DateTime(RFC 3339 literal format).

TestProfileRunStatus getStatus()

Get the status property: The test profile run status.

TargetResourceConfigurations getTargetResourceConfigurations()

Get the targetResourceConfigurations property: Configurations of the target resource on which the test profile ran.

String getTargetResourceId()

Get the targetResourceId property: Target resource ID on which the test profile run is created.

String getTestProfileId()

Get the testProfileId property: Associated test profile ID for the test profile run.

String getTestProfileRunId()

Get the testProfileRunId property: Unique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

Map<String,TestRunDetail> getTestRunDetails()

Get the testRunDetails property: Details of the test runs ran as part of the test profile run.

TestProfileRun setDescription(String description)

Set the description property: The test profile run description.

TestProfileRun setDisplayName(String displayName)

Set the displayName property: Display name for the test profile run.

TestProfileRun setTestProfileId(String testProfileId)

Set the testProfileId property: Associated test profile ID for the test profile run.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestProfileRun

public TestProfileRun()

Creates an instance of TestProfileRun class.

Method Details

fromJson

public static TestProfileRun fromJson(JsonReader jsonReader)

Reads an instance of TestProfileRun from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TestProfileRun if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCreatedBy

public String getCreatedBy()

Get the createdBy property: The user that created.

Returns:

the createdBy value.

getCreatedDateTime

public OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

Returns:

the createdDateTime value.

getDescription

public String getDescription()

Get the description property: The test profile run description.

Returns:

the description value.

getDisplayName

public String getDisplayName()

Get the displayName property: Display name for the test profile run.

Returns:

the displayName value.

getDurationInSeconds

public Long getDurationInSeconds()

Get the durationInSeconds property: Test profile run duration in seconds.

Returns:

the durationInSeconds value.

getEndDateTime

public OffsetDateTime getEndDateTime()

Get the endDateTime property: The test profile run end DateTime(RFC 3339 literal format).

Returns:

the endDateTime value.

getErrorDetails

public List<ErrorDetails> getErrorDetails()

Get the errorDetails property: Error details if there is any failure in test profile run. These errors are specific to the Test Profile Run.

Returns:

the errorDetails value.

getLastModifiedBy

public String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

Returns:

the lastModifiedBy value.

getLastModifiedDateTime

public OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

Returns:

the lastModifiedDateTime value.

getRecommendations

public List<TestProfileRunRecommendation> getRecommendations()

Get the recommendations property: Recommendations provided based on a successful test profile run.

Returns:

the recommendations value.

getStartDateTime

public OffsetDateTime getStartDateTime()

Get the startDateTime property: The test profile run start DateTime(RFC 3339 literal format).

Returns:

the startDateTime value.

getStatus

public TestProfileRunStatus getStatus()

Get the status property: The test profile run status.

Returns:

the status value.

getTargetResourceConfigurations

public TargetResourceConfigurations getTargetResourceConfigurations()

Get the targetResourceConfigurations property: Configurations of the target resource on which the test profile ran.

Returns:

the targetResourceConfigurations value.

getTargetResourceId

public String getTargetResourceId()

Get the targetResourceId property: Target resource ID on which the test profile run is created.

Returns:

the targetResourceId value.

getTestProfileId

public String getTestProfileId()

Get the testProfileId property: Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.

Returns:

the testProfileId value.

getTestProfileRunId

public String getTestProfileRunId()

Get the testProfileRunId property: Unique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

Returns:

the testProfileRunId value.

getTestRunDetails

public Map<String,TestRunDetail> getTestRunDetails()

Get the testRunDetails property: Details of the test runs ran as part of the test profile run. Key is the testRunId of the corresponding testRun.

Returns:

the testRunDetails value.

setDescription

public TestProfileRun setDescription(String description)

Set the description property: The test profile run description.

Parameters:

description - the description value to set.

Returns:

the TestProfileRun object itself.

setDisplayName

public TestProfileRun setDisplayName(String displayName)

Set the displayName property: Display name for the test profile run.

Parameters:

displayName - the displayName value to set.

Returns:

the TestProfileRun object itself.

setTestProfileId

public TestProfileRun setTestProfileId(String testProfileId)

Set the testProfileId property: Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.

Parameters:

testProfileId - the testProfileId value to set.

Returns:

the TestProfileRun object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to