Class LoadTestRunAsyncClient

java.lang.Object
com.azure.developer.loadtesting.LoadTestRunAsyncClient

public final class LoadTestRunAsyncClient extends Object
Initializes a new instance of the asynchronous LoadTestingClient type.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData>
    beginTestRun(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions testRunRequestOptions)
    Starts a test run and polls the status of the test run.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    createOrUpdateAppComponentsWithResponse(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
    Associate an app component (collection of azure resources) to a test run.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    createOrUpdateServerMetricsConfigWithResponse(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
    Configure server metrics for a test run.
    Mono<com.azure.core.http.rest.Response<Void>>
    deleteTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    Delete a test run by its name.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    getAppComponentsWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    Get associated app component (collection of azure resources) for the given test run.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    getServerMetricsConfigWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    List server metrics configuration for the given test run.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    getTestRunFileWithResponse(String testRunId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
    Get test run file by file name.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    getTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    Get test run details by name.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    listMetricDefinitionsWithResponse(String testRunId, String metricNamespace, com.azure.core.http.rest.RequestOptions requestOptions)
    List the metric definitions for a load test run.
    com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
    listMetricDimensionValues(String testRunId, String name, String metricname, String metricNamespace, String timespan, com.azure.core.http.rest.RequestOptions requestOptions)
    List the dimension values for the given metric dimension name.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    listMetricNamespacesWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    List the metric namespaces for a load test run.
    com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
    listMetrics(String testRunId, String metricname, String metricNamespace, String timespan, com.azure.core.http.rest.RequestOptions requestOptions)
    List the metric values for a load test run.
    com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
    listTestRuns(com.azure.core.http.rest.RequestOptions requestOptions)
    Get all test runs with given filters.
    Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
    stopTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
    Stop test run by name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • listMetricNamespacesWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> listMetricNamespacesWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      List the metric namespaces for a load test run.

      Response Body Schema

      
       {
           value (Required): [
                (Required){
                   description: String (Optional)
                   name: String (Optional)
               }
           ]
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      represents collection of metric namespaces along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • listMetricDefinitionsWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> listMetricDefinitionsWithResponse(String testRunId, String metricNamespace, com.azure.core.http.rest.RequestOptions requestOptions)
      List the metric definitions for a load test run.

      Response Body Schema

      
       {
           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/Percentile90/Percentile95/Percentile99) (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)
                       }
                   ]
               }
           ]
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      metricNamespace - Metric namespace to query metric definitions for.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      represents collection of metric definitions along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • createOrUpdateServerMetricsConfigWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> createOrUpdateServerMetricsConfigWithResponse(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Configure server metrics for a test run.

      Request Body Schema

      
       {
           testRunId: String (Optional)
           metrics (Optional): {
               String (Optional): {
                   id: String (Optional)
                   resourceId: String (Required)
                   metricNamespace: String (Required)
                   displayDescription: String (Optional)
                   name: String (Required)
                   aggregation: String (Required)
                   unit: String (Optional)
                   resourceType: String (Required)
               }
           }
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       

      Response Body Schema

      
       {
           testRunId: String (Optional)
           metrics (Optional): {
               String (Optional): {
                   id: String (Optional)
                   resourceId: String (Required)
                   metricNamespace: String (Required)
                   displayDescription: String (Optional)
                   name: String (Required)
                   aggregation: String (Required)
                   unit: String (Optional)
                   resourceType: String (Required)
               }
           }
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      body - Server metric configuration model.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test run server metrics configuration along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • beginTestRun

      public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginTestRun(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions testRunRequestOptions)
      Starts a test run and polls the status of the test run.
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      body - Load test run model.
      testRunRequestOptions - The options to configure the file upload HTTP request before HTTP client sends it.
      Returns:
      A 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).
      Throws:
      com.azure.core.exception.ResourceNotFoundException - when a test with testRunId doesn't exist.
    • createOrUpdateAppComponentsWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> createOrUpdateAppComponentsWithResponse(String testRunId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Associate an app component (collection of azure resources) to a test run.

      Request Body Schema

      
       {
           components (Required): {
               String (Required): {
                   resourceId: String (Optional)
                   resourceName: String (Optional)
                   resourceType: String (Optional)
                   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)
       }
       

      Response Body Schema

      
       {
           components (Required): {
               String (Required): {
                   resourceId: String (Optional)
                   resourceName: String (Optional)
                   resourceType: String (Optional)
                   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)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      body - App Component model.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test run app component along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • listMetrics

      public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listMetrics(String testRunId, String metricname, String metricNamespace, String timespan, com.azure.core.http.rest.RequestOptions requestOptions)
      List the metric values for a load test run.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      aggregationStringNoThe aggregation
      intervalStringNoThe interval (i.e. timegrain) of the query. Allowed values: "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

      
       {
           filters (Optional): [
                (Optional){
                   name: String (Optional)
                   values (Optional): [
                       String (Optional)
                   ]
               }
           ]
       }
       

      Response Body Schema

      
       {
           timeseries (Optional): [
                (Optional){
                   data (Optional): [
                        (Optional){
                           timestamp: String (Optional)
                           value: Double (Optional)
                       }
                   ]
                   dimensionValues (Optional): [
                        (Optional){
                           name: String (Optional)
                           value: String (Optional)
                       }
                   ]
               }
           ]
           nextLink: String (Optional)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      metricname - Metric name.
      metricNamespace - Metric namespace to query metric definitions for.
      timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the response to a metrics query as paginated response with PagedFlux.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • listMetricDimensionValues

      public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listMetricDimensionValues(String testRunId, String name, String metricname, String metricNamespace, String timespan, com.azure.core.http.rest.RequestOptions requestOptions)
      List the dimension values for the given metric dimension name.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      intervalStringNoThe interval (i.e. timegrain) of the query. Allowed values: "PT5S", "PT10S", "PT1M", "PT5M", "PT1H".
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

      
       {
           value (Optional): [
               String (Optional)
           ]
           nextLink: String (Optional)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      name - Dimension name.
      metricname - Metric name.
      metricNamespace - Metric namespace to query metric definitions for.
      timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      metrics dimension values as paginated response with PagedFlux.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getAppComponentsWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getAppComponentsWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      Get associated app component (collection of azure resources) for the given test run.

      Response Body Schema

      
       {
           components (Required): {
               String (Required): {
                   resourceId: String (Optional)
                   resourceName: String (Optional)
                   resourceType: String (Optional)
                   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)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      associated app component (collection of azure resources) for the given test run along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getServerMetricsConfigWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getServerMetricsConfigWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      List server metrics configuration for the given test run.

      Response Body Schema

      
       {
           testRunId: String (Optional)
           metrics (Optional): {
               String (Optional): {
                   id: String (Optional)
                   resourceId: String (Required)
                   metricNamespace: String (Required)
                   displayDescription: String (Optional)
                   name: String (Required)
                   aggregation: String (Required)
                   unit: String (Optional)
                   resourceType: String (Required)
               }
           }
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test run server metrics configuration along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getTestRunWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      Get test run details by name.

      Response Body Schema

      
       {
           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)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test run details by name along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • deleteTestRunWithResponse

      public Mono<com.azure.core.http.rest.Response<Void>> deleteTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete a test run by its name.
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getTestRunFileWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getTestRunFileWithResponse(String testRunId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
      Get test run file by file name.

      Response Body Schema

      
       {
           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)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      fileName - Test run file name with file extension.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test run file by file name along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • listTestRuns

      public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listTestRuns(com.azure.core.http.rest.RequestOptions requestOptions)
      Get all test runs with given filters.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      orderbyStringNoSort on the supported fields in (field asc/desc) format. eg: executedDateTime asc. Supported fields - executedDateTime
      searchStringNoPrefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500.
      testIdStringNoUnique name of an existing load test.
      executionFromOffsetDateTimeNoStart DateTime(ISO 8601 literal format) of test-run execution time filter range.
      executionToOffsetDateTimeNoEnd DateTime(ISO 8601 literal format) of test-run execution time filter range.
      statusStringNoComma separated list of test run status.
      maxpagesizeIntegerNoNumber of results in response.
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

      
       {
           value (Required): [
                (Required){
                   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)
               }
           ]
           nextLink: String (Optional)
       }
       
      Parameters:
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      all test runs with given filters as paginated response with PagedFlux.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • stopTestRunWithResponse

      public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> stopTestRunWithResponse(String testRunId, com.azure.core.http.rest.RequestOptions requestOptions)
      Stop test run by name.

      Response Body Schema

      
       {
           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)
       }
       
      Parameters:
      testRunId - Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      load test run model along with Response on successful completion of Mono.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.