Class LoadTestAdministrationClient

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

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

    Modifier and Type
    Method
    Description
    com.azure.core.util.polling.SyncPoller<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData>
    beginUploadTestFile(String testId, String fileName, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions fileUploadRequestOptions)
    Uploads file and polls the validation status of the uploaded file.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    createOrUpdateAppComponentsWithResponse(String testId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
    Associate an app component (collection of azure resources) to a test.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    createOrUpdateServerMetricsConfigWithResponse(String testId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
    Configure server metrics for a test.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    createOrUpdateTestWithResponse(String testId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
    Create a new test or update an existing test.
    com.azure.core.http.rest.Response<Void>
    deleteTestFileWithResponse(String testId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
    Delete file by the file name for a test.
    com.azure.core.http.rest.Response<Void>
    deleteTestWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
    Delete a test by its name.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    getAppComponentsWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
    Get associated app component (collection of azure resources) for the given test.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    getServerMetricsConfigWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
    List server metrics configuration for the given test.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    getTestFileWithResponse(String testId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
    Get test file by the file name.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    getTestWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
    Get load test details by test name.
    com.azure.core.http.rest.PagedIterable<com.azure.core.util.BinaryData>
    listTestFiles(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
    Get all test files.
    com.azure.core.http.rest.PagedIterable<com.azure.core.util.BinaryData>
    listTests(com.azure.core.http.rest.RequestOptions requestOptions)
    Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.

    Methods inherited from class java.lang.Object

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

    • createOrUpdateServerMetricsConfigWithResponse

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

      Request Body Schema

      
       {
           testId: 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

      
       {
           testId: 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:
      testId - Unique name for the load test, 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 server metrics configuration along with Response.
      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.
    • beginUploadTestFile

      public com.azure.core.util.polling.SyncPoller<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginUploadTestFile(String testId, String fileName, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions fileUploadRequestOptions)
      Uploads file and polls the validation status of the uploaded file.
      Parameters:
      testId - Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$.
      fileName - Unique name for test file with file extension like : App.jmx.
      body - The file content as application/octet-stream.
      fileUploadRequestOptions - The options to configure the file upload HTTP request before HTTP client sends it.
      Returns:
      A SyncPoller to poll on and retrieve the file info with validation status.
      Throws:
      com.azure.core.exception.ResourceNotFoundException - when a test with testId doesn't exist.
    • listTestFiles

      public com.azure.core.http.rest.PagedIterable<com.azure.core.util.BinaryData> listTestFiles(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
      Get all test files.

      Response Body Schema

      
       {
           value (Required): [
                (Required){
                   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)
               }
           ]
           nextLink: String (Optional)
       }
       
      Parameters:
      testId - Unique name for the load test, 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:
      all test files as paginated response with PagedIterable.
      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.
    • createOrUpdateTestWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> createOrUpdateTestWithResponse(String testId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Create a new test or update an existing test.

      Request 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)
           }
           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)
               }
           }
           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)
               ]
           }
           testId: String (Optional)
           description: String (Optional)
           displayName: String (Optional)
           subnetId: String (Optional)
           keyvaultReferenceIdentityType: String (Optional)
           keyvaultReferenceIdentityId: String (Optional)
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       

      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)
           }
           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)
               }
           }
           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)
               ]
           }
           testId: String (Optional)
           description: String (Optional)
           displayName: String (Optional)
           subnetId: String (Optional)
           keyvaultReferenceIdentityType: String (Optional)
           keyvaultReferenceIdentityId: String (Optional)
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testId - Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      body - Load test model.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      load test model along with Response.
      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.
    • deleteTestWithResponse

      public com.azure.core.http.rest.Response<Void> deleteTestWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete a test by its name.
      Parameters:
      testId - Unique name for the load test, 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.
      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.
    • getTestWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getTestWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
      Get load test details by test 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)
           }
           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)
               }
           }
           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)
               ]
           }
           testId: String (Optional)
           description: String (Optional)
           displayName: String (Optional)
           subnetId: String (Optional)
           keyvaultReferenceIdentityType: String (Optional)
           keyvaultReferenceIdentityId: String (Optional)
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testId - Unique name for the load test, 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 details by test name along with Response.
      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.
    • listTests

      public com.azure.core.http.rest.PagedIterable<com.azure.core.util.BinaryData> listTests(com.azure.core.http.rest.RequestOptions requestOptions)
      Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      orderbyStringNoSort on the supported fields in (field asc/desc) format. eg: lastModifiedDateTime asc. Supported fields - lastModifiedDateTime
      searchStringNoPrefix 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.
      lastModifiedStartTimeOffsetDateTimeNoStart DateTime(ISO 8601 literal format) of the last updated time range to filter tests.
      lastModifiedEndTimeOffsetDateTimeNoEnd DateTime(ISO 8601 literal format) of the last updated time range to filter tests.
      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)
                   }
                   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)
                       }
                   }
                   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)
                       ]
                   }
                   testId: String (Optional)
                   description: String (Optional)
                   displayName: String (Optional)
                   subnetId: String (Optional)
                   keyvaultReferenceIdentityType: String (Optional)
                   keyvaultReferenceIdentityId: 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 load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} as paginated response with PagedIterable.
      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.
    • getTestFileWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getTestFileWithResponse(String testId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
      Get test file by the 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:
      testId - Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      fileName - File name with file extension like app.jmx.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      test file by the file name along with Response.
      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.
    • deleteTestFileWithResponse

      public com.azure.core.http.rest.Response<Void> deleteTestFileWithResponse(String testId, String fileName, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete file by the file name for a test.
      Parameters:
      testId - Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
      fileName - File name with file extension like app.jmx.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      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.
    • createOrUpdateAppComponentsWithResponse

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

      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)
               }
           }
           testId: 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)
               }
           }
           testId: String (Optional)
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testId - Unique name for the load test, 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 app component along with Response.
      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 com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getAppComponentsWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
      Get associated app component (collection of azure resources) for the given test.

      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)
               }
           }
           testId: String (Optional)
           createdDateTime: OffsetDateTime (Optional)
           createdBy: String (Optional)
           lastModifiedDateTime: OffsetDateTime (Optional)
           lastModifiedBy: String (Optional)
       }
       
      Parameters:
      testId - Unique name for the load test, 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 along with Response.
      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 com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getServerMetricsConfigWithResponse(String testId, com.azure.core.http.rest.RequestOptions requestOptions)
      List server metrics configuration for the given test.

      Response Body Schema

      
       {
           testId: 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:
      testId - Unique name for the load test, 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 server metrics configuration along with Response.
      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.