diff --git a/sdk/loadtesting/azure-developer-loadtesting/package.json b/sdk/loadtesting/azure-developer-loadtesting/package.json new file mode 100644 index 000000000000..4144ded7a1a0 --- /dev/null +++ b/sdk/loadtesting/azure-developer-loadtesting/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@azure-tools/typespec-java": "^0.38.3" + } +} diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationAsyncClient.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationAsyncClient.java index c39162e6cbb5..e6835479d50b 100644 --- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationAsyncClient.java +++ b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationAsyncClient.java @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. + package com.azure.developer.loadtesting; import com.azure.core.annotation.Generated; @@ -18,17 +19,20 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.developer.loadtesting.implementation.JsonMergePatchHelper; import com.azure.developer.loadtesting.implementation.LoadTestAdministrationClientImpl; +import com.azure.developer.loadtesting.implementation.models.CloneTestRequest1; import com.azure.developer.loadtesting.models.LoadTest; import com.azure.developer.loadtesting.models.LoadTestingFileType; +import com.azure.developer.loadtesting.models.NotificationRule; +import com.azure.developer.loadtesting.models.OperationStatus; import com.azure.developer.loadtesting.models.TestAppComponents; import com.azure.developer.loadtesting.models.TestFileInfo; import com.azure.developer.loadtesting.models.TestProfile; import com.azure.developer.loadtesting.models.TestServerMetricsConfiguration; -import java.time.Duration; +import com.azure.developer.loadtesting.models.Trigger; +import com.azure.developer.loadtesting.models.TriggerState; import java.time.OffsetDateTime; import java.util.List; import java.util.Objects; @@ -41,164 +45,17 @@ */ @ServiceClient(builder = LoadTestAdministrationClientBuilder.class, isAsync = true) public final class LoadTestAdministrationAsyncClient { - - private static final ClientLogger LOGGER = new ClientLogger(LoadTestAdministrationAsyncClient.class); - @Generated private final LoadTestAdministrationClientImpl serviceClient; /** - * Configure server metrics for a test. - *
Request Body Schema
- * - *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * Response Body Schema
- * - *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test server metrics configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoResponse Body Schema
+ * Initializes an instance of LoadTestAdministrationAsyncClient class. * - *
- * {@code
- * {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * }
- *
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return all test files as paginated response with {@link PagedFlux}.
+ * @param serviceClient the service client implementation.
*/
@Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFluxRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body App Component model.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return test app components along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public MonoResponse Body Schema
+ * Configure server metrics for a test. + *Request Body Schema
* *
* {@code
* {
- * passFailCriteria (Optional): {
- * passFailMetrics (Optional): {
- * String (Required): {
- * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
- * condition: String (Optional)
- * requestName: String (Optional)
- * value: Double (Optional)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
- * }
- * passFailServerMetrics (Optional): {
- * String (Required): {
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * metricName: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * condition: String (Optional, Required on create)
- * value: double (Optional, Required on create)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * autoStopCriteria (Optional): {
- * autoStopDisabled: Boolean (Optional)
- * errorRate: Double (Optional)
- * errorRateTimeWindowInSeconds: Long (Optional)
- * }
- * secrets (Optional): {
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
* String (Required): {
- * value: String (Optional)
- * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
+ * }
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test server metrics configuration along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return associated app component (collection of azure resources) for the given test along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
+ * }
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test server metrics configuration along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * passFailCriteria (Optional): {
+ * passFailMetrics (Optional): {
+ * String (Required): {
+ * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
+ * condition: String (Optional)
+ * requestName: String (Optional)
+ * value: Double (Optional)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * }
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
+ * }
+ * secrets (Optional): {
+ * String (Required): {
+ * value: String (Optional)
+ * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
* }
* }
* certificate (Optional): {
@@ -535,7 +613,7 @@ public Mono> deleteTestWithResponse(String testId, RequestOptions
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -562,6 +640,10 @@ public Mono> deleteTestWithResponse(String testId, RequestOptions
* engineBuiltInIdentityIds (Optional): [
* String (Optional)
* ]
+ * estimatedVirtualUserHours: Double (Optional)
+ * preferences (Optional): {
+ * enableAIErrorInsights: Boolean (Optional)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -569,7 +651,7 @@ public Mono> deleteTestWithResponse(String testId, RequestOptions
* }
* }
*
- *
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -585,6 +667,73 @@ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param fileName Name of the file.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return all the files that are associated with a test along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return all test files as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux- * Query Parameters - * + * Upload input file for a given test Id. File size can't be more than 50 MB. + * Existing file with same name for the given test will be overwritten. File + * should be provided in the request body as application/octet-stream. + *
Query Parameters
*| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| fileType | - *String | - *No | - *File type. Allowed values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS". | - *
| Name | Type | Required | Description |
| fileType | String | No | File type. Allowed values: "JMX_FILE", "USER_PROPERTIES", + * "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", + * "TEST_PLAN_RECOMMENDATIONS". |
- * Request Body Schema - * + *
Request Body Schema
+ * *
* {@code
* BinaryData
* }
*
- *
- * - * Response Body Schema - * + * + *
Response Body Schema
+ * *
* {@code
* {
+ * fileName: String (Required)
* url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
* @param fileName Unique name for test file with file extension like : App.jmx.
* @param body The file content as application/octet-stream.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -789,8 +929,9 @@ public PagedFluxResponse Body Schema
+ * Delete file by the file name for a test. * - *
- * {@code
- * {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * }
- *
- *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @param fileName Name of the file.
@@ -822,22 +949,20 @@ MonoRequest Body Schema
* *
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -886,18 +1006,14 @@ public Mono> deleteTestFileWithResponse(String testId, String fil
*
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -905,43 +1021,61 @@ public Mono> deleteTestFileWithResponse(String testId, String fil
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param body The resource instance.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test app components along with {@link Response} on successful completion of {@link Mono}.
+ * @return test Profile Model along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateAppComponentsWithResponse(String testId, BinaryData body,
+ public Mono> createOrUpdateTestProfileWithResponse(String testProfileId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateAppComponentsWithResponseAsync(testId, body, requestOptions);
+ return this.serviceClient.createOrUpdateTestProfileWithResponseAsync(testProfileId, body, requestOptions);
}
/**
- * Get associated app component (collection of azure resources) for the given test.
+ * Delete a test profile.
+ *
+ * Delete a test profile by its test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteTestProfileWithResponseAsync(testProfileId, requestOptions);
+ }
+
+ /**
+ * Get load test profile details.
+ *
+ * Get load test profile details by test profile Id.
* Response Body Schema
*
*
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -949,42 +1083,57 @@ public Mono> createOrUpdateAppComponentsWithResponse(String
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated app component (collection of azure resources) for the given test along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return load test profile details.
+ *
+ * Get load test profile details by test profile Id along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getAppComponentsWithResponse(String testId, RequestOptions requestOptions) {
- return this.serviceClient.getAppComponentsWithResponseAsync(testId, requestOptions);
+ public Mono> getTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
+ return this.serviceClient.getTestProfileWithResponseAsync(testProfileId, requestOptions);
}
/**
- * List server metrics configuration for the given test.
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Maximum number of results to include in a single
+ * response.
+ * lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
+ * of the last updated time range to filter test profiles.
+ * lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
+ * the last updated time range to filter test profiles.
+ * testProfileIds List<String> No Comma separated list of IDs of the test
+ * profiles to filter. In the form of "," separated string.
+ * testIds List<String> No Comma separated list IDs of the tests which should
+ * be associated with the test profiles to fetch. In the form of "," separated string.
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
* Response Body Schema
*
*
* {@code
* {
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -993,48 +1142,34 @@ public Mono> getAppComponentsWithResponse(String testId, Re
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test server metrics configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServerMetricsConfigWithResponse(String testId, RequestOptions requestOptions) {
- return this.serviceClient.getServerMetricsConfigWithResponseAsync(testId, requestOptions);
- }
-
- /**
- * Initializes an instance of LoadTestAdministrationAsyncClient class.
- *
- * @param serviceClient the service client implementation.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
*/
@Generated
- LoadTestAdministrationAsyncClient(LoadTestAdministrationClientImpl serviceClient) {
- this.serviceClient = serviceClient;
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTestProfiles(RequestOptions requestOptions) {
+ return this.serviceClient.listTestProfilesAsync(requestOptions);
}
/**
- * Create a new test profile or update an existing test profile.
- *
- * Create a new test profile or update an existing test profile by providing the test profile Id.
+ * Create or update operation template.
* Request Body Schema
*
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1049,13 +1184,13 @@ public Mono> getServerMetricsConfigWithResponse(String test
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1064,31 +1199,27 @@ public Mono> getServerMetricsConfigWithResponse(String test
* }
* }
*
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param body The resource instance.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test Profile Model along with {@link Response} on successful completion of {@link Mono}.
+ * @return trigger model along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateTestProfileWithResponse(String testProfileId, BinaryData body,
+ public Mono> createOrUpdateTriggerWithResponse(String triggerId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateTestProfileWithResponseAsync(testProfileId, body, requestOptions);
+ return this.serviceClient.createOrUpdateTriggerWithResponseAsync(triggerId, body, requestOptions);
}
/**
- * Delete a test profile.
- *
- * Delete a test profile by its test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource delete operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1098,26 +1229,24 @@ public Mono> createOrUpdateTestProfileWithResponse(String t
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> deleteTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
- return this.serviceClient.deleteTestProfileWithResponseAsync(testProfileId, requestOptions);
+ public Mono> deleteTriggerWithResponse(String triggerId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteTriggerWithResponseAsync(triggerId, requestOptions);
}
/**
- * Get load test profile details.
- *
- * Get load test profile details by test profile Id.
+ * Resource read operation template.
* Response Body Schema
*
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1126,43 +1255,37 @@ public Mono> deleteTestProfileWithResponse(String testProfileId,
* }
* }
*
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return load test profile details.
- *
- * Get load test profile details by test profile Id along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return trigger model along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
- return this.serviceClient.getTestProfileWithResponseAsync(testProfileId, requestOptions);
+ public Mono> getTriggerWithResponse(String triggerId, RequestOptions requestOptions) {
+ return this.serviceClient.getTriggerWithResponseAsync(triggerId, requestOptions);
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
+ * Resource list operation template.
* Query Parameters
*
* Query Parameters
* Name Type Required Description
- * maxpagesize Integer No Maximum number of results to include in a single
- * response.
+ * testIds String No Search based on triggers associated with the provided test
+ * ids.
+ * states String No Filter triggers based on a comma separated list of states.
+ * Allowed values: "Active", "Paused", "Completed", "Disabled".
* lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
- * of the last updated time range to filter test profiles.
+ * of the last updated time range to filter triggers.
* lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
- * the last updated time range to filter test profiles.
- * testProfileIds List<String> No Comma separated list of IDs of the test
- * profiles to filter. In the form of "," separated string.
- * testIds List<String> No Comma separated list IDs of the tests which should
- * be associated with the test profiles to fetch. In the form of "," separated string.
+ * the last updated time range to filter triggers.
+ * maxpagesize Integer No Number of results in response. Default page size is
+ * 50.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
* Response Body Schema
@@ -1170,13 +1293,13 @@ public Mono> getTestProfileWithResponse(String testProfileI
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1185,145 +1308,754 @@ public Mono> getTestProfileWithResponse(String testProfileI
* }
* }
*
- *
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
+ * @return paged collection of Trigger items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestProfiles(RequestOptions requestOptions) {
- return this.serviceClient.listTestProfilesAsync(requestOptions);
+ public PagedFlux listTriggers(RequestOptions requestOptions) {
+ return this.serviceClient.listTriggersAsync(requestOptions);
}
/**
- * Add an app component to a test.
- *
- * Add an app component to a test by providing the resource Id, name and type.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * Create or update operation template.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateNotificationRuleWithResponse(String notificationRuleId,
+ BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.createOrUpdateNotificationRuleWithResponseAsync(notificationRuleId, body,
+ requestOptions);
+ }
+
+ /**
+ * Resource delete operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteNotificationRuleWithResponse(String notificationRuleId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.deleteNotificationRuleWithResponseAsync(notificationRuleId, requestOptions);
+ }
+
+ /**
+ * Resource read operation template.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getNotificationRuleWithResponse(String notificationRuleId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getNotificationRuleWithResponseAsync(notificationRuleId, requestOptions);
+ }
+
+ /**
+ * Resource list operation template.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * testIds String No Search based on notification rules associated with the provided
+ * test ids.
+ * scopes String No Search based on notification rules for the provided
+ * scopes.
+ * lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
+ * of the last updated time range to filter notification rules.
+ * lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
+ * the last updated time range to filter notification rules.
+ * maxpagesize Integer No Number of results in response. Default page size is
+ * 50.
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listNotificationRules(RequestOptions requestOptions) {
+ return this.serviceClient.listNotificationRulesAsync(requestOptions);
+ }
+
+ /**
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCloneTest(String testId, BinaryData cloneTestRequest1,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCloneTestAsync(testId, cloneTestRequest1, requestOptions);
+ }
+
+ /**
+ * Generate load test plan recommendations.
+ *
+ * Generate AI Recommendations to author a load test plan using the uploaded browser recording file.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginGenerateTestPlanRecommendations(String testId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginGenerateTestPlanRecommendationsAsync(testId, requestOptions);
+ }
+
+ /**
+ * Get the status of a long running operation.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param operationId The unique ID of the operation.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of a long running operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getOperationStatusWithResponse(String operationId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getOperationStatusWithResponseAsync(operationId, requestOptions);
+ }
+
+ /**
+ * Create a new test or update an existing test by providing the test Id.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param body The resource instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return load test model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateTest(String testId, LoadTest body) {
+ // Generated convenience method for createOrUpdateTestWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTestWithResponse(testId, bodyInBinaryData, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class));
+ }
+
+ /**
+ * Add an app component to a test.
+ *
+ * Add an app component to a test by providing the resource Id, name and type.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body App Component model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return test app components on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono createOrUpdateAppComponents(String testId, TestAppComponents body) {
- // Generated convenience method for createOrUpdateAppComponentsWithResponse
+ public Mono createOrUpdateAppComponents(String testId, TestAppComponents body) {
+ // Generated convenience method for createOrUpdateAppComponentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateAppComponentsWithResponse(testId, bodyInBinaryData, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestAppComponents.class));
+ }
+
+ /**
+ * Configure server metrics for a test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test server metrics configuration on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateServerMetricsConfig(String testId,
+ TestServerMetricsConfiguration body) {
+ // Generated convenience method for createOrUpdateServerMetricsConfigWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateServerMetricsConfigWithResponse(testId, bodyInBinaryData, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestServerMetricsConfiguration.class));
+ }
+
+ /**
+ * Get associated app component (collection of azure resources) for the given test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return associated app component (collection of azure resources) for the given test on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAppComponents(String testId) {
+ // Generated convenience method for getAppComponentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAppComponentsWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestAppComponents.class));
+ }
+
+ /**
+ * List server metrics configuration for the given test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test server metrics configuration on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getServerMetricsConfig(String testId) {
+ // Generated convenience method for getServerMetricsConfigWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getServerMetricsConfigWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestServerMetricsConfiguration.class));
+ }
+
+ /**
+ * Get load test details by test Id.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return load test details by test Id on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTest(String testId) {
+ // Generated convenience method for getTestWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class));
+ }
+
+ /**
+ * Get all the files that are associated with a test.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param fileName Name of the file.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the files that are associated with a test on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTestFile(String testId, String fileName) {
+ // Generated convenience method for getTestFileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestFileWithResponse(testId, fileName, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
+ }
+
+ /**
+ * Get all test files.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all test files as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTestFiles(String testId) {
+ // Generated convenience method for listTestFiles
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listTestFiles(testId, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Get all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
+ *
+ * @param orderBy Sort on the supported fields in (field asc/desc) format. eg:
+ * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime.
+ * @param search Prefix based, case sensitive search on searchable fields - displayName,
+ * createdBy. For example, to search for a test, with display name is Login Test,
+ * the search parameter can be Login.
+ * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * tests.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter tests.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
+ * response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTests(String orderBy, String search, OffsetDateTime lastModifiedStartTime,
+ OffsetDateTime lastModifiedEndTime) {
+ // Generated convenience method for listTests
+ RequestOptions requestOptions = new RequestOptions();
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (search != null) {
+ requestOptions.addQueryParam("search", search, false);
+ }
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ PagedFlux pagedFluxResponse = listTests(requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Get all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
+ * response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTests() {
+ // Generated convenience method for listTests
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listTests(requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Upload input file for a given test Id. File size can't be more than 50 MB.
+ * Existing file with same name for the given test will be overwritten. File
+ * should be provided in the request body as application/octet-stream.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param fileName Unique name for test file with file extension like : App.jmx.
+ * @param body The file content as application/octet-stream.
+ * @param fileType File type.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test file info on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono uploadTestFile(String testId, String fileName, BinaryData body, LoadTestingFileType fileType) {
+ // Generated convenience method for uploadTestFileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (fileType != null) {
+ requestOptions.addQueryParam("fileType", fileType.toString(), false);
+ }
+ return uploadTestFileWithResponse(testId, fileName, body, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
+ }
+
+ /**
+ * Upload input file for a given test Id. File size can't be more than 50 MB.
+ * Existing file with same name for the given test will be overwritten. File
+ * should be provided in the request body as application/octet-stream.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param fileName Unique name for test file with file extension like : App.jmx.
+ * @param body The file content as application/octet-stream.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test file info on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono uploadTestFile(String testId, String fileName, BinaryData body) {
+ // Generated convenience method for uploadTestFileWithResponse
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateAppComponentsWithResponse(testId, bodyInBinaryData, requestOptions)
- .flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestAppComponents.class));
+ return uploadTestFileWithResponse(testId, fileName, body, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
}
/**
- * Get associated app component (collection of azure resources) for the given test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ * Delete file by the file name for a test.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param fileName Name of the file.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return associated app component (collection of azure resources) for the given test on successful completion of
- * {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getAppComponents(String testId) {
- // Generated convenience method for getAppComponentsWithResponse
+ public Mono deleteTestFile(String testId, String fileName) {
+ // Generated convenience method for deleteTestFileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getAppComponentsWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestAppComponents.class));
+ return deleteTestFileWithResponse(testId, fileName, requestOptions).flatMap(FluxUtil::toMono);
}
/**
- * List server metrics configuration for the given test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ * Delete a test by its test Id.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test server metrics configuration on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getServerMetricsConfig(String testId) {
- // Generated convenience method for getServerMetricsConfigWithResponse
+ public Mono deleteTest(String testId) {
+ // Generated convenience method for deleteTestWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getServerMetricsConfigWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestServerMetricsConfiguration.class));
+ return deleteTestWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono);
}
/**
- * Get load test details by test Id.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * Create a new test profile or update an existing test profile.
+ *
+ * Create a new test profile or update an existing test profile by providing the test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
+ * @param body The resource instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test details by test Id on successful completion of {@link Mono}.
+ * @return test Profile Model on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getTest(String testId) {
- // Generated convenience method for getTestWithResponse
+ public Mono createOrUpdateTestProfile(String testProfileId, TestProfile body) {
+ // Generated convenience method for createOrUpdateTestProfileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class));
+ JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTestProfileWithResponse(testProfileId, bodyInBinaryData, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class));
}
/**
- * Get all the files that are associated with a test.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * Delete a test profile.
+ *
+ * Delete a test profile by its test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
- * @param fileName Name of the file.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the files that are associated with a test on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getTestFile(String testId, String fileName) {
- // Generated convenience method for getTestFileWithResponse
+ public Mono deleteTestProfile(String testProfileId) {
+ // Generated convenience method for deleteTestProfileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestFileWithResponse(testId, fileName, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
+ return deleteTestProfileWithResponse(testProfileId, requestOptions).flatMap(FluxUtil::toMono);
}
/**
- * Get all test files.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * Get load test profile details.
+ *
+ * Get load test profile details by test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -1331,61 +2063,207 @@ public Mono getTestFile(String testId, String fileName) {
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all test files as paginated response with {@link PagedFlux}.
+ * @return load test profile details.
+ *
+ * Get load test profile details by test profile Id on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTestProfile(String testProfileId) {
+ // Generated convenience method for getTestProfileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestProfileWithResponse(testProfileId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class));
+ }
+
+ /**
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ *
+ * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * test profiles.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter test
+ * profiles.
+ * @param testProfileIds Comma separated list of IDs of the test profiles to filter.
+ * @param testIds Comma separated list IDs of the tests which should be associated with the test profiles to fetch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestFiles(String testId) {
- // Generated convenience method for listTestFiles
+ public PagedFlux listTestProfiles(OffsetDateTime lastModifiedStartTime,
+ OffsetDateTime lastModifiedEndTime, List testProfileIds, List testIds) {
+ // Generated convenience method for listTestProfiles
RequestOptions requestOptions = new RequestOptions();
- PagedFlux pagedFluxResponse = listTestFiles(testId, requestOptions);
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ if (testProfileIds != null) {
+ requestOptions.addQueryParam("testProfileIds",
+ testProfileIds.stream()
+ .map(paramItemValue -> Objects.toString(paramItemValue, ""))
+ .collect(Collectors.joining(",")),
+ false);
+ }
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds",
+ testIds.stream()
+ .map(paramItemValue -> Objects.toString(paramItemValue, ""))
+ .collect(Collectors.joining(",")),
+ false);
+ }
+ PagedFlux pagedFluxResponse = listTestProfiles(requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
- return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
- .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class))
+ .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
}
/**
- * Get all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
- *
- * @param orderBy Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime.
- * @param search Prefix based, case sensitive search on searchable fields - displayName,
- * createdBy. For example, to search for a test, with display name is Login Test,
- * the search parameter can be Login.
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTestProfiles() {
+ // Generated convenience method for listTestProfiles
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listTestProfiles(requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Create or update operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param body The resource instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return trigger model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateTrigger(String triggerId, Trigger body) {
+ // Generated convenience method for createOrUpdateTriggerWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getTriggerAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTriggerAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTriggerWithResponse(triggerId, bodyInBinaryData, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(Trigger.class));
+ }
+
+ /**
+ * Resource delete operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteTrigger(String triggerId) {
+ // Generated convenience method for deleteTriggerWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return deleteTriggerWithResponse(triggerId, requestOptions).flatMap(FluxUtil::toMono);
+ }
+
+ /**
+ * Resource read operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return trigger model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTrigger(String triggerId) {
+ // Generated convenience method for getTriggerWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTriggerWithResponse(triggerId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(Trigger.class));
+ }
+
+ /**
+ * Resource list operation template.
+ *
+ * @param testIds Search based on triggers associated with the provided test ids.
+ * @param states Filter triggers based on a comma separated list of states.
* @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
- * tests.
- * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter tests.
+ * triggers.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * triggers.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
- * response with {@link PagedFlux}.
+ * @return paged collection of Trigger items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTests(String orderBy, String search, OffsetDateTime lastModifiedStartTime,
+ public PagedFlux listTriggers(String testIds, TriggerState states, OffsetDateTime lastModifiedStartTime,
OffsetDateTime lastModifiedEndTime) {
- // Generated convenience method for listTests
+ // Generated convenience method for listTriggers
RequestOptions requestOptions = new RequestOptions();
- if (orderBy != null) {
- requestOptions.addQueryParam("orderby", orderBy, false);
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds", testIds, false);
}
- if (search != null) {
- requestOptions.addQueryParam("search", search, false);
+ if (states != null) {
+ requestOptions.addQueryParam("states", states.toString(), false);
}
if (lastModifiedStartTime != null) {
requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
@@ -1393,130 +2271,55 @@ public PagedFlux listTests(String orderBy, String search, OffsetDateTi
if (lastModifiedEndTime != null) {
requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
}
- PagedFlux pagedFluxResponse = listTests(requestOptions);
+ PagedFlux pagedFluxResponse = listTriggers(requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
- return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
- .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class))
+ .map(protocolMethodData -> protocolMethodData.toObject(Trigger.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
}
/**
- * Get all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
- *
+ * Resource list operation template.
+ *
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
- * response with {@link PagedFlux}.
+ * @return paged collection of Trigger items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTests() {
- // Generated convenience method for listTests
+ public PagedFlux listTriggers() {
+ // Generated convenience method for listTriggers
RequestOptions requestOptions = new RequestOptions();
- PagedFlux pagedFluxResponse = listTests(requestOptions);
+ PagedFlux pagedFluxResponse = listTriggers(requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
- return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
- .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class))
+ .map(protocolMethodData -> protocolMethodData.toObject(Trigger.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
}
/**
- * Upload input file for a given test Id. File size can't be more than 50 MB.
- * Existing file with same name for the given test will be overwritten. File
- * should be provided in the request body as application/octet-stream.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test file info on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono uploadTestFile(String testId, String fileName, BinaryData body) {
- // Generated convenience method for uploadTestFileWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return uploadTestFileWithResponse(testId, fileName, body, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
- }
-
- /**
- * Delete file by the file name for a test.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @param fileName Name of the file.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono deleteTestFile(String testId, String fileName) {
- // Generated convenience method for deleteTestFileWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return deleteTestFileWithResponse(testId, fileName, requestOptions).flatMap(FluxUtil::toMono);
- }
-
- /**
- * Delete a test by its test Id.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono deleteTest(String testId) {
- // Generated convenience method for deleteTestWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return deleteTestWithResponse(testId, requestOptions).flatMap(FluxUtil::toMono);
- }
-
- /**
- * Create a new test profile or update an existing test profile.
- *
- * Create a new test profile or update an existing test profile by providing the test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Create or update operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
* @param body The resource instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -1524,30 +2327,27 @@ public Mono deleteTest(String testId) {
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test Profile Model on successful completion of {@link Mono}.
+ * @return notification rule model on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono createOrUpdateTestProfile(String testProfileId, TestProfile body) {
- // Generated convenience method for createOrUpdateTestProfileWithResponse
+ public Mono createOrUpdateNotificationRule(String notificationRuleId, NotificationRule body) {
+ // Generated convenience method for createOrUpdateNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, true);
+ JsonMergePatchHelper.getNotificationRuleAccessor().prepareModelForJsonMergePatch(body, true);
BinaryData bodyInBinaryData = BinaryData.fromObject(body);
// BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateTestProfileWithResponse(testProfileId, bodyInBinaryData, requestOptions)
+ JsonMergePatchHelper.getNotificationRuleAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateNotificationRuleWithResponse(notificationRuleId, bodyInBinaryData, requestOptions)
.flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class));
+ .map(protocolMethodData -> protocolMethodData.toObject(NotificationRule.class));
}
/**
- * Delete a test profile.
- *
- * Delete a test profile by its test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource delete operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1558,215 +2358,210 @@ public Mono createOrUpdateTestProfile(String testProfileId, TestPro
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono deleteTestProfile(String testProfileId) {
- // Generated convenience method for deleteTestProfileWithResponse
+ public Mono deleteNotificationRule(String notificationRuleId) {
+ // Generated convenience method for deleteNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- return deleteTestProfileWithResponse(testProfileId, requestOptions).flatMap(FluxUtil::toMono);
+ return deleteNotificationRuleWithResponse(notificationRuleId, requestOptions).flatMap(FluxUtil::toMono);
}
/**
- * Get load test profile details.
- *
- * Get load test profile details by test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource read operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test profile details.
- *
- * Get load test profile details by test profile Id on successful completion of {@link Mono}.
+ * @return notification rule model on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono getTestProfile(String testProfileId) {
- // Generated convenience method for getTestProfileWithResponse
+ public Mono getNotificationRule(String notificationRuleId) {
+ // Generated convenience method for getNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestProfileWithResponse(testProfileId, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class));
+ return getNotificationRuleWithResponse(notificationRuleId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(NotificationRule.class));
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
- *
+ * Resource list operation template.
+ *
+ * @param testIds Search based on notification rules associated with the provided test ids.
+ * @param scopes Search based on notification rules for the provided scopes.
+ * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * notification rules.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * notification rules.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestProfiles() {
- // Generated convenience method for listTestProfiles
+ public PagedFlux listNotificationRules(String testIds, String scopes,
+ OffsetDateTime lastModifiedStartTime, OffsetDateTime lastModifiedEndTime) {
+ // Generated convenience method for listNotificationRules
RequestOptions requestOptions = new RequestOptions();
- PagedFlux pagedFluxResponse = listTestProfiles(requestOptions);
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds", testIds, false);
+ }
+ if (scopes != null) {
+ requestOptions.addQueryParam("scopes", scopes, false);
+ }
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ PagedFlux pagedFluxResponse = listNotificationRules(requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
- return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
- .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class))
+ .map(protocolMethodData -> protocolMethodData.toObject(NotificationRule.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
- *
- * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
- * test profiles.
- * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter test
- * profiles.
- * @param testProfileIds Comma separated list of IDs of the test profiles to filter.
- * @param testIds Comma separated list IDs of the tests which should be associated with the test profiles to fetch.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * Resource list operation template.
+ *
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged collection of TestProfile items as paginated response with {@link PagedFlux}.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestProfiles(OffsetDateTime lastModifiedStartTime,
- OffsetDateTime lastModifiedEndTime, List testProfileIds, List testIds) {
- // Generated convenience method for listTestProfiles
+ public PagedFlux listNotificationRules() {
+ // Generated convenience method for listNotificationRules
RequestOptions requestOptions = new RequestOptions();
- if (lastModifiedStartTime != null) {
- requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
- }
- if (lastModifiedEndTime != null) {
- requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
- }
- if (testProfileIds != null) {
- requestOptions.addQueryParam("testProfileIds",
- testProfileIds.stream()
- .map(paramItemValue -> Objects.toString(paramItemValue, ""))
- .collect(Collectors.joining(",")),
- false);
- }
- if (testIds != null) {
- requestOptions.addQueryParam("testIds",
- testIds.stream()
- .map(paramItemValue -> Objects.toString(paramItemValue, ""))
- .collect(Collectors.joining(",")),
- false);
- }
- PagedFlux pagedFluxResponse = listTestProfiles(requestOptions);
+ PagedFlux pagedFluxResponse = listNotificationRules(requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
- return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+ return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
- .map(protocolMethodData -> protocolMethodData.toObject(TestProfile.class))
+ .map(protocolMethodData -> protocolMethodData.toObject(NotificationRule.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
}
/**
- * Configure server metrics for a test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param newTestId Unique identifier for the new test that will be created.
+ * @param displayName Display Name override for the newly created test.
+ * @param description Description override for the newly created test.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test server metrics configuration on successful completion of {@link Mono}.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono createOrUpdateServerMetricsConfig(String testId,
- TestServerMetricsConfiguration body) {
- // Generated convenience method for createOrUpdateServerMetricsConfigWithResponse
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCloneTest(String testId, String newTestId, String displayName,
+ String description) {
+ // Generated convenience method for beginCloneTestWithModel
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateServerMetricsConfigWithResponse(testId, bodyInBinaryData, requestOptions)
- .flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestServerMetricsConfiguration.class));
+ CloneTestRequest1 cloneTestRequest1Obj
+ = new CloneTestRequest1(newTestId).setDisplayName(displayName).setDescription(description);
+ BinaryData cloneTestRequest1 = BinaryData.fromObject(cloneTestRequest1Obj);
+ return serviceClient.beginCloneTestWithModelAsync(testId, cloneTestRequest1, requestOptions);
}
/**
- * Create a new test or update an existing test by providing the test Id.
- *
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
- * @param body The resource instance.
+ * @param newTestId Unique identifier for the new test that will be created.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test model on successful completion of {@link Mono}.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono createOrUpdateTest(String testId, LoadTest body) {
- // Generated convenience method for createOrUpdateTestWithResponse
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCloneTest(String testId, String newTestId) {
+ // Generated convenience method for beginCloneTestWithModel
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateTestWithResponse(testId, bodyInBinaryData, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(LoadTest.class));
+ CloneTestRequest1 cloneTestRequest1Obj = new CloneTestRequest1(newTestId);
+ BinaryData cloneTestRequest1 = BinaryData.fromObject(cloneTestRequest1Obj);
+ return serviceClient.beginCloneTestWithModelAsync(testId, cloneTestRequest1, requestOptions);
}
/**
- * Upload input file for a given test Id. File size can't be more than 50 MB.
- * Existing file with same name for the given test will be overwritten. File
- * should be provided in the request body as application/octet-stream.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
- * @param fileType File type.
+ * Generate load test plan recommendations.
+ *
+ * Generate AI Recommendations to author a load test plan using the uploaded browser recording file.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test file info on successful completion of {@link Mono}.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginGenerateTestPlanRecommendations(String testId) {
+ // Generated convenience method for beginGenerateTestPlanRecommendationsWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginGenerateTestPlanRecommendationsWithModelAsync(testId, requestOptions);
+ }
+
+ /**
+ * Get the status of a long running operation.
+ *
+ * @param operationId The unique ID of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a long running operation on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono uploadTestFile(String testId, String fileName, BinaryData body, LoadTestingFileType fileType) {
- // Generated convenience method for uploadTestFileWithResponse
+ public Mono getOperationStatus(String operationId) {
+ // Generated convenience method for getOperationStatusWithResponse
RequestOptions requestOptions = new RequestOptions();
- if (fileType != null) {
- requestOptions.addQueryParam("fileType", fileType.toString(), false);
- }
- return uploadTestFileWithResponse(testId, fileName, body, requestOptions).flatMap(FluxUtil::toMono)
- .map(protocolMethodData -> protocolMethodData.toObject(TestFileInfo.class));
+ return getOperationStatusWithResponse(operationId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(OperationStatus.class));
}
}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClient.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClient.java
index 9c91a7011296..45444a05917b 100644
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClient.java
+++ b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClient.java
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
+
package com.azure.developer.loadtesting;
import com.azure.core.annotation.Generated;
@@ -15,17 +16,20 @@
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.SyncPoller;
import com.azure.developer.loadtesting.implementation.JsonMergePatchHelper;
import com.azure.developer.loadtesting.implementation.LoadTestAdministrationClientImpl;
+import com.azure.developer.loadtesting.implementation.models.CloneTestRequest1;
import com.azure.developer.loadtesting.models.LoadTest;
import com.azure.developer.loadtesting.models.LoadTestingFileType;
+import com.azure.developer.loadtesting.models.NotificationRule;
+import com.azure.developer.loadtesting.models.OperationStatus;
import com.azure.developer.loadtesting.models.TestAppComponents;
import com.azure.developer.loadtesting.models.TestFileInfo;
import com.azure.developer.loadtesting.models.TestProfile;
import com.azure.developer.loadtesting.models.TestServerMetricsConfiguration;
-import java.time.Duration;
+import com.azure.developer.loadtesting.models.Trigger;
+import com.azure.developer.loadtesting.models.TriggerState;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Objects;
@@ -36,157 +40,17 @@
*/
@ServiceClient(builder = LoadTestAdministrationClientBuilder.class)
public final class LoadTestAdministrationClient {
-
- private static final ClientLogger LOGGER = new ClientLogger(LoadTestAdministrationClient.class);
-
- /**
- * Configure server metrics for a test.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test server metrics configuration along with {@link Response}.
- */
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateServerMetricsConfigWithResponse(String testId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateServerMetricsConfigWithResponse(testId, body, requestOptions);
- }
-
- /**
- * Uploads file and polls the validation status of the uploaded file.
- *
- * @param testId Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
- * @param fileUploadRequestOptions The options to configure the file upload HTTP request before HTTP client sends
- * it.
- * @throws ResourceNotFoundException when a test with {@code testId} doesn't exist.
- * @return A {@link SyncPoller} to poll on and retrieve the file info with validation status.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginUploadTestFile(String testId, String fileName, BinaryData body,
- RequestOptions fileUploadRequestOptions) {
- RequestOptions defaultRequestOptions = new RequestOptions();
- if (fileUploadRequestOptions != null) {
- defaultRequestOptions.setContext(fileUploadRequestOptions.getContext());
- }
- return SyncPoller.createPoller(Duration.ofSeconds(2),
- (context) -> PollingUtils.getValidationStatus(
- uploadTestFileWithResponse(testId, fileName, body, fileUploadRequestOptions).getValue()),
- (context) -> PollingUtils
- .getValidationStatus(getTestFileWithResponse(testId, fileName, defaultRequestOptions).getValue()),
- (activationResponse, context) -> {
- throw LOGGER.logExceptionAsError(new RuntimeException("Cancellation is not supported"));
- }, (context) -> getTestFileWithResponse(testId, fileName, defaultRequestOptions).getValue());
- }
-
- /**
- * Uploads file and polls the validation status of the uploaded file.
- *
- * @param testId Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
- * @throws ResourceNotFoundException when a test with {@code testId} doesn't exist.
- * @return A {@link SyncPoller} to poll on and retrieve the file info with validation status.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginUploadTestFile(String testId, String fileName, BinaryData body) {
- return SyncPoller.createPoller(Duration.ofSeconds(2),
- (context) -> PollingUtils.getValidationStatus(uploadTestFile(testId, fileName, body)),
- (context) -> PollingUtils.getValidationStatus(getTestFile(testId, fileName)),
- (activationResponse, context) -> {
- throw LOGGER.logExceptionAsError(new RuntimeException("Cancellation is not supported"));
- }, (context) -> getTestFile(testId, fileName));
- }
+ private final LoadTestAdministrationClientImpl serviceClient;
/**
- * Get all test files.
- * Response Body Schema
+ * Initializes an instance of LoadTestAdministrationClient class.
*
- *
- * {@code
- * {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * }
- *
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return all test files as paginated response with {@link PagedIterable}.
+ * @param serviceClient the service client implementation.
*/
@Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestFiles(String testId, RequestOptions requestOptions) {
- return this.serviceClient.listTestFiles(testId, requestOptions);
+ LoadTestAdministrationClient(LoadTestAdministrationClientImpl serviceClient) {
+ this.serviceClient = serviceClient;
}
/**
@@ -227,6 +91,7 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* autoStopDisabled: Boolean (Optional)
* errorRate: Double (Optional)
* errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
* String (Required): {
@@ -266,7 +131,7 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -293,6 +158,10 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* engineBuiltInIdentityIds (Optional): [
* String (Optional)
* ]
+ * estimatedVirtualUserHours: Double (Optional)
+ * preferences (Optional): {
+ * enableAIErrorInsights: Boolean (Optional)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -337,6 +206,7 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* autoStopDisabled: Boolean (Optional)
* errorRate: Double (Optional)
* errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
* String (Required): {
@@ -376,7 +246,7 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -403,6 +273,10 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* engineBuiltInIdentityIds (Optional): [
* String (Optional)
* ]
+ * estimatedVirtualUserHours: Double (Optional)
+ * preferences (Optional): {
+ * enableAIErrorInsights: Boolean (Optional)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -410,7 +284,7 @@ public PagedIterable listTestFiles(String testId, RequestOptions req
* }
* }
*
- *
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @param body The resource instance.
@@ -429,69 +303,279 @@ public Response createOrUpdateTestWithResponse(String testId, Binary
}
/**
- * Delete a test by its test Id.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Add an app component to a test.
+ *
+ * Add an app component to a test by providing the resource Id, name and type.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body App Component model.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the {@link Response}.
+ * @return test app components along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestWithResponse(String testId, RequestOptions requestOptions) {
- return this.serviceClient.deleteTestWithResponse(testId, requestOptions);
+ public Response createOrUpdateAppComponentsWithResponse(String testId, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createOrUpdateAppComponentsWithResponse(testId, body, requestOptions);
}
/**
- * Get load test details by test Id.
- * Response Body Schema
+ * Configure server metrics for a test.
+ * Request Body Schema
*
*
* {@code
* {
- * passFailCriteria (Optional): {
- * passFailMetrics (Optional): {
- * String (Required): {
- * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
- * condition: String (Optional)
- * requestName: String (Optional)
- * value: Double (Optional)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
- * }
- * passFailServerMetrics (Optional): {
- * String (Required): {
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * metricName: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * condition: String (Optional, Required on create)
- * value: double (Optional, Required on create)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * autoStopCriteria (Optional): {
- * autoStopDisabled: Boolean (Optional)
- * errorRate: Double (Optional)
- * errorRateTimeWindowInSeconds: Long (Optional)
- * }
- * secrets (Optional): {
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
* String (Required): {
- * value: String (Optional)
- * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * certificate (Optional): {
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test server metrics configuration along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateServerMetricsConfigWithResponse(String testId, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createOrUpdateServerMetricsConfigWithResponse(testId, body, requestOptions);
+ }
+
+ /**
+ * Get associated app component (collection of azure resources) for the given test.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
+ * }
+ * }
+ * testId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return associated app component (collection of azure resources) for the given test along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAppComponentsWithResponse(String testId, RequestOptions requestOptions) {
+ return this.serviceClient.getAppComponentsWithResponse(testId, requestOptions);
+ }
+
+ /**
+ * List server metrics configuration for the given test.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * testId: String (Optional)
+ * metrics (Optional, Required on create): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
+ * }
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test server metrics configuration along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getServerMetricsConfigWithResponse(String testId, RequestOptions requestOptions) {
+ return this.serviceClient.getServerMetricsConfigWithResponse(testId, requestOptions);
+ }
+
+ /**
+ * Get load test details by test Id.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * passFailCriteria (Optional): {
+ * passFailMetrics (Optional): {
+ * String (Required): {
+ * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
+ * condition: String (Optional)
+ * requestName: String (Optional)
+ * value: Double (Optional)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * }
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
+ * }
+ * secrets (Optional): {
+ * String (Required): {
+ * value: String (Optional)
+ * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
+ * }
+ * }
+ * certificate (Optional): {
* value: String (Optional)
* type: String(AKV_CERT_URI) (Optional)
* name: String (Optional)
@@ -523,7 +607,7 @@ public Response deleteTestWithResponse(String testId, RequestOptions reque
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -550,6 +634,10 @@ public Response deleteTestWithResponse(String testId, RequestOptions reque
* engineBuiltInIdentityIds (Optional): [
* String (Optional)
* ]
+ * estimatedVirtualUserHours: Double (Optional)
+ * preferences (Optional): {
+ * enableAIErrorInsights: Boolean (Optional)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -557,7 +645,7 @@ public Response deleteTestWithResponse(String testId, RequestOptions reque
* }
* }
*
- *
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -573,6 +661,71 @@ public Response getTestWithResponse(String testId, RequestOptions re
return this.serviceClient.getTestWithResponse(testId, requestOptions);
}
+ /**
+ * Get all the files that are associated with a test.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param fileName Name of the file.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return all the files that are associated with a test along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getTestFileWithResponse(String testId, String fileName, RequestOptions requestOptions) {
+ return this.serviceClient.getTestFileWithResponse(testId, fileName, requestOptions);
+ }
+
+ /**
+ * Get all test files.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return all test files as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTestFiles(String testId, RequestOptions requestOptions) {
+ return this.serviceClient.listTestFiles(testId, requestOptions);
+ }
+
/**
* Get all load tests by the fully qualified resource Id e.g
* subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
@@ -629,6 +782,7 @@ public Response getTestWithResponse(String testId, RequestOptions re
* autoStopDisabled: Boolean (Optional)
* errorRate: Double (Optional)
* errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
* String (Required): {
@@ -668,7 +822,7 @@ public Response getTestWithResponse(String testId, RequestOptions re
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -695,6 +849,10 @@ public Response getTestWithResponse(String testId, RequestOptions re
* engineBuiltInIdentityIds (Optional): [
* String (Optional)
* ]
+ * estimatedVirtualUserHours: Double (Optional)
+ * preferences (Optional): {
+ * enableAIErrorInsights: Boolean (Optional)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -702,7 +860,7 @@ public Response getTestWithResponse(String testId, RequestOptions re
* }
* }
*
- *
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -719,57 +877,43 @@ public PagedIterable- * Query Parameters - * + * Upload input file for a given test Id. File size can't be more than 50 MB. + * Existing file with same name for the given test will be overwritten. File + * should be provided in the request body as application/octet-stream. + *
Query Parameters
*| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| fileType | - *String | - *No | - *File type. Allowed values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS". | - *
| Name | Type | Required | Description |
| fileType | String | No | File type. Allowed values: "JMX_FILE", "USER_PROPERTIES", + * "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", + * "TEST_PLAN_RECOMMENDATIONS". |
- * Request Body Schema - * + *
Request Body Schema
+ * *
* {@code
* BinaryData
* }
*
- *
- * - * Response Body Schema - * + * + *
Response Body Schema
+ * *
* {@code
* {
+ * fileName: String (Required)
* url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
* @param fileName Unique name for test file with file extension like : App.jmx.
* @param body The file content as application/octet-stream.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -777,8 +921,9 @@ public PagedIterableResponse Body Schema
+ * Delete file by the file name for a test. * - *
- * {@code
- * {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * }
- *
- *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
* @param fileName Name of the file.
@@ -810,20 +941,19 @@ ResponseRequest Body Schema
* *
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -871,18 +997,14 @@ public Response deleteTestFileWithResponse(String testId, String fileName,
*
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -890,43 +1012,61 @@ public Response deleteTestFileWithResponse(String testId, String fileName,
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param body The resource instance.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test app components along with {@link Response}.
+ * @return test Profile Model along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateAppComponentsWithResponse(String testId, BinaryData body,
+ public Response createOrUpdateTestProfileWithResponse(String testProfileId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateAppComponentsWithResponse(testId, body, requestOptions);
+ return this.serviceClient.createOrUpdateTestProfileWithResponse(testProfileId, body, requestOptions);
}
/**
- * Get associated app component (collection of azure resources) for the given test.
+ * Delete a test profile.
+ *
+ * Delete a test profile by its test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteTestProfileWithResponse(testProfileId, requestOptions);
+ }
+
+ /**
+ * Get load test profile details.
+ *
+ * Get load test profile details by test profile Id.
* Response Body Schema
*
*
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
+ * }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -934,41 +1074,56 @@ public Response createOrUpdateAppComponentsWithResponse(String testI
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated app component (collection of azure resources) for the given test along with {@link Response}.
+ * @return load test profile details.
+ *
+ * Get load test profile details by test profile Id along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getAppComponentsWithResponse(String testId, RequestOptions requestOptions) {
- return this.serviceClient.getAppComponentsWithResponse(testId, requestOptions);
+ public Response getTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
+ return this.serviceClient.getTestProfileWithResponse(testProfileId, requestOptions);
}
/**
- * List server metrics configuration for the given test.
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Maximum number of results to include in a single
+ * response.
+ * lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
+ * of the last updated time range to filter test profiles.
+ * lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
+ * the last updated time range to filter test profiles.
+ * testProfileIds List<String> No Comma separated list of IDs of the test
+ * profiles to filter. In the form of "," separated string.
+ * testIds List<String> No Comma separated list IDs of the tests which should
+ * be associated with the test profiles to fetch. In the form of "," separated string.
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
* Response Body Schema
*
*
* {@code
* {
+ * testProfileId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
* testId: String (Optional)
- * metrics (Optional, Required on create): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
+ * targetResourceId: String (Optional)
+ * targetResourceConfigurations (Optional): {
+ * kind: String(FunctionsFlexConsumption) (Required)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -977,38 +1132,34 @@ public Response getAppComponentsWithResponse(String testId, RequestO
* }
* }
*
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test server metrics configuration along with {@link Response}.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getServerMetricsConfigWithResponse(String testId, RequestOptions requestOptions) {
- return this.serviceClient.getServerMetricsConfigWithResponse(testId, requestOptions);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTestProfiles(RequestOptions requestOptions) {
+ return this.serviceClient.listTestProfiles(requestOptions);
}
/**
- * Create a new test profile or update an existing test profile.
- *
- * Create a new test profile or update an existing test profile by providing the test profile Id.
+ * Create or update operation template.
* Request Body Schema
*
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1023,13 +1174,13 @@ public Response getServerMetricsConfigWithResponse(String testId, Re
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1038,31 +1189,27 @@ public Response getServerMetricsConfigWithResponse(String testId, Re
* }
* }
*
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param body The resource instance.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test Profile Model along with {@link Response}.
+ * @return trigger model along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateTestProfileWithResponse(String testProfileId, BinaryData body,
+ public Response createOrUpdateTriggerWithResponse(String triggerId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateTestProfileWithResponse(testProfileId, body, requestOptions);
+ return this.serviceClient.createOrUpdateTriggerWithResponse(triggerId, body, requestOptions);
}
/**
- * Delete a test profile.
- *
- * Delete a test profile by its test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource delete operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1072,26 +1219,24 @@ public Response createOrUpdateTestProfileWithResponse(String testPro
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
- return this.serviceClient.deleteTestProfileWithResponse(testProfileId, requestOptions);
+ public Response deleteTriggerWithResponse(String triggerId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteTriggerWithResponse(triggerId, requestOptions);
}
/**
- * Get load test profile details.
- *
- * Get load test profile details by test profile Id.
+ * Resource read operation template.
* Response Body Schema
*
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1100,42 +1245,37 @@ public Response deleteTestProfileWithResponse(String testProfileId, Reques
* }
* }
*
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return load test profile details.
- *
- * Get load test profile details by test profile Id along with {@link Response}.
+ * @return trigger model along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestProfileWithResponse(String testProfileId, RequestOptions requestOptions) {
- return this.serviceClient.getTestProfileWithResponse(testProfileId, requestOptions);
+ public Response getTriggerWithResponse(String triggerId, RequestOptions requestOptions) {
+ return this.serviceClient.getTriggerWithResponse(triggerId, requestOptions);
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
+ * Resource list operation template.
* Query Parameters
*
* Query Parameters
* Name Type Required Description
- * maxpagesize Integer No Maximum number of results to include in a single
- * response.
+ * testIds String No Search based on triggers associated with the provided test
+ * ids.
+ * states String No Filter triggers based on a comma separated list of states.
+ * Allowed values: "Active", "Paused", "Completed", "Disabled".
* lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
- * of the last updated time range to filter test profiles.
+ * of the last updated time range to filter triggers.
* lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
- * the last updated time range to filter test profiles.
- * testProfileIds List<String> No Comma separated list of IDs of the test
- * profiles to filter. In the form of "," separated string.
- * testIds List<String> No Comma separated list IDs of the tests which should
- * be associated with the test profiles to fetch. In the form of "," separated string.
+ * the last updated time range to filter triggers.
+ * maxpagesize Integer No Number of results in response. Default page size is
+ * 50.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
* Response Body Schema
@@ -1143,13 +1283,13 @@ public Response getTestProfileWithResponse(String testProfileId, Req
*
* {@code
* {
- * testProfileId: String (Required)
- * displayName: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
* description: String (Optional)
- * testId: String (Optional)
- * targetResourceId: String (Optional)
- * targetResourceConfigurations (Optional): {
- * kind: String(FunctionsFlexConsumption) (Required)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
* }
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
@@ -1158,533 +1298,1140 @@ public Response getTestProfileWithResponse(String testProfileId, Req
* }
* }
*
- *
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
+ * @return paged collection of Trigger items as paginated response with {@link PagedIterable}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestProfiles(RequestOptions requestOptions) {
- return this.serviceClient.listTestProfiles(requestOptions);
+ public PagedIterable listTriggers(RequestOptions requestOptions) {
+ return this.serviceClient.listTriggers(requestOptions);
}
/**
- * Add an app component to a test.
- *
- * Add an app component to a test by providing the resource Id, name and type.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test app components.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TestAppComponents createOrUpdateAppComponents(String testId, TestAppComponents body) {
- // Generated convenience method for createOrUpdateAppComponentsWithResponse
- RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateAppComponentsWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
- .toObject(TestAppComponents.class);
- }
-
+ * Create or update operation template.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateNotificationRuleWithResponse(String notificationRuleId, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createOrUpdateNotificationRuleWithResponse(notificationRuleId, body, requestOptions);
+ }
+
+ /**
+ * Resource delete operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteNotificationRuleWithResponse(String notificationRuleId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteNotificationRuleWithResponse(notificationRuleId, requestOptions);
+ }
+
+ /**
+ * Resource read operation template.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getNotificationRuleWithResponse(String notificationRuleId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getNotificationRuleWithResponse(notificationRuleId, requestOptions);
+ }
+
+ /**
+ * Resource list operation template.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * testIds String No Search based on notification rules associated with the provided
+ * test ids.
+ * scopes String No Search based on notification rules for the provided
+ * scopes.
+ * lastModifiedStartTime OffsetDateTime No Start DateTime(RFC 3339 literal format)
+ * of the last updated time range to filter notification rules.
+ * lastModifiedEndTime OffsetDateTime No End DateTime(RFC 3339 literal format) of
+ * the last updated time range to filter notification rules.
+ * maxpagesize Integer No Number of results in response. Default page size is
+ * 50.
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listNotificationRules(RequestOptions requestOptions) {
+ return this.serviceClient.listNotificationRules(requestOptions);
+ }
+
+ /**
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCloneTest(String testId, BinaryData cloneTestRequest1,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCloneTest(testId, cloneTestRequest1, requestOptions);
+ }
+
+ /**
+ * Generate load test plan recommendations.
+ *
+ * Generate AI Recommendations to author a load test plan using the uploaded browser recording file.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginGenerateTestPlanRecommendations(String testId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginGenerateTestPlanRecommendations(testId, requestOptions);
+ }
+
+ /**
+ * Get the status of a long running operation.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param operationId The unique ID of the operation.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of a long running operation along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getOperationStatusWithResponse(String operationId, RequestOptions requestOptions) {
+ return this.serviceClient.getOperationStatusWithResponse(operationId, requestOptions);
+ }
+
+ /**
+ * Create a new test or update an existing test by providing the test Id.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param body The resource instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return load test model.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LoadTest createOrUpdateTest(String testId, LoadTest body) {
+ // Generated convenience method for createOrUpdateTestWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTestWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
+ .toObject(LoadTest.class);
+ }
+
+ /**
+ * Add an app component to a test.
+ *
+ * Add an app component to a test by providing the resource Id, name and type.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body App Component model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test app components.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestAppComponents createOrUpdateAppComponents(String testId, TestAppComponents body) {
+ // Generated convenience method for createOrUpdateAppComponentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestAppComponentsAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateAppComponentsWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
+ .toObject(TestAppComponents.class);
+ }
+
+ /**
+ * Configure server metrics for a test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test server metrics configuration.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestServerMetricsConfiguration createOrUpdateServerMetricsConfig(String testId,
+ TestServerMetricsConfiguration body) {
+ // Generated convenience method for createOrUpdateServerMetricsConfigWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateServerMetricsConfigWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
+ .toObject(TestServerMetricsConfiguration.class);
+ }
+
+ /**
+ * Get associated app component (collection of azure resources) for the given test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return associated app component (collection of azure resources) for the given test.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestAppComponents getAppComponents(String testId) {
+ // Generated convenience method for getAppComponentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAppComponentsWithResponse(testId, requestOptions).getValue().toObject(TestAppComponents.class);
+ }
+
+ /**
+ * List server metrics configuration for the given test.
+ *
+ * @param testId Unique name for the load test, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return test server metrics configuration.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestServerMetricsConfiguration getServerMetricsConfig(String testId) {
+ // Generated convenience method for getServerMetricsConfigWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getServerMetricsConfigWithResponse(testId, requestOptions).getValue()
+ .toObject(TestServerMetricsConfiguration.class);
+ }
+
+ /**
+ * Get load test details by test Id.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return load test details by test Id.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LoadTest getTest(String testId) {
+ // Generated convenience method for getTestWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestWithResponse(testId, requestOptions).getValue().toObject(LoadTest.class);
+ }
+
+ /**
+ * Get all the files that are associated with a test.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param fileName Name of the file.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the files that are associated with a test.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestFileInfo getTestFile(String testId, String fileName) {
+ // Generated convenience method for getTestFileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestFileWithResponse(testId, fileName, requestOptions).getValue().toObject(TestFileInfo.class);
+ }
+
+ /**
+ * Get all test files.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all test files as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTestFiles(String testId) {
+ // Generated convenience method for listTestFiles
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listTestFiles(testId, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(TestFileInfo.class));
+ }
+
/**
- * Get associated app component (collection of azure resources) for the given test.
- *
+ * Get all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
+ *
+ * @param orderBy Sort on the supported fields in (field asc/desc) format. eg:
+ * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime.
+ * @param search Prefix based, case sensitive search on searchable fields - displayName,
+ * createdBy. For example, to search for a test, with display name is Login Test,
+ * the search parameter can be Login.
+ * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * tests.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter tests.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
+ * response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTests(String orderBy, String search, OffsetDateTime lastModifiedStartTime,
+ OffsetDateTime lastModifiedEndTime) {
+ // Generated convenience method for listTests
+ RequestOptions requestOptions = new RequestOptions();
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (search != null) {
+ requestOptions.addQueryParam("search", search, false);
+ }
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ return serviceClient.listTests(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(LoadTest.class));
+ }
+
+ /**
+ * Get all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all load tests by the fully qualified resource Id e.g
+ * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
+ * response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTests() {
+ // Generated convenience method for listTests
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listTests(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(LoadTest.class));
+ }
+
+ /**
+ * Upload input file for a given test Id. File size can't be more than 50 MB.
+ * Existing file with same name for the given test will be overwritten. File
+ * should be provided in the request body as application/octet-stream.
+ *
* @param testId Unique name for the load test, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param fileName Unique name for test file with file extension like : App.jmx.
+ * @param body The file content as application/octet-stream.
+ * @param fileType File type.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return associated app component (collection of azure resources) for the given test.
+ * @return test file info.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public TestAppComponents getAppComponents(String testId) {
- // Generated convenience method for getAppComponentsWithResponse
+ TestFileInfo uploadTestFile(String testId, String fileName, BinaryData body, LoadTestingFileType fileType) {
+ // Generated convenience method for uploadTestFileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getAppComponentsWithResponse(testId, requestOptions).getValue().toObject(TestAppComponents.class);
+ if (fileType != null) {
+ requestOptions.addQueryParam("fileType", fileType.toString(), false);
+ }
+ return uploadTestFileWithResponse(testId, fileName, body, requestOptions).getValue()
+ .toObject(TestFileInfo.class);
}
/**
- * List server metrics configuration for the given test.
- *
+ * Upload input file for a given test Id. File size can't be more than 50 MB.
+ * Existing file with same name for the given test will be overwritten. File
+ * should be provided in the request body as application/octet-stream.
+ *
* @param testId Unique name for the load test, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param fileName Unique name for test file with file extension like : App.jmx.
+ * @param body The file content as application/octet-stream.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test server metrics configuration.
+ * @return test file info.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public TestServerMetricsConfiguration getServerMetricsConfig(String testId) {
- // Generated convenience method for getServerMetricsConfigWithResponse
+ TestFileInfo uploadTestFile(String testId, String fileName, BinaryData body) {
+ // Generated convenience method for uploadTestFileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getServerMetricsConfigWithResponse(testId, requestOptions).getValue()
- .toObject(TestServerMetricsConfiguration.class);
+ return uploadTestFileWithResponse(testId, fileName, body, requestOptions).getValue()
+ .toObject(TestFileInfo.class);
}
/**
- * Get load test details by test Id.
- *
+ * Delete file by the file name for a test.
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
+ * @param fileName Name of the file.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test details by test Id.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public LoadTest getTest(String testId) {
- // Generated convenience method for getTestWithResponse
+ public void deleteTestFile(String testId, String fileName) {
+ // Generated convenience method for deleteTestFileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestWithResponse(testId, requestOptions).getValue().toObject(LoadTest.class);
+ deleteTestFileWithResponse(testId, fileName, requestOptions).getValue();
}
/**
- * Get all the files that are associated with a test.
- *
+ * Delete a test by its test Id.
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
- * @param fileName Name of the file.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the files that are associated with a test.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public TestFileInfo getTestFile(String testId, String fileName) {
- // Generated convenience method for getTestFileWithResponse
+ public void deleteTest(String testId) {
+ // Generated convenience method for deleteTestWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestFileWithResponse(testId, fileName, requestOptions).getValue().toObject(TestFileInfo.class);
+ deleteTestWithResponse(testId, requestOptions).getValue();
}
/**
- * Get all test files.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * Create a new test profile or update an existing test profile.
+ *
+ * Create a new test profile or update an existing test profile by providing the test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
+ * @param body The resource instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all test files as paginated response with {@link PagedIterable}.
+ * @return test Profile Model.
*/
@Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestFiles(String testId) {
- // Generated convenience method for listTestFiles
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestProfile createOrUpdateTestProfile(String testProfileId, TestProfile body) {
+ // Generated convenience method for createOrUpdateTestProfileWithResponse
RequestOptions requestOptions = new RequestOptions();
- return serviceClient.listTestFiles(testId, requestOptions)
- .mapPage(bodyItemValue -> bodyItemValue.toObject(TestFileInfo.class));
+ JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTestProfileWithResponse(testProfileId, bodyInBinaryData, requestOptions).getValue()
+ .toObject(TestProfile.class);
}
/**
- * Get all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
- *
- * @param orderBy Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime.
- * @param search Prefix based, case sensitive search on searchable fields - displayName,
- * createdBy. For example, to search for a test, with display name is Login Test,
- * the search parameter can be Login.
+ * Delete a test profile.
+ *
+ * Delete a test profile by its test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void deleteTestProfile(String testProfileId) {
+ // Generated convenience method for deleteTestProfileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ deleteTestProfileWithResponse(testProfileId, requestOptions).getValue();
+ }
+
+ /**
+ * Get load test profile details.
+ *
+ * Get load test profile details by test profile Id.
+ *
+ * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return load test profile details.
+ *
+ * Get load test profile details by test profile Id.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public TestProfile getTestProfile(String testProfileId) {
+ // Generated convenience method for getTestProfileWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTestProfileWithResponse(testProfileId, requestOptions).getValue().toObject(TestProfile.class);
+ }
+
+ /**
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ *
* @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
- * tests.
- * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter tests.
+ * test profiles.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter test
+ * profiles.
+ * @param testProfileIds Comma separated list of IDs of the test profiles to filter.
+ * @param testIds Comma separated list IDs of the tests which should be associated with the test profiles to fetch.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
- * response with {@link PagedIterable}.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTestProfiles(OffsetDateTime lastModifiedStartTime,
+ OffsetDateTime lastModifiedEndTime, List testProfileIds, List testIds) {
+ // Generated convenience method for listTestProfiles
+ RequestOptions requestOptions = new RequestOptions();
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ if (testProfileIds != null) {
+ requestOptions.addQueryParam("testProfileIds",
+ testProfileIds.stream()
+ .map(paramItemValue -> Objects.toString(paramItemValue, ""))
+ .collect(Collectors.joining(",")),
+ false);
+ }
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds",
+ testIds.stream()
+ .map(paramItemValue -> Objects.toString(paramItemValue, ""))
+ .collect(Collectors.joining(",")),
+ false);
+ }
+ return serviceClient.listTestProfiles(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(TestProfile.class));
+ }
+
+ /**
+ * List test profiles.
+ *
+ * Get all test profiles for the given filters.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTests(String orderBy, String search, OffsetDateTime lastModifiedStartTime,
- OffsetDateTime lastModifiedEndTime) {
- // Generated convenience method for listTests
+ public PagedIterable listTestProfiles() {
+ // Generated convenience method for listTestProfiles
RequestOptions requestOptions = new RequestOptions();
- if (orderBy != null) {
- requestOptions.addQueryParam("orderby", orderBy, false);
- }
- if (search != null) {
- requestOptions.addQueryParam("search", search, false);
- }
- if (lastModifiedStartTime != null) {
- requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
- }
- if (lastModifiedEndTime != null) {
- requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
- }
- return serviceClient.listTests(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(LoadTest.class));
+ return serviceClient.listTestProfiles(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(TestProfile.class));
}
/**
- * Get all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
- *
+ * Create or update operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param body The resource instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated
- * response with {@link PagedIterable}.
+ * @return trigger model.
*/
@Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTests() {
- // Generated convenience method for listTests
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Trigger createOrUpdateTrigger(String triggerId, Trigger body) {
+ // Generated convenience method for createOrUpdateTriggerWithResponse
RequestOptions requestOptions = new RequestOptions();
- return serviceClient.listTests(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(LoadTest.class));
+ JsonMergePatchHelper.getTriggerAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getTriggerAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateTriggerWithResponse(triggerId, bodyInBinaryData, requestOptions).getValue()
+ .toObject(Trigger.class);
}
/**
- * Upload input file for a given test Id. File size can't be more than 50 MB.
- * Existing file with same name for the given test will be overwritten. File
- * should be provided in the request body as application/octet-stream.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
+ * Resource delete operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test file info.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- TestFileInfo uploadTestFile(String testId, String fileName, BinaryData body) {
- // Generated convenience method for uploadTestFileWithResponse
+ public void deleteTrigger(String triggerId) {
+ // Generated convenience method for deleteTriggerWithResponse
RequestOptions requestOptions = new RequestOptions();
- return uploadTestFileWithResponse(testId, fileName, body, requestOptions).getValue()
- .toObject(TestFileInfo.class);
+ deleteTriggerWithResponse(triggerId, requestOptions).getValue();
}
/**
- * Delete file by the file name for a test.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @param fileName Name of the file.
+ * Resource read operation template.
+ *
+ * @param triggerId The unique identifier of the trigger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return trigger model.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public void deleteTestFile(String testId, String fileName) {
- // Generated convenience method for deleteTestFileWithResponse
+ public Trigger getTrigger(String triggerId) {
+ // Generated convenience method for getTriggerWithResponse
RequestOptions requestOptions = new RequestOptions();
- deleteTestFileWithResponse(testId, fileName, requestOptions).getValue();
+ return getTriggerWithResponse(triggerId, requestOptions).getValue().toObject(Trigger.class);
}
/**
- * Delete a test by its test Id.
- *
- * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource list operation template.
+ *
+ * @param testIds Search based on triggers associated with the provided test ids.
+ * @param states Filter triggers based on a comma separated list of states.
+ * @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * triggers.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * triggers.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of Trigger items as paginated response with {@link PagedIterable}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void deleteTest(String testId) {
- // Generated convenience method for deleteTestWithResponse
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTriggers(String testIds, TriggerState states,
+ OffsetDateTime lastModifiedStartTime, OffsetDateTime lastModifiedEndTime) {
+ // Generated convenience method for listTriggers
RequestOptions requestOptions = new RequestOptions();
- deleteTestWithResponse(testId, requestOptions).getValue();
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds", testIds, false);
+ }
+ if (states != null) {
+ requestOptions.addQueryParam("states", states.toString(), false);
+ }
+ if (lastModifiedStartTime != null) {
+ requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
+ }
+ if (lastModifiedEndTime != null) {
+ requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
+ }
+ return serviceClient.listTriggers(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(Trigger.class));
}
/**
- * Create a new test profile or update an existing test profile.
- *
- * Create a new test profile or update an existing test profile by providing the test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
- * @param body The resource instance.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * Resource list operation template.
+ *
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test Profile Model.
+ * @return paged collection of Trigger items as paginated response with {@link PagedIterable}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TestProfile createOrUpdateTestProfile(String testProfileId, TestProfile body) {
- // Generated convenience method for createOrUpdateTestProfileWithResponse
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTriggers() {
+ // Generated convenience method for listTriggers
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestProfileAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateTestProfileWithResponse(testProfileId, bodyInBinaryData, requestOptions).getValue()
- .toObject(TestProfile.class);
+ return serviceClient.listTriggers(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(Trigger.class));
}
/**
- * Delete a test profile.
- *
- * Delete a test profile by its test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Create or update operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param body The resource instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return notification rule model.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public void deleteTestProfile(String testProfileId) {
- // Generated convenience method for deleteTestProfileWithResponse
+ public NotificationRule createOrUpdateNotificationRule(String notificationRuleId, NotificationRule body) {
+ // Generated convenience method for createOrUpdateNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- deleteTestProfileWithResponse(testProfileId, requestOptions).getValue();
+ JsonMergePatchHelper.getNotificationRuleAccessor().prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getNotificationRuleAccessor().prepareModelForJsonMergePatch(body, false);
+ return createOrUpdateNotificationRuleWithResponse(notificationRuleId, bodyInBinaryData, requestOptions)
+ .getValue()
+ .toObject(NotificationRule.class);
}
/**
- * Get load test profile details.
- *
- * Get load test profile details by test profile Id.
- *
- * @param testProfileId Unique identifier for the test profile, must contain only lower-case alphabetic, numeric,
- * underscore or hyphen characters.
+ * Resource delete operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test profile details.
- *
- * Get load test profile details by test profile Id.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public TestProfile getTestProfile(String testProfileId) {
- // Generated convenience method for getTestProfileWithResponse
+ public void deleteNotificationRule(String notificationRuleId) {
+ // Generated convenience method for deleteNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getTestProfileWithResponse(testProfileId, requestOptions).getValue().toObject(TestProfile.class);
+ deleteNotificationRuleWithResponse(notificationRuleId, requestOptions).getValue();
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
- *
+ * Resource read operation template.
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
+ * @return notification rule model.
*/
@Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestProfiles() {
- // Generated convenience method for listTestProfiles
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public NotificationRule getNotificationRule(String notificationRuleId) {
+ // Generated convenience method for getNotificationRuleWithResponse
RequestOptions requestOptions = new RequestOptions();
- return serviceClient.listTestProfiles(requestOptions)
- .mapPage(bodyItemValue -> bodyItemValue.toObject(TestProfile.class));
+ return getNotificationRuleWithResponse(notificationRuleId, requestOptions).getValue()
+ .toObject(NotificationRule.class);
}
/**
- * List test profiles.
- *
- * Get all test profiles for the given filters.
- *
+ * Resource list operation template.
+ *
+ * @param testIds Search based on notification rules associated with the provided test ids.
+ * @param scopes Search based on notification rules for the provided scopes.
* @param lastModifiedStartTime Start DateTime(RFC 3339 literal format) of the last updated time range to filter
- * test profiles.
- * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter test
- * profiles.
- * @param testProfileIds Comma separated list of IDs of the test profiles to filter.
- * @param testIds Comma separated list IDs of the tests which should be associated with the test profiles to fetch.
+ * notification rules.
+ * @param lastModifiedEndTime End DateTime(RFC 3339 literal format) of the last updated time range to filter
+ * notification rules.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged collection of TestProfile items as paginated response with {@link PagedIterable}.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedIterable}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestProfiles(OffsetDateTime lastModifiedStartTime,
- OffsetDateTime lastModifiedEndTime, List testProfileIds, List testIds) {
- // Generated convenience method for listTestProfiles
+ public PagedIterable listNotificationRules(String testIds, String scopes,
+ OffsetDateTime lastModifiedStartTime, OffsetDateTime lastModifiedEndTime) {
+ // Generated convenience method for listNotificationRules
RequestOptions requestOptions = new RequestOptions();
+ if (testIds != null) {
+ requestOptions.addQueryParam("testIds", testIds, false);
+ }
+ if (scopes != null) {
+ requestOptions.addQueryParam("scopes", scopes, false);
+ }
if (lastModifiedStartTime != null) {
requestOptions.addQueryParam("lastModifiedStartTime", String.valueOf(lastModifiedStartTime), false);
}
if (lastModifiedEndTime != null) {
requestOptions.addQueryParam("lastModifiedEndTime", String.valueOf(lastModifiedEndTime), false);
}
- if (testProfileIds != null) {
- requestOptions.addQueryParam("testProfileIds",
- testProfileIds.stream()
- .map(paramItemValue -> Objects.toString(paramItemValue, ""))
- .collect(Collectors.joining(",")),
- false);
- }
- if (testIds != null) {
- requestOptions.addQueryParam("testIds",
- testIds.stream()
- .map(paramItemValue -> Objects.toString(paramItemValue, ""))
- .collect(Collectors.joining(",")),
- false);
- }
- return serviceClient.listTestProfiles(requestOptions)
- .mapPage(bodyItemValue -> bodyItemValue.toObject(TestProfile.class));
+ return serviceClient.listNotificationRules(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(NotificationRule.class));
}
/**
- * Configure server metrics for a test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * Resource list operation template.
+ *
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test server metrics configuration.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedIterable}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TestServerMetricsConfiguration createOrUpdateServerMetricsConfig(String testId,
- TestServerMetricsConfiguration body) {
- // Generated convenience method for createOrUpdateServerMetricsConfigWithResponse
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listNotificationRules() {
+ // Generated convenience method for listNotificationRules
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getTestServerMetricsConfigurationAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateServerMetricsConfigWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
- .toObject(TestServerMetricsConfiguration.class);
+ return serviceClient.listNotificationRules(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(NotificationRule.class));
}
/**
- * Create a new test or update an existing test by providing the test Id.
- *
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ *
* @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
* underscore or hyphen characters.
- * @param body The resource instance.
+ * @param newTestId Unique identifier for the new test that will be created.
+ * @param displayName Display Name override for the newly created test.
+ * @param description Description override for the newly created test.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return load test model.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public LoadTest createOrUpdateTest(String testId, LoadTest body) {
- // Generated convenience method for createOrUpdateTestWithResponse
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCloneTest(String testId, String newTestId, String displayName,
+ String description) {
+ // Generated convenience method for beginCloneTestWithModel
RequestOptions requestOptions = new RequestOptions();
- JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, true);
- BinaryData bodyInBinaryData = BinaryData.fromObject(body);
- // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
- bodyInBinaryData.getLength();
- JsonMergePatchHelper.getLoadTestAccessor().prepareModelForJsonMergePatch(body, false);
- return createOrUpdateTestWithResponse(testId, bodyInBinaryData, requestOptions).getValue()
- .toObject(LoadTest.class);
+ CloneTestRequest1 cloneTestRequest1Obj
+ = new CloneTestRequest1(newTestId).setDisplayName(displayName).setDescription(description);
+ BinaryData cloneTestRequest1 = BinaryData.fromObject(cloneTestRequest1Obj);
+ return serviceClient.beginCloneTestWithModel(testId, cloneTestRequest1, requestOptions);
}
/**
- * Upload input file for a given test Id. File size can't be more than 50 MB.
- * Existing file with same name for the given test will be overwritten. File
- * should be provided in the request body as application/octet-stream.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param fileName Unique name for test file with file extension like : App.jmx.
- * @param body The file content as application/octet-stream.
- * @param fileType File type.
+ * Clone a load test.
+ *
+ * Clone the given test with optional overrides applied to the clone test.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param newTestId Unique identifier for the new test that will be created.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return test file info.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- TestFileInfo uploadTestFile(String testId, String fileName, BinaryData body, LoadTestingFileType fileType) {
- // Generated convenience method for uploadTestFileWithResponse
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCloneTest(String testId, String newTestId) {
+ // Generated convenience method for beginCloneTestWithModel
RequestOptions requestOptions = new RequestOptions();
- if (fileType != null) {
- requestOptions.addQueryParam("fileType", fileType.toString(), false);
- }
- return uploadTestFileWithResponse(testId, fileName, body, requestOptions).getValue()
- .toObject(TestFileInfo.class);
+ CloneTestRequest1 cloneTestRequest1Obj = new CloneTestRequest1(newTestId);
+ BinaryData cloneTestRequest1 = BinaryData.fromObject(cloneTestRequest1Obj);
+ return serviceClient.beginCloneTestWithModel(testId, cloneTestRequest1, requestOptions);
}
+ /**
+ * Generate load test plan recommendations.
+ *
+ * Generate AI Recommendations to author a load test plan using the uploaded browser recording file.
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
@Generated
- private final LoadTestAdministrationClientImpl serviceClient;
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginGenerateTestPlanRecommendations(String testId) {
+ // Generated convenience method for beginGenerateTestPlanRecommendationsWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginGenerateTestPlanRecommendationsWithModel(testId, requestOptions);
+ }
/**
- * Initializes an instance of LoadTestAdministrationClient class.
- *
- * @param serviceClient the service client implementation.
+ * Get the status of a long running operation.
+ *
+ * @param operationId The unique ID of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a long running operation.
*/
@Generated
- LoadTestAdministrationClient(LoadTestAdministrationClientImpl serviceClient) {
- this.serviceClient = serviceClient;
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatus getOperationStatus(String operationId) {
+ // Generated convenience method for getOperationStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getOperationStatusWithResponse(operationId, requestOptions).getValue().toObject(OperationStatus.class);
}
}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClientBuilder.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClientBuilder.java
index 82fe0a7b6c1b..a7feb35b5319 100644
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClientBuilder.java
+++ b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClientBuilder.java
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
+
package com.azure.developer.loadtesting;
import com.azure.core.annotation.Generated;
@@ -46,7 +47,6 @@
public final class LoadTestAdministrationClientBuilder
implements HttpTrait, ConfigurationTrait,
TokenCredentialTrait, EndpointTrait {
-
@Generated
private static final String SDK_NAME = "name";
@@ -56,6 +56,10 @@ public final class LoadTestAdministrationClientBuilder
@Generated
private static final String[] DEFAULT_SCOPES = new String[] { "https://cnt-prod.loadtesting.azure.com/.default" };
+ @Generated
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-developer-loadtesting.properties");
+
@Generated
private final List pipelinePolicies;
@@ -68,37 +72,37 @@ public LoadTestAdministrationClientBuilder() {
}
/*
- * The HTTP pipeline to send requests through.
+ * The HTTP client used to send the request.
*/
@Generated
- private HttpPipeline pipeline;
+ private HttpClient httpClient;
/**
* {@inheritDoc}.
*/
@Generated
@Override
- public LoadTestAdministrationClientBuilder pipeline(HttpPipeline pipeline) {
- if (this.pipeline != null && pipeline == null) {
- LOGGER.atInfo().log("HttpPipeline is being set to 'null' when it was previously configured.");
- }
- this.pipeline = pipeline;
+ public LoadTestAdministrationClientBuilder httpClient(HttpClient httpClient) {
+ this.httpClient = httpClient;
return this;
}
/*
- * The HTTP client used to send the request.
+ * The HTTP pipeline to send requests through.
*/
@Generated
- private HttpClient httpClient;
+ private HttpPipeline pipeline;
/**
* {@inheritDoc}.
*/
@Generated
@Override
- public LoadTestAdministrationClientBuilder httpClient(HttpClient httpClient) {
- this.httpClient = httpClient;
+ public LoadTestAdministrationClientBuilder pipeline(HttpPipeline pipeline) {
+ if (this.pipeline != null && pipeline == null) {
+ LOGGER.atInfo().log("HttpPipeline is being set to 'null' when it was previously configured.");
+ }
+ this.pipeline = pipeline;
return this;
}
@@ -217,7 +221,7 @@ public LoadTestAdministrationClientBuilder endpoint(String endpoint) {
/**
* Sets Service version.
- *
+ *
* @param serviceVersion the serviceVersion value.
* @return the LoadTestAdministrationClientBuilder.
*/
@@ -235,7 +239,7 @@ public LoadTestAdministrationClientBuilder serviceVersion(LoadTestingServiceVers
/**
* Sets The retry policy that will attempt to retry failed requests, if applicable.
- *
+ *
* @param retryPolicy the retryPolicy value.
* @return the LoadTestAdministrationClientBuilder.
*/
@@ -247,7 +251,7 @@ public LoadTestAdministrationClientBuilder retryPolicy(RetryPolicy retryPolicy)
/**
* Builds an instance of LoadTestAdministrationClientImpl with the provided parameters.
- *
+ *
* @return an instance of LoadTestAdministrationClientImpl.
*/
@Generated
@@ -261,6 +265,13 @@ private LoadTestAdministrationClientImpl buildInnerClient() {
return client;
}
+ @Generated
+ private void validateClient() {
+ // This method is invoked from 'buildInnerClient'/'buildClient' method.
+ // Developer can customize this method, to validate that the necessary conditions are met for the new client.
+ Objects.requireNonNull(endpoint, "'endpoint' cannot be null.");
+ }
+
@Generated
private HttpPipeline createHttpPipeline() {
Configuration buildConfiguration
@@ -301,7 +312,7 @@ private HttpPipeline createHttpPipeline() {
/**
* Builds an instance of LoadTestAdministrationAsyncClient class.
- *
+ *
* @return an instance of LoadTestAdministrationAsyncClient.
*/
@Generated
@@ -311,7 +322,7 @@ public LoadTestAdministrationAsyncClient buildAsyncClient() {
/**
* Builds an instance of LoadTestAdministrationClient class.
- *
+ *
* @return an instance of LoadTestAdministrationClient.
*/
@Generated
@@ -319,16 +330,5 @@ public LoadTestAdministrationClient buildClient() {
return new LoadTestAdministrationClient(buildInnerClient());
}
- @Generated
- private static final Map PROPERTIES
- = CoreUtils.getProperties("azure-developer-loadtesting.properties");
-
private static final ClientLogger LOGGER = new ClientLogger(LoadTestAdministrationClientBuilder.class);
-
- @Generated
- private void validateClient() {
- // This method is invoked from 'buildInnerClient'/'buildClient' method.
- // Developer can customize this method, to validate that the necessary conditions are met for the new client.
- Objects.requireNonNull(endpoint, "'endpoint' cannot be null.");
- }
}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunAsyncClient.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunAsyncClient.java
index cb276fab7365..de02699b5b10 100644
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunAsyncClient.java
+++ b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunAsyncClient.java
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
+
package com.azure.developer.loadtesting;
import com.azure.core.annotation.Generated;
@@ -11,7 +12,6 @@
import com.azure.core.exception.HttpResponseException;
import com.azure.core.exception.ResourceModifiedException;
import com.azure.core.exception.ResourceNotFoundException;
-import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedResponse;
import com.azure.core.http.rest.PagedResponseBase;
@@ -25,12 +25,14 @@
import com.azure.developer.loadtesting.models.LoadTestRun;
import com.azure.developer.loadtesting.models.MetricDefinitions;
import com.azure.developer.loadtesting.models.MetricNamespaces;
+import com.azure.developer.loadtesting.models.MetricsFilters;
import com.azure.developer.loadtesting.models.TestProfileRun;
import com.azure.developer.loadtesting.models.TestRunAppComponents;
import com.azure.developer.loadtesting.models.TestRunFileInfo;
+import com.azure.developer.loadtesting.models.TestRunInsights;
import com.azure.developer.loadtesting.models.TestRunServerMetricsConfiguration;
import com.azure.developer.loadtesting.models.TimeGrain;
-import java.time.Duration;
+import com.azure.developer.loadtesting.models.TimeSeriesElement;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Objects;
@@ -43,30 +45,192 @@
*/
@ServiceClient(builder = LoadTestRunClientBuilder.class, isAsync = true)
public final class LoadTestRunAsyncClient {
-
@Generated
private final LoadTestRunClientImpl serviceClient;
/**
- * Configure server metrics for a test run.
+ * Initializes an instance of LoadTestRunAsyncClient class.
+ *
+ * @param serviceClient the service client implementation.
+ */
+ @Generated
+ LoadTestRunAsyncClient(LoadTestRunClientImpl serviceClient) {
+ this.serviceClient = serviceClient;
+ }
+
+ /**
+ * Create and start a new test run with the given test run Id.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * oldTestRunId String No Existing test run identifier that should be rerun, if this
+ * is provided, the
+ * test will run with the JMX file, configuration and app components from the
+ * existing test run. You can override the configuration values for new test run
+ * in the request body.
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
* Request Body Schema
*
*
* {@code
* {
- * testRunId: String (Optional)
- * metrics (Optional): {
+ * testRunId: String (Required)
+ * passFailCriteria (Optional): {
+ * passFailMetrics (Optional): {
+ * String (Required): {
+ * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
+ * condition: String (Optional)
+ * requestName: String (Optional)
+ * value: Double (Optional)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * }
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
+ * }
+ * secrets (Optional): {
* String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
+ * value: String (Optional)
+ * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
* }
* }
+ * certificate (Optional): {
+ * value: String (Optional)
+ * type: String(AKV_CERT_URI) (Optional)
+ * name: String (Optional)
+ * }
+ * environmentVariables (Optional): {
+ * String: String (Required)
+ * }
+ * errorDetails (Optional): [
+ * (Optional){
+ * code: String (Optional)
+ * message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ * ]
+ * testRunStatistics (Optional): {
+ * String (Required): {
+ * transaction: String (Optional)
+ * sampleCount: Double (Optional)
+ * errorCount: Double (Optional)
+ * errorPct: Double (Optional)
+ * meanResTime: Double (Optional)
+ * medianResTime: Double (Optional)
+ * maxResTime: Double (Optional)
+ * minResTime: Double (Optional)
+ * pct1ResTime: Double (Optional)
+ * pct2ResTime: Double (Optional)
+ * pct3ResTime: Double (Optional)
+ * pct75ResTime: Double (Optional)
+ * pct96ResTime: Double (Optional)
+ * pct97ResTime: Double (Optional)
+ * pct98ResTime: Double (Optional)
+ * pct999ResTime: Double (Optional)
+ * pct9999ResTime: Double (Optional)
+ * throughput: Double (Optional)
+ * receivedKBytesPerSec: Double (Optional)
+ * sentKBytesPerSec: Double (Optional)
+ * }
+ * }
+ * regionalStatistics (Optional): {
+ * String (Required): (recursive schema, see String above)
+ * }
+ * loadTestConfiguration (Optional): {
+ * engineInstances: Integer (Optional)
+ * splitAllCSVs: Boolean (Optional)
+ * quickStartTest: Boolean (Optional)
+ * optionalLoadTestConfig (Optional): {
+ * endpointUrl: String (Optional)
+ * requestsPerSecond: Integer (Optional)
+ * maxResponseTimeInMs: Integer (Optional)
+ * virtualUsers: Integer (Optional)
+ * rampUpTime: Integer (Optional)
+ * duration: Long (Optional)
+ * }
+ * regionalLoadTestConfig (Optional): [
+ * (Optional){
+ * engineInstances: int (Optional, Required on create)
+ * region: String (Optional, Required on create)
+ * }
+ * ]
+ * }
+ * testArtifacts (Optional): {
+ * inputArtifacts (Optional): {
+ * configFileInfo (Optional): {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
+ * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
+ * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
+ * urlTestConfigFileInfo (Optional): (recursive schema, see urlTestConfigFileInfo above)
+ * additionalFileInfo (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * outputArtifacts (Optional): {
+ * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
+ * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * artifactsContainerInfo (Optional): {
+ * url: String (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * }
+ * reportFileInfo (Optional): (recursive schema, see reportFileInfo above)
+ * }
+ * }
+ * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
+ * virtualUsers: Integer (Optional)
+ * displayName: String (Optional)
+ * testId: String (Optional)
+ * description: String (Optional)
+ * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * executedDateTime: OffsetDateTime (Optional)
+ * portalUrl: String (Optional)
+ * duration: Long (Optional)
+ * virtualUserHours: Double (Optional)
+ * subnetId: String (Optional)
+ * kind: String(URL/JMX/Locust) (Optional)
+ * requestDataLevel: String(NONE/ERRORS) (Optional)
+ * debugLogsEnabled: Boolean (Optional)
+ * publicIPDisabled: Boolean (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -80,19 +244,161 @@ public final class LoadTestRunAsyncClient {
*
* {@code
* {
- * testRunId: String (Optional)
- * metrics (Optional): {
+ * testRunId: String (Required)
+ * passFailCriteria (Optional): {
+ * passFailMetrics (Optional): {
+ * String (Required): {
+ * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
+ * condition: String (Optional)
+ * requestName: String (Optional)
+ * value: Double (Optional)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * }
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
+ * }
+ * secrets (Optional): {
* String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
+ * value: String (Optional)
+ * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
* }
* }
+ * certificate (Optional): {
+ * value: String (Optional)
+ * type: String(AKV_CERT_URI) (Optional)
+ * name: String (Optional)
+ * }
+ * environmentVariables (Optional): {
+ * String: String (Required)
+ * }
+ * errorDetails (Optional): [
+ * (Optional){
+ * code: String (Optional)
+ * message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ * ]
+ * testRunStatistics (Optional): {
+ * String (Required): {
+ * transaction: String (Optional)
+ * sampleCount: Double (Optional)
+ * errorCount: Double (Optional)
+ * errorPct: Double (Optional)
+ * meanResTime: Double (Optional)
+ * medianResTime: Double (Optional)
+ * maxResTime: Double (Optional)
+ * minResTime: Double (Optional)
+ * pct1ResTime: Double (Optional)
+ * pct2ResTime: Double (Optional)
+ * pct3ResTime: Double (Optional)
+ * pct75ResTime: Double (Optional)
+ * pct96ResTime: Double (Optional)
+ * pct97ResTime: Double (Optional)
+ * pct98ResTime: Double (Optional)
+ * pct999ResTime: Double (Optional)
+ * pct9999ResTime: Double (Optional)
+ * throughput: Double (Optional)
+ * receivedKBytesPerSec: Double (Optional)
+ * sentKBytesPerSec: Double (Optional)
+ * }
+ * }
+ * regionalStatistics (Optional): {
+ * String (Required): (recursive schema, see String above)
+ * }
+ * loadTestConfiguration (Optional): {
+ * engineInstances: Integer (Optional)
+ * splitAllCSVs: Boolean (Optional)
+ * quickStartTest: Boolean (Optional)
+ * optionalLoadTestConfig (Optional): {
+ * endpointUrl: String (Optional)
+ * requestsPerSecond: Integer (Optional)
+ * maxResponseTimeInMs: Integer (Optional)
+ * virtualUsers: Integer (Optional)
+ * rampUpTime: Integer (Optional)
+ * duration: Long (Optional)
+ * }
+ * regionalLoadTestConfig (Optional): [
+ * (Optional){
+ * engineInstances: int (Optional, Required on create)
+ * region: String (Optional, Required on create)
+ * }
+ * ]
+ * }
+ * testArtifacts (Optional): {
+ * inputArtifacts (Optional): {
+ * configFileInfo (Optional): {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
+ * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
+ * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
+ * urlTestConfigFileInfo (Optional): (recursive schema, see urlTestConfigFileInfo above)
+ * additionalFileInfo (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * outputArtifacts (Optional): {
+ * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
+ * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * artifactsContainerInfo (Optional): {
+ * url: String (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * }
+ * reportFileInfo (Optional): (recursive schema, see reportFileInfo above)
+ * }
+ * }
+ * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
+ * virtualUsers: Integer (Optional)
+ * displayName: String (Optional)
+ * testId: String (Optional)
+ * description: String (Optional)
+ * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * executedDateTime: OffsetDateTime (Optional)
+ * portalUrl: String (Optional)
+ * duration: Long (Optional)
+ * virtualUserHours: Double (Optional)
+ * subnetId: String (Optional)
+ * kind: String(URL/JMX/Locust) (Optional)
+ * requestDataLevel: String(NONE/ERRORS) (Optional)
+ * debugLogsEnabled: Boolean (Optional)
+ * publicIPDisabled: Boolean (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -100,128 +406,27 @@ public final class LoadTestRunAsyncClient {
* }
* }
*
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ *
+ * @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
+ * @param body The resource instance.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run server metrics configuration along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return load test run model along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateServerMetricsConfigWithResponse(String testRunId, BinaryData body,
+ Mono> createOrUpdateTestRunWithResponse(String testRunId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateServerMetricsConfigWithResponseAsync(testRunId, body, requestOptions);
- }
-
- /**
- * Starts a test run and polls the status of the test run.
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param body Load test run model.
- * @param testRunRequestOptions The options to configure the file upload HTTP request before HTTP client sends it.
- * @throws ResourceNotFoundException when a test with {@code testId} doesn't exist.
- * @return A {@link PollerFlux} to poll on and retrieve the test run
- * status(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE).
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginTestRun(String testRunId, BinaryData body,
- RequestOptions testRunRequestOptions) {
- RequestOptions defaultRequestOptions = new RequestOptions();
- if (testRunRequestOptions != null) {
- defaultRequestOptions.setContext(testRunRequestOptions.getContext());
- }
- return new PollerFlux<>(Duration.ofSeconds(5),
- (context) -> createOrUpdateTestRunWithResponse(testRunId, body, testRunRequestOptions)
- .flatMap(FluxUtil::toMono),
- (context) -> getTestRunWithResponse(testRunId, defaultRequestOptions).flatMap(FluxUtil::toMono)
- .flatMap(testRunBinary -> PollingUtils
- .getPollResponseMono(() -> PollingUtils.getTestRunStatus(testRunBinary))),
- (activationResponse, context) -> stopTestRunWithResponse(testRunId, defaultRequestOptions)
- .flatMap(FluxUtil::toMono),
- (context) -> getTestRunWithResponse(testRunId, defaultRequestOptions).flatMap(FluxUtil::toMono));
- }
-
- /**
- * Starts a test run and polls the status of the test run.
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param body Load test run model.
- * @throws ResourceNotFoundException when a test with {@code testId} doesn't exist.
- * @return A {@link PollerFlux} to poll on and retrieve the test run
- * status(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE).
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginTestRun(String testRunId, LoadTestRun body) {
- return new PollerFlux<>(Duration.ofSeconds(5), (context) -> createOrUpdateTestRun(testRunId, body),
- (context) -> getTestRun(testRunId).flatMap(
- testRunBinary -> PollingUtils.getPollResponseMono(() -> PollingUtils.getTestRunStatus(testRunBinary))),
- (activationResponse, context) -> stopTestRun(testRunId), (context) -> getTestRun(testRunId));
- }
-
- /**
- * Starts a test profile run and polls the status of the test profile run.
- *
- * @param testProfileRunId Unique name for the test profile run, must contain only lower-case alphabetic, numeric,
- * underscore
- * or hyphen characters.
- * @param body Test Profile Run model.
- * @param testProfileRunRequestOptions The options to configure the file upload HTTP request before HTTP client
- * sends it.
- * @throws ResourceNotFoundException when a test profile with {@code testProfileId} doesn't exist.
- * @return A {@link PollerFlux} to poll on and retrieve the test run
- * status(ACCEPTED/NOTSTARTED/EXECUTING/DONE/CANCELLING/CANCELLED/FAILED).
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginTestProfileRun(String testProfileRunId, BinaryData body,
- RequestOptions testProfileRunRequestOptions) {
- RequestOptions defaultRequestOptions = new RequestOptions();
- if (testProfileRunRequestOptions != null) {
- defaultRequestOptions.setContext(testProfileRunRequestOptions.getContext());
- }
- return new PollerFlux<>(Duration.ofSeconds(5),
- (context) -> createOrUpdateTestProfileRunWithResponse(testProfileRunId, body, testProfileRunRequestOptions)
- .flatMap(FluxUtil::toMono),
- (context) -> getTestRunWithResponse(testProfileRunId, defaultRequestOptions).flatMap(FluxUtil::toMono)
- .flatMap(testRunBinary -> PollingUtils
- .getPollResponseMono(() -> PollingUtils.getTestRunStatus(testRunBinary))),
- (activationResponse, context) -> stopTestRunWithResponse(testProfileRunId, defaultRequestOptions)
- .flatMap(FluxUtil::toMono),
- (context) -> getTestRunWithResponse(testProfileRunId, defaultRequestOptions).flatMap(FluxUtil::toMono));
- }
-
- /**
- * Starts a test profile run and polls the status of the test profile run.
- *
- * @param testProfileRunId Unique name for the test profile run, must contain only lower-case alphabetic, numeric,
- * underscore
- * or hyphen characters.
- * @param body Test Profile Run model.
- * @throws ResourceNotFoundException when a test profile with {@code testProfileId} doesn't exist.
- * @return A {@link PollerFlux} to poll on and retrieve the test run
- * status(ACCEPTED/NOTSTARTED/EXECUTING/DONE/CANCELLING/CANCELLED/FAILED).
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginTestProfileRun(String testProfileRunId,
- TestProfileRun body) {
- return new PollerFlux<>(Duration.ofSeconds(5),
- (context) -> createOrUpdateTestProfileRun(testProfileRunId, body),
- (context) -> getTestProfileRun(testProfileRunId).flatMap(testProfileRunBinary -> PollingUtils
- .getPollResponseMono(() -> PollingUtils.getTestProfileRunStatus(testProfileRunBinary))),
- (activationResponse, context) -> stopTestProfileRun(testProfileRunId),
- (context) -> getTestProfileRun(testProfileRunId));
+ return this.serviceClient.createOrUpdateTestRunWithResponseAsync(testRunId, body, requestOptions);
}
/**
* Add an app component to a test run.
- *
+ *
* Add an app component to a test run by providing the resource Id, name and type.
* Request Body Schema
*
@@ -238,160 +443,16 @@ public PollerFlux beginTestProfileRun(String tes
* subscriptionId: String (Optional)
* kind: String (Optional)
* }
- * }
- * testRunId: String (Optional)
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * Response Body Schema
- *
- *
- * {@code
- * {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
- * }
- * }
- * testRunId: String (Optional)
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run app component along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateAppComponentsWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateAppComponentsWithResponseAsync(testRunId, body, requestOptions);
- }
-
- /**
- * List the metric values for a load test run.
- *
- *
- * Query Parameters
- *
- *
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * aggregation
- * String
- * No
- * The aggregation
- *
- *
- * interval
- * String
- * No
- * The interval (i.e. timegrain) of the query. Allowed values: "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
- *
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Request Body Schema
- *
- *
- * {@code
- * {
- * filters (Optional): [
- * (Optional){
- * name: String (Optional)
- * values (Optional): [
- * String (Optional)
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- *
- * Response Body Schema
- *
- *
- * {@code
- * {
- * value (Optional): [
- * (Optional){
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: String (Optional)
- * }
- * ]
- * }
- * ]
- * nextLink: String (Optional)
+ * }
+ * testRunId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
* }
* }
*
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param metricName Metric name.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param timespan The timespan of the query. It is a string with the following format
- * 'startDateTime_ISO/endDateTime_ISO'.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the response to a metrics query as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listMetrics(String testRunId, String metricName, String metricNamespace,
- String timespan, RequestOptions requestOptions) {
- if (requestOptions == null) {
- requestOptions = new RequestOptions();
- }
- // Content-Type header required even though body can be null
- requestOptions.setHeader(HttpHeaderName.CONTENT_TYPE, "application/json");
- return this.serviceClient.listMetricsAsync(testRunId, metricName, metricNamespace, timespan, requestOptions);
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test
- * run.
+ *
* Response Body Schema
*
*
@@ -416,25 +477,52 @@ public PagedFlux listMetrics(String testRunId, String metricName, St
* }
* }
*
- *
+ *
* @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param body App Component model.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated app component (collection of azure resources) for the given test
- * run along with {@link Response} on successful completion of {@link Mono}.
+ * @return test run app component along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getAppComponentsWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getAppComponentsWithResponseAsync(testRunId, requestOptions);
+ public Mono> createOrUpdateAppComponentsWithResponse(String testRunId, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createOrUpdateAppComponentsWithResponseAsync(testRunId, body, requestOptions);
}
/**
- * Get associated server metrics configuration for the given test run.
+ * Configure server metrics for a test run.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * testRunId: String (Optional)
+ * metrics (Optional): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
+ * }
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
* Response Body Schema
*
*
@@ -460,264 +548,109 @@ public Mono> getAppComponentsWithResponse(String testRunId,
* }
* }
*
- *
+ *
* @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated server metrics configuration for the given test run along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return test run server metrics configuration along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServerMetricsConfigWithResponse(String testRunId,
+ public Mono> createOrUpdateServerMetricsConfigWithResponse(String testRunId, BinaryData body,
RequestOptions requestOptions) {
- return this.serviceClient.getServerMetricsConfigWithResponseAsync(testRunId, requestOptions);
+ return this.serviceClient.createOrUpdateServerMetricsConfigWithResponseAsync(testRunId, body, requestOptions);
}
/**
- * Create and start a new test run with the given name.
- *
- *
- * Query Parameters
- *
- *
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * oldTestRunId
- * String
- * No
- * Existing test run identifier that should be rerun, if this is provided, the test will run with the JMX file,
- * configuration and app components from the existing test run. You can override the configuration values for new
- * test run in the request body.
- *
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Request Body Schema
- *
- *
- * {@code
- * {
- * passFailCriteria (Optional): {
- * passFailMetrics (Optional): {
- * String (Optional): {
- * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p90/p95/p99/min/max) (Optional)
- * condition: String (Optional)
- * requestName: String (Optional)
- * value: Double (Optional)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
- * }
- * }
- * secrets (Optional): {
- * String (Optional): {
- * value: String (Optional)
- * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
- * }
- * }
- * certificate (Optional): {
- * value: String (Optional)
- * type: String(AKV_CERT_URI) (Optional)
- * name: String (Optional)
- * }
- * environmentVariables (Optional): {
- * String: String (Optional)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (Optional)
- * }
- * ]
- * testRunStatistics (Optional): {
- * String (Optional): {
- * transaction: String (Optional)
- * sampleCount: Double (Optional)
- * errorCount: Double (Optional)
- * errorPct: Double (Optional)
- * meanResTime: Double (Optional)
- * medianResTime: Double (Optional)
- * maxResTime: Double (Optional)
- * minResTime: Double (Optional)
- * pct1ResTime: Double (Optional)
- * pct2ResTime: Double (Optional)
- * pct3ResTime: Double (Optional)
- * throughput: Double (Optional)
- * receivedKBytesPerSec: Double (Optional)
- * sentKBytesPerSec: Double (Optional)
- * }
- * }
- * loadTestConfiguration (Optional): {
- * engineInstances: Integer (Optional)
- * splitAllCSVs: Boolean (Optional)
- * quickStartTest: Boolean (Optional)
- * optionalLoadTestConfig (Optional): {
- * endpointUrl: String (Optional)
- * virtualUsers: Integer (Optional)
- * rampUpTime: Integer (Optional)
- * duration: Integer (Optional)
- * }
- * }
- * testArtifacts (Optional): {
- * inputArtifacts (Optional): {
- * configFileInfo (Optional): {
- * url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
- * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
- * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
- * additionalFileInfo (Optional): [
- * (recursive schema, see above)
- * ]
- * }
- * outputArtifacts (Optional): {
- * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
- * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
- * }
- * }
- * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
- * virtualUsers: Integer (Optional)
- * testRunId: String (Optional)
- * displayName: String (Optional)
- * testId: String (Optional)
- * description: String (Optional)
- * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
- * startDateTime: OffsetDateTime (Optional)
- * endDateTime: OffsetDateTime (Optional)
- * executedDateTime: OffsetDateTime (Optional)
- * portalUrl: String (Optional)
- * duration: Long (Optional)
- * subnetId: String (Optional)
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- *
- * Response Body Schema
- *
+ * Delete an existing load test run.
+ *
+ * Delete an existing load test run by providing the testRunId.
+ *
+ * @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
+ return this.serviceClient.deleteTestRunWithResponseAsync(testRunId, requestOptions);
+ }
+
+ /**
+ * Get associated app component (collection of azure resources) for the given test
+ * run.
+ * Response Body Schema
+ *
*
- * {@code
- * {
- * passFailCriteria (Optional): {
- * passFailMetrics (Optional): {
- * String (Optional): {
- * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p90/p95/p99/min/max) (Optional)
- * condition: String (Optional)
- * requestName: String (Optional)
- * value: Double (Optional)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
- * }
- * }
- * secrets (Optional): {
- * String (Optional): {
- * value: String (Optional)
- * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
- * }
- * }
- * certificate (Optional): {
- * value: String (Optional)
- * type: String(AKV_CERT_URI) (Optional)
- * name: String (Optional)
- * }
- * environmentVariables (Optional): {
- * String: String (Optional)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (Optional)
- * }
- * ]
- * testRunStatistics (Optional): {
- * String (Optional): {
- * transaction: String (Optional)
- * sampleCount: Double (Optional)
- * errorCount: Double (Optional)
- * errorPct: Double (Optional)
- * meanResTime: Double (Optional)
- * medianResTime: Double (Optional)
- * maxResTime: Double (Optional)
- * minResTime: Double (Optional)
- * pct1ResTime: Double (Optional)
- * pct2ResTime: Double (Optional)
- * pct3ResTime: Double (Optional)
- * throughput: Double (Optional)
- * receivedKBytesPerSec: Double (Optional)
- * sentKBytesPerSec: Double (Optional)
- * }
- * }
- * loadTestConfiguration (Optional): {
- * engineInstances: Integer (Optional)
- * splitAllCSVs: Boolean (Optional)
- * quickStartTest: Boolean (Optional)
- * optionalLoadTestConfig (Optional): {
- * endpointUrl: String (Optional)
- * virtualUsers: Integer (Optional)
- * rampUpTime: Integer (Optional)
- * duration: Integer (Optional)
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
* }
* }
- * testArtifacts (Optional): {
- * inputArtifacts (Optional): {
- * configFileInfo (Optional): {
- * url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
- * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
- * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
- * additionalFileInfo (Optional): [
- * (recursive schema, see above)
- * ]
- * }
- * outputArtifacts (Optional): {
- * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
- * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * testRunId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return associated app component (collection of azure resources) for the given test
+ * run along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getAppComponentsWithResponse(String testRunId, RequestOptions requestOptions) {
+ return this.serviceClient.getAppComponentsWithResponseAsync(testRunId, requestOptions);
+ }
+
+ /**
+ * Get associated server metrics configuration for the given test run.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * testRunId: String (Optional)
+ * metrics (Optional): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
- * virtualUsers: Integer (Optional)
- * testRunId: String (Optional)
- * displayName: String (Optional)
- * testId: String (Optional)
- * description: String (Optional)
- * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
- * startDateTime: OffsetDateTime (Optional)
- * endDateTime: OffsetDateTime (Optional)
- * executedDateTime: OffsetDateTime (Optional)
- * portalUrl: String (Optional)
- * duration: Long (Optional)
- * subnetId: String (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -725,21 +658,22 @@ public Mono> getServerMetricsConfigWithResponse(String test
* }
* }
*
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param body Load test run model.
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return load test run model along with {@link Response} on successful completion of {@link Mono}.
+ * @return associated server metrics configuration for the given test run along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
+ @Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateTestRunWithResponse(String testRunId, BinaryData body,
+ public Mono> getServerMetricsConfigWithResponse(String testRunId,
RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateTestRunWithResponseAsync(testRunId, body, requestOptions);
+ return this.serviceClient.getServerMetricsConfigWithResponseAsync(testRunId, requestOptions);
}
/**
@@ -781,6 +715,7 @@ Mono> createOrUpdateTestRunWithResponse(String testRunId, B
* autoStopDisabled: Boolean (Optional)
* errorRate: Double (Optional)
* errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
* String (Required): {
@@ -798,7 +733,13 @@ Mono> createOrUpdateTestRunWithResponse(String testRunId, B
* }
* errorDetails (Optional): [
* (Optional){
+ * code: String (Optional)
* message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
* }
* ]
* testRunStatistics (Optional): {
@@ -852,7 +793,7 @@ Mono> createOrUpdateTestRunWithResponse(String testRunId, B
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -892,7 +833,11 @@ Mono> createOrUpdateTestRunWithResponse(String testRunId, B
* requestDataLevel: String(NONE/ERRORS) (Optional)
* debugLogsEnabled: Boolean (Optional)
* publicIPDisabled: Boolean (Optional)
- * createdByType: String(User/ScheduledTrigger) (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -900,7 +845,7 @@ Mono> createOrUpdateTestRunWithResponse(String testRunId, B
* }
* }
*
- *
+ *
* @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -917,57 +862,239 @@ public Mono> getTestRunWithResponse(String testRunId, Reque
}
/**
- * Delete an existing load test run.
- *
- * Delete an existing load test run by providing the testRunId.
- *
+ * Get test run file by file name.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
* @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param fileName Name of the file.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return test run file by file name along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> deleteTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.deleteTestRunWithResponseAsync(testRunId, requestOptions);
+ public Mono> getTestRunFileWithResponse(String testRunId, String fileName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getTestRunFileWithResponseAsync(testRunId, fileName, requestOptions);
}
/**
- * Get test run file by file name.
+ * List the dimension values for the given metric dimension name.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * interval String No The interval (i.e. timegrain) of the query. Allowed values:
+ * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * String
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param name Dimension name.
+ * @param metricname Metric name.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return metrics dimension values as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listMetricDimensionValues(String testRunId, String name, String metricname,
+ String metricNamespace, String timespan, RequestOptions requestOptions) {
+ return this.serviceClient.listMetricDimensionValuesAsync(testRunId, name, metricname, metricNamespace, timespan,
+ requestOptions);
+ }
+
+ /**
+ * List the metric definitions for a load test run.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * dimensions (Optional): [
+ * (Optional){
+ * description: String (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * description: String (Optional)
+ * name: String (Optional)
+ * namespace: String (Optional)
+ * primaryAggregationType: String(Average/Count/None/Total/Percentile75/Percentile90/Percentile95/Percentile96/Percentile97/Percentile98/Percentile99/Percentile999/Percentile9999) (Optional)
+ * supportedAggregationTypes (Optional): [
+ * String (Optional)
+ * ]
+ * unit: String(NotSpecified/Percent/Count/Seconds/Milliseconds/Bytes/BytesPerSecond/CountPerSecond) (Optional)
+ * metricAvailabilities (Optional): [
+ * (Optional){
+ * timeGrain: String(PT5S/PT10S/PT1M/PT5M/PT1H) (Optional)
+ * }
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents collection of metric definitions along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getMetricDefinitionsWithResponse(String testRunId, String metricNamespace,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getMetricDefinitionsWithResponseAsync(testRunId, metricNamespace, requestOptions);
+ }
+
+ /**
+ * List the metric namespaces for a load test run.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * description: String (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents collection of metric namespaces along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getMetricNamespacesWithResponse(String testRunId, RequestOptions requestOptions) {
+ return this.serviceClient.getMetricNamespacesWithResponseAsync(testRunId, requestOptions);
+ }
+
+ /**
+ * List the metric values for a load test run.
+ * Query Parameters
+ *
+ * Query Parameters
+ * Name Type Required Description
+ * aggregation String No The aggregation
+ * interval String No The interval (i.e. timegrain) of the query. Allowed values:
+ * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Header Parameters
+ *
+ * Header Parameters
+ * Name Type Required Description
+ * Content-Type String No The content type. Allowed values:
+ * "application/json".
+ *
+ * You can add these to a request with {@link RequestOptions#addHeader}
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * filters (Optional): [
+ * (Optional){
+ * name: String (Optional)
+ * values (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
* Response Body Schema
*
*
* {@code
* {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
+ * data (Optional): [
+ * (Optional){
+ * timestamp: OffsetDateTime (Optional)
+ * value: Double (Optional)
+ * }
+ * ]
+ * dimensionValues (Optional): [
+ * (Optional){
+ * name: String (Optional)
+ * value: String (Optional)
+ * }
+ * ]
* }
* }
*
- *
- * @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
- * @param fileName Name of the file.
+ * @param metricname Metric name.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run file by file name along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response to a metrics query as paginated response with {@link PagedFlux}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestRunFileWithResponse(String testRunId, String fileName,
- RequestOptions requestOptions) {
- return this.serviceClient.getTestRunFileWithResponseAsync(testRunId, fileName, requestOptions);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listMetrics(String testRunId, String metricname, String metricNamespace,
+ String timespan, RequestOptions requestOptions) {
+ return this.serviceClient.listMetricsAsync(testRunId, metricname, metricNamespace, timespan, requestOptions);
}
/**
@@ -992,6 +1119,8 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* maxpagesize Integer No Number of results in response.
* createdByTypes List<String> No Comma separated list of type of entities
* that have created the test run. In the form of "," separated string.
+ * testIds List<String> No Comma-separated list of test IDs. If you are using
+ * testIds, do not send a value for testId. In the form of "," separated string.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
* Response Body Schema
@@ -1031,6 +1160,7 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* autoStopDisabled: Boolean (Optional)
* errorRate: Double (Optional)
* errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
* String (Required): {
@@ -1048,7 +1178,13 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* }
* errorDetails (Optional): [
* (Optional){
+ * code: String (Optional)
* message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
* }
* ]
* testRunStatistics (Optional): {
@@ -1102,7 +1238,7 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* configFileInfo (Optional): {
* fileName: String (Required)
* url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -1142,7 +1278,11 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* requestDataLevel: String(NONE/ERRORS) (Optional)
* debugLogsEnabled: Boolean (Optional)
* publicIPDisabled: Boolean (Optional)
- * createdByType: String(User/ScheduledTrigger) (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -1150,7 +1290,7 @@ public Mono> getTestRunFileWithResponse(String testRunId, S
* }
* }
*
- *
+ *
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1203,6 +1343,7 @@ public PagedFluxResponse Body Schema
- * - *
- * {@code
- * {
- * value (Required): [
- * (Required){
- * description: String (Optional)
- * name: String (Optional)
- * }
- * ]
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return represents collection of metric namespaces along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoResponse Body Schema
- * - *
- * {@code
- * {
- * value (Required): [
- * (Required){
- * dimensions (Optional): [
- * (Optional){
- * description: String (Optional)
- * name: String (Optional)
- * }
- * ]
- * description: String (Optional)
- * name: String (Optional)
- * namespace: String (Optional)
- * primaryAggregationType: String(Average/Count/None/Total/Percentile75/Percentile90/Percentile95/Percentile96/Percentile97/Percentile98/Percentile99/Percentile999/Percentile9999) (Optional)
- * supportedAggregationTypes (Optional): [
- * String (Optional)
- * ]
- * unit: String(NotSpecified/Percent/Count/Seconds/Milliseconds/Bytes/BytesPerSecond/CountPerSecond) (Optional)
- * metricAvailabilities (Optional): [
- * (Optional){
- * timeGrain: String(PT5S/PT10S/PT1M/PT5M/PT1H) (Optional)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return represents collection of metric definitions along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoRequest Body Schema
* @@ -1453,7 +1509,13 @@ public MonoResponse Body Schema
* @@ -1589,7 +1657,13 @@ public MonoQuery Parameters
*| Name | Type | Required | Description |
|---|---|---|---|
| interval | String | No | The interval (i.e. timegrain) of the query. Allowed values: - * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H". |
Response Body Schema
* - *
- * {@code
- * String
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param name Dimension name.
- * @param metricname Metric name.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param timespan The timespan of the query. It is a string with the following format
- * 'startDateTime_ISO/endDateTime_ISO'.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return metrics dimension values as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFluxRequest Body Schema
- * - *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * Response Body Schema
+ * Initializes an instance of LoadTestRunClient class. * - *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body Server metric configuration model.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run server metrics configuration along with {@link Response}.
+ * @param serviceClient the service client implementation.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ResponseQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| oldTestRunId | String | No | Existing test run identifier that should be rerun, if this + * is provided, the + * test will run with the JMX file, configuration and app components from the + * existing test run. You can override the configuration values for new test run + * in the request body. |
Request Body Schema
* *
* {@code
* {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
+ * testRunId: String (Required)
+ * passFailCriteria (Optional): {
+ * passFailMetrics (Optional): {
+ * String (Required): {
+ * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
+ * condition: String (Optional)
+ * requestName: String (Optional)
+ * value: Double (Optional)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
* }
* }
- * testRunId: String (Optional)
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * Response Body Schema
- * - *
- * {@code
- * {
- * components (Optional, Required on create): {
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
+ * }
+ * secrets (Optional): {
* String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
+ * value: String (Optional)
+ * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
* }
* }
- * testRunId: String (Optional)
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param body App Component model.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run app component along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response- * Query Parameters - *
- *| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| aggregation | - *String | - *No | - *The aggregation | - *
| interval | - *String | - *No | - *The interval (i.e. timegrain) of the query. Allowed values: "PT5S", "PT10S", "PT1M", "PT5M", "PT1H". | - *
- * Header Parameters - *
- *| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| Content-Type | - *String | - *No | - *The content type. Allowed values: "application/json". | - *
- * Request Body Schema - *
- * - *
- * {@code
- * {
- * filters (Optional): [
+ * certificate (Optional): {
+ * value: String (Optional)
+ * type: String(AKV_CERT_URI) (Optional)
+ * name: String (Optional)
+ * }
+ * environmentVariables (Optional): {
+ * String: String (Required)
+ * }
+ * errorDetails (Optional): [
* (Optional){
- * name: String (Optional)
- * values (Optional): [
- * String (Optional)
- * ]
+ * code: String (Optional)
+ * message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
* }
* ]
- * }
- * }
- *
- *
- * - * Response Body Schema - *
- * - *
- * {@code
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
+ * testRunStatistics (Optional): {
+ * String (Required): {
+ * transaction: String (Optional)
+ * sampleCount: Double (Optional)
+ * errorCount: Double (Optional)
+ * errorPct: Double (Optional)
+ * meanResTime: Double (Optional)
+ * medianResTime: Double (Optional)
+ * maxResTime: Double (Optional)
+ * minResTime: Double (Optional)
+ * pct1ResTime: Double (Optional)
+ * pct2ResTime: Double (Optional)
+ * pct3ResTime: Double (Optional)
+ * pct75ResTime: Double (Optional)
+ * pct96ResTime: Double (Optional)
+ * pct97ResTime: Double (Optional)
+ * pct98ResTime: Double (Optional)
+ * pct999ResTime: Double (Optional)
+ * pct9999ResTime: Double (Optional)
+ * throughput: Double (Optional)
+ * receivedKBytesPerSec: Double (Optional)
+ * sentKBytesPerSec: Double (Optional)
* }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: String (Optional)
+ * }
+ * regionalStatistics (Optional): {
+ * String (Required): (recursive schema, see String above)
+ * }
+ * loadTestConfiguration (Optional): {
+ * engineInstances: Integer (Optional)
+ * splitAllCSVs: Boolean (Optional)
+ * quickStartTest: Boolean (Optional)
+ * optionalLoadTestConfig (Optional): {
+ * endpointUrl: String (Optional)
+ * requestsPerSecond: Integer (Optional)
+ * maxResponseTimeInMs: Integer (Optional)
+ * virtualUsers: Integer (Optional)
+ * rampUpTime: Integer (Optional)
+ * duration: Long (Optional)
* }
- * ]
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param metricName Metric name.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param timespan The timespan of the query. It is a string with the following format
- * 'startDateTime_ISO/endDateTime_ISO'.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the response to a metrics query as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterableResponse Body Schema
- * - *
- * {@code
- * {
- * components (Optional, Required on create): {
- * String (Required): {
- * resourceId: String (Required)
- * resourceName: String (Optional, Required on create)
- * resourceType: String (Optional, Required on create)
- * displayName: String (Optional)
- * resourceGroup: String (Optional)
- * subscriptionId: String (Optional)
- * kind: String (Optional)
+ * regionalLoadTestConfig (Optional): [
+ * (Optional){
+ * engineInstances: int (Optional, Required on create)
+ * region: String (Optional, Required on create)
+ * }
+ * ]
+ * }
+ * testArtifacts (Optional): {
+ * inputArtifacts (Optional): {
+ * configFileInfo (Optional): {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
+ * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
+ * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
+ * urlTestConfigFileInfo (Optional): (recursive schema, see urlTestConfigFileInfo above)
+ * additionalFileInfo (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * outputArtifacts (Optional): {
+ * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
+ * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * artifactsContainerInfo (Optional): {
+ * url: String (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * }
+ * reportFileInfo (Optional): (recursive schema, see reportFileInfo above)
* }
* }
- * testRunId: String (Optional)
+ * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
+ * virtualUsers: Integer (Optional)
+ * displayName: String (Optional)
+ * testId: String (Optional)
+ * description: String (Optional)
+ * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * executedDateTime: OffsetDateTime (Optional)
+ * portalUrl: String (Optional)
+ * duration: Long (Optional)
+ * virtualUserHours: Double (Optional)
+ * subnetId: String (Optional)
+ * kind: String(URL/JMX/Locust) (Optional)
+ * requestDataLevel: String(NONE/ERRORS) (Optional)
+ * debugLogsEnabled: Boolean (Optional)
+ * publicIPDisabled: Boolean (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -367,103 +233,18 @@ public PagedIterable listMetrics(String testRunId, String metricName
* }
* }
*
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated app component (collection of azure resources) for the given test
- * run along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ResponseResponse Body Schema
* *
* {@code
* {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * id: String (Optional)
- * resourceId: String (Optional, Required on create)
- * metricNamespace: String (Optional, Required on create)
- * displayDescription: String (Optional)
- * name: String (Optional, Required on create)
- * aggregation: String (Optional, Required on create)
- * unit: String (Optional)
- * resourceType: String (Optional, Required on create)
- * }
- * }
- * createdDateTime: OffsetDateTime (Optional)
- * createdBy: String (Optional)
- * lastModifiedDateTime: OffsetDateTime (Optional)
- * lastModifiedBy: String (Optional)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return associated server metrics configuration for the given test run along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response- * Query Parameters - * - *
| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| oldTestRunId | - *String | - *No | - *Existing test run identifier that should be rerun, if this is provided, the test will run with the JMX file, - * configuration and app components from the existing test run. You can override the configuration values for new - * test run in the request body. | - *
- * Request Body Schema - * - *
- * {@code
- * {
+ * testRunId: String (Required)
* passFailCriteria (Optional): {
* passFailMetrics (Optional): {
- * String (Optional): {
+ * String (Required): {
* clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p90/p95/p99/min/max) (Optional)
+ * aggregate: String(count/percentage/avg/p50/p75/p90/p95/p96/p97/p98/p99/p99.9/p99.99/min/max) (Optional)
* condition: String (Optional)
* requestName: String (Optional)
* value: Double (Optional)
@@ -472,9 +253,28 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* result: String(passed/undetermined/failed) (Optional)
* }
* }
+ * passFailServerMetrics (Optional): {
+ * String (Required): {
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * metricName: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * condition: String (Optional, Required on create)
+ * value: double (Optional, Required on create)
+ * action: String(continue/stop) (Optional)
+ * actualValue: Double (Optional)
+ * result: String(passed/undetermined/failed) (Optional)
+ * }
+ * }
+ * }
+ * autoStopCriteria (Optional): {
+ * autoStopDisabled: Boolean (Optional)
+ * errorRate: Double (Optional)
+ * errorRateTimeWindowInSeconds: Long (Optional)
+ * maximumVirtualUsersPerEngine: Integer (Optional)
* }
* secrets (Optional): {
- * String (Optional): {
+ * String (Required): {
* value: String (Optional)
* type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
* }
@@ -485,15 +285,21 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* name: String (Optional)
* }
* environmentVariables (Optional): {
- * String: String (Optional)
+ * String: String (Required)
* }
* errorDetails (Optional): [
* (Optional){
+ * code: String (Optional)
* message: String (Optional)
+ * properties (Optional): {
+ * String (Required): [
+ * String (Required)
+ * ]
+ * }
* }
* ]
* testRunStatistics (Optional): {
- * String (Optional): {
+ * String (Required): {
* transaction: String (Optional)
* sampleCount: Double (Optional)
* errorCount: Double (Optional)
@@ -505,28 +311,45 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* pct1ResTime: Double (Optional)
* pct2ResTime: Double (Optional)
* pct3ResTime: Double (Optional)
+ * pct75ResTime: Double (Optional)
+ * pct96ResTime: Double (Optional)
+ * pct97ResTime: Double (Optional)
+ * pct98ResTime: Double (Optional)
+ * pct999ResTime: Double (Optional)
+ * pct9999ResTime: Double (Optional)
* throughput: Double (Optional)
* receivedKBytesPerSec: Double (Optional)
* sentKBytesPerSec: Double (Optional)
* }
* }
+ * regionalStatistics (Optional): {
+ * String (Required): (recursive schema, see String above)
+ * }
* loadTestConfiguration (Optional): {
* engineInstances: Integer (Optional)
* splitAllCSVs: Boolean (Optional)
* quickStartTest: Boolean (Optional)
* optionalLoadTestConfig (Optional): {
* endpointUrl: String (Optional)
+ * requestsPerSecond: Integer (Optional)
+ * maxResponseTimeInMs: Integer (Optional)
* virtualUsers: Integer (Optional)
* rampUpTime: Integer (Optional)
- * duration: Integer (Optional)
+ * duration: Long (Optional)
* }
+ * regionalLoadTestConfig (Optional): [
+ * (Optional){
+ * engineInstances: int (Optional, Required on create)
+ * region: String (Optional, Required on create)
+ * }
+ * ]
* }
* testArtifacts (Optional): {
* inputArtifacts (Optional): {
* configFileInfo (Optional): {
+ * fileName: String (Required)
* url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
* expireDateTime: OffsetDateTime (Optional)
* validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
* validationFailureDetails: String (Optional)
@@ -534,6 +357,7 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
* userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
* inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
+ * urlTestConfigFileInfo (Optional): (recursive schema, see urlTestConfigFileInfo above)
* additionalFileInfo (Optional): [
* (recursive schema, see above)
* ]
@@ -541,11 +365,15 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* outputArtifacts (Optional): {
* resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
* logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * artifactsContainerInfo (Optional): {
+ * url: String (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * }
+ * reportFileInfo (Optional): (recursive schema, see reportFileInfo above)
* }
* }
* testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
* virtualUsers: Integer (Optional)
- * testRunId: String (Optional)
* displayName: String (Optional)
* testId: String (Optional)
* description: String (Optional)
@@ -555,7 +383,17 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* executedDateTime: OffsetDateTime (Optional)
* portalUrl: String (Optional)
* duration: Long (Optional)
+ * virtualUserHours: Double (Optional)
* subnetId: String (Optional)
+ * kind: String(URL/JMX/Locust) (Optional)
+ * requestDataLevel: String(NONE/ERRORS) (Optional)
+ * debugLogsEnabled: Boolean (Optional)
+ * publicIPDisabled: Boolean (Optional)
+ * createdByType: String(User/ScheduledTrigger/AzurePipelines/GitHubWorkflows) (Optional)
+ * createdByUri: String (Optional)
+ * estimatedVirtualUserHours: Double (Optional)
+ * executionStartDateTime: OffsetDateTime (Optional)
+ * executionEndDateTime: OffsetDateTime (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -563,110 +401,250 @@ public Response getServerMetricsConfigWithResponse(String testRunId,
* }
* }
*
- *
- *
- * Response Body Schema
- *
+ *
+ * @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return load test run model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Request Body Schema Response Body Schema Request Body Schema Response Body Schema Response Body Schema Response Body Schema Response Body Schema Query Parameters Response Body Schema Response Body Schema Response Body Schema Query Parameters Header Parameters Request Body Schema Response Body Schema
* {@code
* {
- * passFailCriteria (Optional): {
- * passFailMetrics (Optional): {
- * String (Optional): {
- * clientMetric: String(response_time_ms/latency/error/requests/requests_per_sec) (Optional)
- * aggregate: String(count/percentage/avg/p50/p90/p95/p99/min/max) (Optional)
- * condition: String (Optional)
- * requestName: String (Optional)
- * value: Double (Optional)
- * action: String(continue/stop) (Optional)
- * actualValue: Double (Optional)
- * result: String(passed/undetermined/failed) (Optional)
- * }
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
* }
* }
- * secrets (Optional): {
- * String (Optional): {
- * value: String (Optional)
- * type: String(AKV_SECRET_URI/SECRET_VALUE) (Optional)
+ * testRunId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ *
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
* }
* }
- * certificate (Optional): {
- * value: String (Optional)
- * type: String(AKV_CERT_URI) (Optional)
- * name: String (Optional)
- * }
- * environmentVariables (Optional): {
- * String: String (Optional)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (Optional)
+ * testRunId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body App Component model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test run app component along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ * {@code
+ * {
+ * testRunId: String (Optional)
+ * metrics (Optional): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
- * ]
- * testRunStatistics (Optional): {
- * String (Optional): {
- * transaction: String (Optional)
- * sampleCount: Double (Optional)
- * errorCount: Double (Optional)
- * errorPct: Double (Optional)
- * meanResTime: Double (Optional)
- * medianResTime: Double (Optional)
- * maxResTime: Double (Optional)
- * minResTime: Double (Optional)
- * pct1ResTime: Double (Optional)
- * pct2ResTime: Double (Optional)
- * pct3ResTime: Double (Optional)
- * throughput: Double (Optional)
- * receivedKBytesPerSec: Double (Optional)
- * sentKBytesPerSec: Double (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ *
+ * {@code
+ * {
+ * testRunId: String (Optional)
+ * metrics (Optional): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * loadTestConfiguration (Optional): {
- * engineInstances: Integer (Optional)
- * splitAllCSVs: Boolean (Optional)
- * quickStartTest: Boolean (Optional)
- * optionalLoadTestConfig (Optional): {
- * endpointUrl: String (Optional)
- * virtualUsers: Integer (Optional)
- * rampUpTime: Integer (Optional)
- * duration: Integer (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Server metric configuration model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return test run server metrics configuration along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ * {@code
+ * {
+ * components (Optional, Required on create): {
+ * String (Required): {
+ * resourceId: String (Required)
+ * resourceName: String (Optional, Required on create)
+ * resourceType: String (Optional, Required on create)
+ * displayName: String (Optional)
+ * resourceGroup: String (Optional)
+ * subscriptionId: String (Optional)
+ * kind: String (Optional)
* }
* }
- * testArtifacts (Optional): {
- * inputArtifacts (Optional): {
- * configFileInfo (Optional): {
- * url: String (Optional)
- * fileName: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
- * }
- * testScriptFileInfo (Optional): (recursive schema, see testScriptFileInfo above)
- * userPropFileInfo (Optional): (recursive schema, see userPropFileInfo above)
- * inputArtifactsZipFileInfo (Optional): (recursive schema, see inputArtifactsZipFileInfo above)
- * additionalFileInfo (Optional): [
- * (recursive schema, see above)
- * ]
- * }
- * outputArtifacts (Optional): {
- * resultFileInfo (Optional): (recursive schema, see resultFileInfo above)
- * logsFileInfo (Optional): (recursive schema, see logsFileInfo above)
+ * testRunId: String (Optional)
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return associated app component (collection of azure resources) for the given test
+ * run along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ * {@code
+ * {
+ * testRunId: String (Optional)
+ * metrics (Optional): {
+ * String (Required): {
+ * id: String (Optional)
+ * resourceId: String (Optional, Required on create)
+ * metricNamespace: String (Optional, Required on create)
+ * displayDescription: String (Optional)
+ * name: String (Optional, Required on create)
+ * aggregation: String (Optional, Required on create)
+ * unit: String (Optional)
+ * resourceType: String (Optional, Required on create)
* }
* }
- * testResult: String(PASSED/NOT_APPLICABLE/FAILED) (Optional)
- * virtualUsers: Integer (Optional)
- * testRunId: String (Optional)
- * displayName: String (Optional)
- * testId: String (Optional)
- * description: String (Optional)
- * status: String(ACCEPTED/NOTSTARTED/PROVISIONING/PROVISIONED/CONFIGURING/CONFIGURED/EXECUTING/EXECUTED/DEPROVISIONING/DEPROVISIONED/DONE/CANCELLING/CANCELLED/FAILED/VALIDATION_SUCCESS/VALIDATION_FAILURE) (Optional)
- * startDateTime: OffsetDateTime (Optional)
- * endDateTime: OffsetDateTime (Optional)
- * executedDateTime: OffsetDateTime (Optional)
- * portalUrl: String (Optional)
- * duration: Long (Optional)
- * subnetId: String (Optional)
* createdDateTime: OffsetDateTime (Optional)
* createdBy: String (Optional)
* lastModifiedDateTime: OffsetDateTime (Optional)
@@ -674,21 +652,20 @@ public Response
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param body Load test run model.
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return load test run model along with {@link Response}.
+ * @return associated server metrics configuration for the given test run along with {@link Response}.
*/
+ @Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Response
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
* @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
+ * @param fileName Name of the file.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the {@link Response}.
+ * @return test run file by file name along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Name Type Required Description
+ * interval String No The interval (i.e. timegrain) of the query. Allowed values:
+ * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
+ * {@code
+ * String
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param name Dimension name.
+ * @param metricname Metric name.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return metrics dimension values as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * dimensions (Optional): [
+ * (Optional){
+ * description: String (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * description: String (Optional)
+ * name: String (Optional)
+ * namespace: String (Optional)
+ * primaryAggregationType: String(Average/Count/None/Total/Percentile75/Percentile90/Percentile95/Percentile96/Percentile97/Percentile98/Percentile99/Percentile999/Percentile9999) (Optional)
+ * supportedAggregationTypes (Optional): [
+ * String (Optional)
+ * ]
+ * unit: String(NotSpecified/Percent/Count/Seconds/Milliseconds/Bytes/BytesPerSecond/CountPerSecond) (Optional)
+ * metricAvailabilities (Optional): [
+ * (Optional){
+ * timeGrain: String(PT5S/PT10S/PT1M/PT5M/PT1H) (Optional)
+ * }
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents collection of metric definitions along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * description: String (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents collection of metric namespaces along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Name Type Required Description
+ * aggregation String No The aggregation
+ * interval String No The interval (i.e. timegrain) of the query. Allowed values:
+ * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
+ *
+ * You can add these to a request with {@link RequestOptions#addHeader}
+ *
+ * Name Type Required Description
+ * Content-Type String No The content type. Allowed values:
+ * "application/json".
+ * {@code
+ * {
+ * filters (Optional): [
+ * (Optional){
+ * name: String (Optional)
+ * values (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
*
* {@code
* {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
+ * data (Optional): [
+ * (Optional){
+ * timestamp: OffsetDateTime (Optional)
+ * value: Double (Optional)
+ * }
+ * ]
+ * dimensionValues (Optional): [
+ * (Optional){
+ * name: String (Optional)
+ * value: String (Optional)
+ * }
+ * ]
* }
* }
*
- *
- * @param testRunId Unique test run identifier for the load test run, must contain only lower-case alphabetic,
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
* numeric, underscore or hyphen characters.
- * @param fileName Name of the file.
+ * @param metricname Metric name.
+ * @param metricNamespace Metric namespace to query metric definitions for.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return test run file by file name along with {@link Response}.
+ * @return the response to a metrics query as paginated response with {@link PagedIterable}.
*/
@Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response
* maxpagesize Integer No Number of results in response.
+ * createdByTypes List<String> No Comma separated list of type of entities
* that have created the test run. In the form of "," separated string.
* testIds List<String> No Comma-separated list of test IDs. If you are using
+ * testIds, do not send a value for testId. In the form of "," separated string.
Response Body Schema
@@ -980,6 +1150,7 @@ public ResponseResponse Body Schema
- * - *
- * {@code
- * {
- * value (Required): [
- * (Required){
- * description: String (Optional)
- * name: String (Optional)
- * }
- * ]
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return represents collection of metric namespaces along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ResponseResponse Body Schema
- * - *
- * {@code
- * {
- * value (Required): [
- * (Required){
- * dimensions (Optional): [
- * (Optional){
- * description: String (Optional)
- * name: String (Optional)
- * }
- * ]
- * description: String (Optional)
- * name: String (Optional)
- * namespace: String (Optional)
- * primaryAggregationType: String(Average/Count/None/Total/Percentile75/Percentile90/Percentile95/Percentile96/Percentile97/Percentile98/Percentile99/Percentile999/Percentile9999) (Optional)
- * supportedAggregationTypes (Optional): [
- * String (Optional)
- * ]
- * unit: String(NotSpecified/Percent/Count/Seconds/Milliseconds/Bytes/BytesPerSecond/CountPerSecond) (Optional)
- * metricAvailabilities (Optional): [
- * (Optional){
- * timeGrain: String(PT5S/PT10S/PT1M/PT5M/PT1H) (Optional)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return represents collection of metric definitions along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ResponseRequest Body Schema
* @@ -1390,7 +1499,13 @@ public ResponseResponse Body Schema
* @@ -1525,7 +1646,13 @@ public ResponseQuery Parameters
*| Name | Type | Required | Description |
|---|---|---|---|
| interval | String | No | The interval (i.e. timegrain) of the query. Allowed values: - * "PT5S", "PT10S", "PT1M", "PT5M", "PT1H". |
Response Body Schema
* - *
- * {@code
- * String
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
- * numeric, underscore or hyphen characters.
- * @param name Dimension name.
- * @param metricname Metric name.
- * @param metricNamespace Metric namespace to query metric definitions for.
- * @param timespan The timespan of the query. It is a string with the following format
- * 'startDateTime_ISO/endDateTime_ISO'.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return metrics dimension values as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterableRequest Body Schema
@@ -2632,7 +2959,7 @@ public PagedIterableRequest Body Schema
@@ -2688,7 +3016,7 @@ public MonoResponse Body Schema
+ * Create or update operation template. + *Request Body Schema
* *
* {@code
* {
- * fileName: String (Required)
- * url: String (Optional)
- * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT) (Optional)
- * expireDateTime: OffsetDateTime (Optional)
- * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
- * validationFailureDetails: String (Optional)
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
* }
* }
*
*
- * @param nextLink The URL to get the next list of items.
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
- * @throws HttpResponseException thrown if the request is rejected by server.
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return trigger model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return trigger model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return trigger model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param triggerId The unique identifier of the trigger.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return trigger model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on triggers associated with the provided test + * ids. |
| states | String | No | Filter triggers based on a comma separated list of states. + * Allowed values: "Active", "Paused", "Completed", "Disabled". |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter triggers. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter triggers. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on triggers associated with the provided test + * ids. |
| states | String | No | Filter triggers based on a comma separated list of states. + * Allowed values: "Active", "Paused", "Completed", "Disabled". |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter triggers. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter triggers. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFluxQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on triggers associated with the provided test + * ids. |
| states | String | No | Filter triggers based on a comma separated list of states. + * Allowed values: "Active", "Paused", "Completed", "Disabled". |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter triggers. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter triggers. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponseQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on triggers associated with the provided test + * ids. |
| states | String | No | Filter triggers based on a comma separated list of states. + * Allowed values: "Active", "Paused", "Completed", "Disabled". |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter triggers. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter triggers. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterableRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param body The resource instance.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param notificationRuleId The unique identifier of the notification rule.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return notification rule model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on notification rules associated with the provided + * test ids. |
| scopes | String | No | Search based on notification rules for the provided + * scopes. |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter notification rules. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter notification rules. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on notification rules associated with the provided + * test ids. |
| scopes | String | No | Search based on notification rules for the provided + * scopes. |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter notification rules. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter notification rules. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFluxQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on notification rules associated with the provided + * test ids. |
| scopes | String | No | Search based on notification rules for the provided + * scopes. |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter notification rules. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter notification rules. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponseQuery Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| testIds | String | No | Search based on notification rules associated with the provided + * test ids. |
| scopes | String | No | Search based on notification rules for the provided + * scopes. |
| lastModifiedStartTime | OffsetDateTime | No | Start DateTime(RFC 3339 literal format) + * of the last updated time range to filter notification rules. |
| lastModifiedEndTime | OffsetDateTime | No | End DateTime(RFC 3339 literal format) of + * the last updated time range to filter notification rules. |
| maxpagesize | Integer | No | Number of results in response. Default page size is + * 50. |
Response Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterableRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return provides status details for long running operations along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return provides status details for long running operations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private ResponseRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPollerRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * newTestId: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param cloneTestRequest1 The cloneTestRequest1 parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPollerResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return provides status details for long running operations along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return provides status details for long running operations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPollerResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testId Unique test identifier for the load test, must contain only lower-case alphabetic, numeric,
+ * underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of provides status details for long running operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPollerResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param operationId The unique ID of the operation.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of a long running operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param operationId The unique ID of the operation.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of a long running operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * fileName: String (Required)
+ * url: String (Optional)
+ * fileType: String(JMX_FILE/USER_PROPERTIES/ADDITIONAL_ARTIFACTS/ZIPPED_ARTIFACTS/URL_TEST_CONFIG/TEST_SCRIPT/BROWSER_RECORDING/TEST_PLAN_RECOMMENDATIONS) (Optional)
+ * expireDateTime: OffsetDateTime (Optional)
+ * validationStatus: String(NOT_VALIDATED/VALIDATION_SUCCESS/VALIDATION_FAILURE/VALIDATION_INITIATED/VALIDATION_NOT_REQUIRED) (Optional)
+ * validationFailureDetails: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return all test files along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -3375,7 +5290,7 @@ private MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * kind: String(ScheduleTestsTrigger) (Required)
+ * triggerId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * description: String (Optional)
+ * state: String(Active/Paused/Completed/Disabled) (Optional)
+ * stateDetails (Optional): {
+ * message: String (Optional)
+ * }
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of Trigger items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * scope: String(Tests) (Required)
+ * notificationRuleId: String (Required)
+ * displayName: String (Optional, Required on create)
+ * actionGroupIds (Optional, Required on create): [
+ * String (Optional, Required on create)
+ * ]
+ * createdDateTime: OffsetDateTime (Optional)
+ * createdBy: String (Optional)
+ * lastModifiedDateTime: OffsetDateTime (Optional)
+ * lastModifiedBy: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of NotificationRule items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponseResponse Body Schema
@@ -3011,6 +3147,7 @@ public PagedIterableResponse Body Schema
@@ -3210,6 +3359,7 @@ private MonoResponse Body Schema
@@ -3427,6 +3589,7 @@ public PagedFluxResponse Body Schema
@@ -3624,6 +3799,7 @@ private PagedResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the latest insights for the test run along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the latest insights for the test run along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Test run insights model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents insights for the test run along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonoRequest Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ * + *
+ * {@code
+ * {
+ * columns (Optional): [
+ * (Optional){
+ * name: String (Required)
+ * dataType: String (Required)
+ * }
+ * ]
+ * rows (Optional): {
+ * String (Required): {
+ * String: String (Required)
+ * }
+ * }
+ * version: Long (Optional)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Optional)
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param body Test run insights model.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents insights for the test run along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return status of a long running operation along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private MonoResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return status of a long running operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private ResponseResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of status of a long running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of status of a long running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPollerResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of status of a long running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFluxResponse Body Schema
+ * + *
+ * {@code
+ * {
+ * id: String (Required)
+ * status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
+ * kind: String(CloneTest/GenerateTestRunInsights/TestPlanRecommendations) (Required)
+ * error (Optional): {
+ * error (Required): (recursive schema, see error above)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic,
+ * numeric, underscore or hyphen characters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of status of a long running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller