> getServerMetricsConfigWithResponse(String testRunId,
- RequestOptions requestOptions) {
- return this.serviceClient.getServerMetricsConfigWithResponseAsync(testRunId, 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
- *
- *
- * {@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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateTestRunWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateTestRunWithResponseAsync(testRunId, body, requestOptions);
- }
-
- /**
- * Get test run details by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 test run details by name along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getTestRunWithResponseAsync(testRunId, requestOptions);
- }
-
- /**
- * Delete a test run by its name.
- *
- * @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 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 test run file by file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param fileName Test run file name with file extension.
- * @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}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestRunFileWithResponse(String testRunId, String fileName,
- RequestOptions requestOptions) {
- return this.serviceClient.getTestRunFileWithResponseAsync(testRunId, fileName, requestOptions);
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestRuns(RequestOptions requestOptions) {
- return this.serviceClient.listTestRunsAsync(requestOptions);
- }
-
- /**
- * Stop test run by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> stopTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.stopTestRunWithResponseAsync(testRunId, 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 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/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)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @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);
- }
-}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClient.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClient.java
deleted file mode 100644
index 64358eff94b3..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClient.java
+++ /dev/null
@@ -1,1242 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.developer.loadtesting;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceClient;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.exception.ClientAuthenticationException;
-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.PagedIterable;
-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.polling.SyncPoller;
-import com.azure.developer.loadtesting.implementation.LoadTestRunsImpl;
-import java.time.Duration;
-
-/**
- * Initializes a new instance of the synchronous LoadTestingClient type.
- */
-@ServiceClient(builder = LoadTestRunClientBuilder.class)
-public final class LoadTestRunClient {
-
- @Generated
- private final LoadTestRunsImpl serviceClient;
-
- /**
- * Initializes an instance of LoadTestRunClient class.
- *
- * @param serviceClient the service client implementation.
- */
- @Generated
- LoadTestRunClient(LoadTestRunsImpl serviceClient) {
- this.serviceClient = serviceClient;
- }
-
- /**
- * Configure server metrics for a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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 createOrUpdateServerMetricsConfigWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateServerMetricsConfigWithResponse(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 testRunId} doesn't exist.
- * @return A {@link SyncPoller} 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 SyncPoller beginTestRun(String testRunId, BinaryData body,
- RequestOptions testRunRequestOptions) {
- RequestOptions defaultRequestOptions = new RequestOptions();
- if (testRunRequestOptions != null) {
- defaultRequestOptions.setContext(testRunRequestOptions.getContext());
- }
- return SyncPoller.createPoller(Duration.ofSeconds(5),
- (context) -> PollingUtils
- .getTestRunStatus(createOrUpdateTestRunWithResponse(testRunId, body, testRunRequestOptions).getValue()),
- (context) -> PollingUtils
- .getTestRunStatus(getTestRunWithResponse(testRunId, defaultRequestOptions).getValue()),
- (activationResponse, context) -> stopTestRunWithResponse(testRunId, defaultRequestOptions).getValue(),
- (context) -> getTestRunWithResponse(testRunId, defaultRequestOptions).getValue());
- }
-
- /**
- * Associate an app component (collection of azure resources) to a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * 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
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 createOrUpdateAppComponentsWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateAppComponentsWithResponse(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}
- *
- * 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
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable 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.listMetrics(testRunId, metricName, metricNamespace, timespan, requestOptions);
- }
-
- /**
- * 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 PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listMetricDimensionValues(String testRunId, String name, String metricName,
- String metricNamespace, String timespan, RequestOptions requestOptions) {
- return this.serviceClient.listMetricDimensionValues(testRunId, name, metricName, metricNamespace, timespan,
- requestOptions);
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 getAppComponentsWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getAppComponentsWithResponse(testRunId, requestOptions);
- }
-
- /**
- * List server metrics configuration for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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 test run server metrics configuration along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getServerMetricsConfigWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getServerMetricsConfigWithResponse(testRunId, 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
- *
- *
- * {@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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateTestRunWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- return this.serviceClient.createOrUpdateTestRunWithResponse(testRunId, body, requestOptions);
- }
-
- /**
- * Get test run details by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 test run details by name along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getTestRunWithResponse(testRunId, requestOptions);
- }
-
- /**
- * Delete a test run by its name.
- *
- * @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 Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.deleteTestRunWithResponse(testRunId, requestOptions);
- }
-
- /**
- * Get test run file by file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param fileName Test run file name with file extension.
- * @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}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestRunFileWithResponse(String testRunId, String fileName,
- RequestOptions requestOptions) {
- return this.serviceClient.getTestRunFileWithResponse(testRunId, fileName, requestOptions);
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestRuns(RequestOptions requestOptions) {
- return this.serviceClient.listTestRuns(requestOptions);
- }
-
- /**
- * Stop test run by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response stopTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.stopTestRunWithResponse(testRunId, 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}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getMetricNamespacesWithResponse(String testRunId, RequestOptions requestOptions) {
- return this.serviceClient.getMetricNamespacesWithResponse(testRunId, 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/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)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @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 getMetricDefinitionsWithResponse(String testRunId, String metricNamespace,
- RequestOptions requestOptions) {
- return this.serviceClient.getMetricDefinitionsWithResponse(testRunId, metricNamespace, requestOptions);
- }
-}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClientBuilder.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClientBuilder.java
deleted file mode 100644
index 8eef8080f17f..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestRunClientBuilder.java
+++ /dev/null
@@ -1,334 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.developer.loadtesting;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.ServiceClientBuilder;
-import com.azure.core.client.traits.ConfigurationTrait;
-import com.azure.core.client.traits.EndpointTrait;
-import com.azure.core.client.traits.HttpTrait;
-import com.azure.core.client.traits.TokenCredentialTrait;
-import com.azure.core.credential.TokenCredential;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpPipeline;
-import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.HttpPipelinePosition;
-import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.AddHeadersPolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
-import com.azure.core.http.policy.HttpLoggingPolicy;
-import com.azure.core.http.policy.HttpPipelinePolicy;
-import com.azure.core.http.policy.HttpPolicyProviders;
-import com.azure.core.http.policy.RequestIdPolicy;
-import com.azure.core.http.policy.RetryOptions;
-import com.azure.core.http.policy.RetryPolicy;
-import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.util.ClientOptions;
-import com.azure.core.util.Configuration;
-import com.azure.core.util.CoreUtils;
-import com.azure.core.util.builder.ClientBuilderUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.core.util.serializer.JacksonAdapter;
-import com.azure.developer.loadtesting.implementation.LoadTestingClientImpl;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/**
- * A builder for creating a new instance of the LoadTestRunClient type.
- */
-@ServiceClientBuilder(serviceClients = { LoadTestRunClient.class, LoadTestRunAsyncClient.class })
-public final class LoadTestRunClientBuilder
- implements HttpTrait, ConfigurationTrait,
- TokenCredentialTrait, EndpointTrait {
-
- @Generated
- private static final String SDK_NAME = "name";
-
- @Generated
- private static final String SDK_VERSION = "version";
-
- @Generated
- private static final String[] DEFAULT_SCOPES = new String[] { "https://cnt-prod.loadtesting.azure.com/.default" };
-
- @Generated
- private final List pipelinePolicies;
-
- /**
- * Create an instance of the LoadTestRunClientBuilder.
- */
- @Generated
- public LoadTestRunClientBuilder() {
- this.pipelinePolicies = new ArrayList<>();
- }
-
- /*
- * The HTTP pipeline to send requests through.
- */
- @Generated
- private HttpPipeline pipeline;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder 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;
- }
-
- /*
- * The HTTP client used to send the request.
- */
- @Generated
- private HttpClient httpClient;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder httpClient(HttpClient httpClient) {
- this.httpClient = httpClient;
- return this;
- }
-
- /*
- * The logging configuration for HTTP requests and responses.
- */
- @Generated
- private HttpLogOptions httpLogOptions;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
- this.httpLogOptions = httpLogOptions;
- return this;
- }
-
- /*
- * The client options such as application ID and custom headers to set on a request.
- */
- @Generated
- private ClientOptions clientOptions;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder clientOptions(ClientOptions clientOptions) {
- this.clientOptions = clientOptions;
- return this;
- }
-
- /*
- * The retry options to configure retry policy for failed requests.
- */
- @Generated
- private RetryOptions retryOptions;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder retryOptions(RetryOptions retryOptions) {
- this.retryOptions = retryOptions;
- return this;
- }
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
- Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
- pipelinePolicies.add(customPolicy);
- return this;
- }
-
- /*
- * The configuration store that is used during construction of the service client.
- */
- @Generated
- private Configuration configuration;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder configuration(Configuration configuration) {
- this.configuration = configuration;
- return this;
- }
-
- /*
- * The TokenCredential used for authentication.
- */
- @Generated
- private TokenCredential tokenCredential;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder credential(TokenCredential tokenCredential) {
- this.tokenCredential = tokenCredential;
- return this;
- }
-
- /*
- * The service endpoint
- */
- @Generated
- private String endpoint;
-
- /**
- * {@inheritDoc}.
- */
- @Generated
- @Override
- public LoadTestRunClientBuilder endpoint(String endpoint) {
- this.endpoint = endpoint;
- return this;
- }
-
- /*
- * Service version
- */
- @Generated
- private LoadTestingServiceVersion serviceVersion;
-
- /**
- * Sets Service version.
- *
- * @param serviceVersion the serviceVersion value.
- * @return the LoadTestRunClientBuilder.
- */
- @Generated
- public LoadTestRunClientBuilder serviceVersion(LoadTestingServiceVersion serviceVersion) {
- this.serviceVersion = serviceVersion;
- return this;
- }
-
- /*
- * The retry policy that will attempt to retry failed requests, if applicable.
- */
- @Generated
- private RetryPolicy retryPolicy;
-
- /**
- * Sets The retry policy that will attempt to retry failed requests, if applicable.
- *
- * @param retryPolicy the retryPolicy value.
- * @return the LoadTestRunClientBuilder.
- */
- @Generated
- public LoadTestRunClientBuilder retryPolicy(RetryPolicy retryPolicy) {
- this.retryPolicy = retryPolicy;
- return this;
- }
-
- /**
- * Builds an instance of LoadTestingClientImpl with the provided parameters.
- *
- * @return an instance of LoadTestingClientImpl.
- */
- @Generated
- private LoadTestingClientImpl buildInnerClient() {
- this.validateClient();
- HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
- LoadTestingServiceVersion localServiceVersion
- = (serviceVersion != null) ? serviceVersion : LoadTestingServiceVersion.getLatest();
- LoadTestingClientImpl client = new LoadTestingClientImpl(localPipeline,
- JacksonAdapter.createDefaultSerializerAdapter(), this.endpoint, localServiceVersion);
- return client;
- }
-
- @Generated
- private HttpPipeline createHttpPipeline() {
- Configuration buildConfiguration
- = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
- HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
- ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
- List policies = new ArrayList<>();
- String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
- String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
- String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
- policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
- policies.add(new RequestIdPolicy());
- policies.add(new AddHeadersFromContextPolicy());
- HttpHeaders headers = CoreUtils.createHttpHeadersFromClientOptions(localClientOptions);
- if (headers != null) {
- policies.add(new AddHeadersPolicy(headers));
- }
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .forEach(p -> policies.add(p));
- HttpPolicyProviders.addBeforeRetryPolicies(policies);
- policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
- policies.add(new AddDatePolicy());
- if (tokenCredential != null) {
- policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
- }
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .forEach(p -> policies.add(p));
- HttpPolicyProviders.addAfterRetryPolicies(policies);
- policies.add(new HttpLoggingPolicy(localHttpLogOptions));
- HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient)
- .clientOptions(localClientOptions)
- .build();
- return httpPipeline;
- }
-
- /**
- * Builds an instance of LoadTestRunAsyncClient class.
- *
- * @return an instance of LoadTestRunAsyncClient.
- */
- @Generated
- public LoadTestRunAsyncClient buildAsyncClient() {
- return new LoadTestRunAsyncClient(buildInnerClient().getLoadTestRuns());
- }
-
- /**
- * Builds an instance of LoadTestRunClient class.
- *
- * @return an instance of LoadTestRunClient.
- */
- @Generated
- public LoadTestRunClient buildClient() {
- return new LoadTestRunClient(buildInnerClient().getLoadTestRuns());
- }
-
- @Generated
- private static final Map PROPERTIES
- = CoreUtils.getProperties("azure-developer-loadtesting.properties");
-
- private static final ClientLogger LOGGER = new ClientLogger(LoadTestRunClientBuilder.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/LoadTestingServiceVersion.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestingServiceVersion.java
deleted file mode 100644
index 277cd8cc2f90..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestingServiceVersion.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.developer.loadtesting;
-
-import com.azure.core.util.ServiceVersion;
-
-/**
- * Service version of LoadTestingClient.
- */
-public enum LoadTestingServiceVersion implements ServiceVersion {
- /**
- * Enum value 2022-11-01.
- */
- V2022_11_01("2022-11-01");
-
- private final String version;
-
- LoadTestingServiceVersion(String version) {
- this.version = version;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getVersion() {
- return this.version;
- }
-
- /**
- * Gets the latest service version supported by this client library.
- *
- * @return The latest {@link LoadTestingServiceVersion}.
- */
- public static LoadTestingServiceVersion getLatest() {
- return V2022_11_01;
- }
-}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/PollingUtils.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/PollingUtils.java
deleted file mode 100644
index 39ab7f76248d..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/PollingUtils.java
+++ /dev/null
@@ -1,111 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.developer.loadtesting;
-
-import com.azure.core.util.BinaryData;
-import com.azure.core.util.polling.LongRunningOperationStatus;
-import com.azure.core.util.polling.PollResponse;
-import com.azure.json.JsonProviders;
-import com.azure.json.JsonReader;
-import reactor.core.publisher.Mono;
-
-import java.io.IOException;
-import java.util.Map;
-import java.util.concurrent.Callable;
-
-final class PollingUtils {
- static Mono> getPollResponseMono(Callable> pollOperation) {
- try {
- return Mono.just(pollOperation.call());
- } catch (Exception e) {
- return Mono.error(e);
- }
- }
-
- static PollResponse getValidationStatus(BinaryData fileBinary) throws RuntimeException {
- String validationStatus, fileType;
-
- try (JsonReader jsonReader = JsonProviders.createReader(fileBinary.toBytes())) {
- Map jsonTree = jsonReader.readMap(JsonReader::readUntyped);
-
- validationStatus = jsonTree.get("validationStatus").toString();
- } catch (IOException e) {
- throw new RuntimeException("Encountered exception while retrieving validation status", e);
- }
-
- LongRunningOperationStatus lroStatus;
-
- switch (validationStatus) {
- case "VALIDATION_NOT_REQUIRED":
- case "VALIDATION_SUCCESS":
- lroStatus = LongRunningOperationStatus.SUCCESSFULLY_COMPLETED;
-
- break;
-
- case "VALIDATION_FAILURE":
- lroStatus = LongRunningOperationStatus.FAILED;
-
- break;
-
- case "VALIDATION_INITIATED":
- lroStatus = LongRunningOperationStatus.IN_PROGRESS;
-
- break;
-
- case "NOT_VALIDATED":
- lroStatus = LongRunningOperationStatus.SUCCESSFULLY_COMPLETED;
-
- break;
-
- default:
- lroStatus = LongRunningOperationStatus.NOT_STARTED;
-
- break;
- }
-
- return new PollResponse<>(lroStatus, fileBinary);
- }
-
- static PollResponse getTestRunStatus(BinaryData testRunBinary) throws RuntimeException {
- String status;
-
- try (JsonReader jsonReader = JsonProviders.createReader(testRunBinary.toBytes())) {
- Map jsonTree = jsonReader.readMap(JsonReader::readUntyped);
-
- status = jsonTree.get("status").toString();
- } catch (IOException e) {
- throw new RuntimeException("Encountered exception while retrieving test run status", e);
- }
-
- LongRunningOperationStatus lroStatus;
-
- switch (status) {
- case "NOTSTARTED":
- lroStatus = LongRunningOperationStatus.NOT_STARTED;
-
- break;
-
- case "DONE":
- lroStatus = LongRunningOperationStatus.SUCCESSFULLY_COMPLETED;
-
- break;
-
- case "FAILED":
- lroStatus = LongRunningOperationStatus.FAILED;
-
- break;
-
- case "CANCELLED":
- lroStatus = LongRunningOperationStatus.USER_CANCELLED;
-
- break;
-
- default:
- lroStatus = LongRunningOperationStatus.IN_PROGRESS;
-
- break;
- }
-
- return new PollResponse<>(lroStatus, testRunBinary);
- }
-}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestAdministrationsImpl.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestAdministrationsImpl.java
deleted file mode 100644
index 66fecbd19792..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestAdministrationsImpl.java
+++ /dev/null
@@ -1,2509 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.developer.loadtesting.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.exception.ClientAuthenticationException;
-import com.azure.core.exception.HttpResponseException;
-import com.azure.core.exception.ResourceModifiedException;
-import com.azure.core.exception.ResourceNotFoundException;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.RequestOptions;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.util.BinaryData;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.UrlBuilder;
-import com.azure.developer.loadtesting.LoadTestingServiceVersion;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in LoadTestAdministrations.
- */
-public final class LoadTestAdministrationsImpl {
- /**
- * The proxy service used to perform REST calls.
- */
- private final LoadTestAdministrationsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final LoadTestingClientImpl client;
-
- /**
- * Initializes an instance of LoadTestAdministrationsImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- LoadTestAdministrationsImpl(LoadTestingClientImpl client) {
- this.service = RestProxy.create(LoadTestAdministrationsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * Gets Service version.
- *
- * @return the serviceVersion value.
- */
- public LoadTestingServiceVersion getServiceVersion() {
- return client.getServiceVersion();
- }
-
- /**
- * The interface defining all the services for LoadTestingClientLoadTestAdministrations to be used by the proxy
- * service to perform REST calls.
- */
- @Host("https://{Endpoint}")
- @ServiceInterface(name = "LoadTestingClientLoa")
- public interface LoadTestAdministrationsService {
- @Patch("/tests/{testId}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateTest(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/tests/{testId}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateTestSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Delete("/tests/{testId}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteTest(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Delete("/tests/{testId}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response deleteTestSync(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getTest(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getTestSync(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTests(@HostParam("Endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestsSync(@HostParam("Endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Put("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> uploadTestFile(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @PathParam("fileName") String fileName,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/octet-stream") BinaryData body,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Put("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response uploadTestFileSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @PathParam("fileName") String fileName,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/octet-stream") BinaryData body,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getTestFile(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @PathParam("fileName") String fileName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getTestFileSync(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @PathParam("fileName") String fileName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Delete("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteTestFile(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @PathParam("fileName") String fileName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Delete("/tests/{testId}/files/{fileName}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response deleteTestFileSync(@HostParam("Endpoint") String endpoint, @PathParam("testId") String testId,
- @PathParam("fileName") String fileName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/files")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTestFiles(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/files")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestFilesSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Patch("/tests/{testId}/app-components")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateAppComponents(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/tests/{testId}/app-components")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateAppComponentsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/app-components")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getAppComponents(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/app-components")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getAppComponentsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Patch("/tests/{testId}/server-metrics-config")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateServerMetricsConfig(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/tests/{testId}/server-metrics-config")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateServerMetricsConfigSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/server-metrics-config")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getServerMetricsConfig(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/tests/{testId}/server-metrics-config")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getServerMetricsConfigSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testId") String testId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTestsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTestFilesNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestFilesNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
- }
-
- /**
- * Create a new test or update an existing 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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
- *
- *
- * {@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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param body Load test 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 load test model along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateTestWithResponseAsync(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateTest(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Create a new test or update an existing 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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
- *
- *
- * {@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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param body Load test 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 load test model along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateTestWithResponse(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateTestSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * Delete a test by its name.
- *
- * @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 the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> deleteTestWithResponseAsync(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.deleteTest(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Delete a test by its name.
- *
- * @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 the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestWithResponse(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.deleteTestSync(this.client.getEndpoint(), testId, this.client.getServiceVersion().getVersion(),
- accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get load test details by test name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 load test details by test name along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestWithResponseAsync(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getTest(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get load test details by test name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 load test details by test name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestWithResponse(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getTestSync(this.client.getEndpoint(), testId, this.client.getServiceVersion().getVersion(),
- accept, requestOptions, Context.NONE);
- }
-
- /**
- * 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
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime |
- * | search | String | No | 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. |
- * | lastModifiedStartTime | OffsetDateTime | No | Start DateTime(ISO 8601 literal format)
- * of the last updated time range to filter tests. |
- * | lastModifiedEndTime | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of
- * the last updated time range to filter tests. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestsSinglePageAsync(RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listTests(this.client.getEndpoint(),
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * 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
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime |
- * | search | String | No | 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. |
- * | lastModifiedStartTime | OffsetDateTime | No | Start DateTime(ISO 8601 literal format)
- * of the last updated time range to filter tests. |
- * | lastModifiedEndTime | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of
- * the last updated time range to filter tests. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestsAsync(RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedFlux<>((pageSize) -> {
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestsSinglePageAsync(requestOptionsLocal);
- }, (nextLink, pageSize) -> {
- RequestOptions requestOptionsLocal = new RequestOptions();
- requestOptionsLocal.setContext(requestOptionsForNextPage.getContext());
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestsNextSinglePageAsync(nextLink, requestOptionsLocal);
- });
- }
-
- /**
- * 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
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime |
- * | search | String | No | 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. |
- * | lastModifiedStartTime | OffsetDateTime | No | Start DateTime(ISO 8601 literal format)
- * of the last updated time range to filter tests. |
- * | lastModifiedEndTime | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of
- * the last updated time range to filter tests. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 load tests by the fully qualified resource Id e.g
- * subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} along with
- * {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestsSinglePage(RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res = service.listTestsSync(this.client.getEndpoint(),
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * 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
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime |
- * | search | String | No | 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. |
- * | lastModifiedStartTime | OffsetDateTime | No | Start DateTime(ISO 8601 literal format)
- * of the last updated time range to filter tests. |
- * | lastModifiedEndTime | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of
- * the last updated time range to filter tests. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTests(RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedIterable<>((pageSize) -> {
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestsSinglePage(requestOptionsLocal);
- }, (nextLink, pageSize) -> {
- RequestOptions requestOptionsLocal = new RequestOptions();
- requestOptionsLocal.setContext(requestOptionsForNextPage.getContext());
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestsNextSinglePage(nextLink, requestOptionsLocal);
- });
- }
-
- /**
- * Upload input file for a given test name. 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
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | fileType | String | No | File type. Allowed values: "JMX_FILE", "USER_PROPERTIES",
- * "ADDITIONAL_ARTIFACTS". |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * Request Body Schema
- *
- *
- * {@code
- * BinaryData
- * }
- *
- *
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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.
- * @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 file info along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> uploadTestFileWithResponseAsync(String testId, String fileName, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.uploadTestFile(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Upload input file for a given test name. 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
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | fileType | String | No | File type. Allowed values: "JMX_FILE", "USER_PROPERTIES",
- * "ADDITIONAL_ARTIFACTS". |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * Request Body Schema
- *
- *
- * {@code
- * BinaryData
- * }
- *
- *
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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.
- * @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 file info along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response uploadTestFileWithResponse(String testId, String fileName, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.uploadTestFileSync(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get test file by the file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param fileName File name with file extension like app.jmx.
- * @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 file by the file name along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestFileWithResponseAsync(String testId, String fileName,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getTestFile(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get test file by the file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param fileName File name with file extension like app.jmx.
- * @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 file by the file name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestFileWithResponse(String testId, String fileName, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getTestFileSync(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Delete file by the file name for a test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param fileName File name with file extension like app.jmx.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> deleteTestFileWithResponseAsync(String testId, String fileName,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.deleteTestFile(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Delete file by the file name for a test.
- *
- * @param testId Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or
- * hyphen characters.
- * @param fileName File name with file extension like app.jmx.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestFileWithResponse(String testId, String fileName, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.deleteTestFileSync(this.client.getEndpoint(), testId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get all test files.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 all test files along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestFilesSinglePageAsync(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listTestFiles(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get all test files.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 all test files as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestFilesAsync(String testId, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedFlux<>(() -> listTestFilesSinglePageAsync(testId, requestOptions),
- nextLink -> listTestFilesNextSinglePageAsync(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * Get all test files.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 all test files along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestFilesSinglePage(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res = service.listTestFilesSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * Get all test files.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 all test files as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestFiles(String testId, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedIterable<>(() -> listTestFilesSinglePage(testId, requestOptions),
- nextLink -> listTestFilesNextSinglePage(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * Associate an app component (collection of azure resources) to a test.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * 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
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 test app component along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateAppComponentsWithResponseAsync(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateAppComponents(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Associate an app component (collection of azure resources) to a test.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * 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
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 test app component along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateAppComponentsWithResponse(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateAppComponentsSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getAppComponentsWithResponseAsync(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getAppComponents(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getAppComponentsWithResponse(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getAppComponentsSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Configure server metrics for a test.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateServerMetricsConfigWithResponseAsync(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateServerMetricsConfig(this.client.getEndpoint(),
- testId, this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Configure server metrics for a test.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateServerMetricsConfigWithResponse(String testId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateServerMetricsConfigSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * List server metrics configuration for the given test.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServerMetricsConfigWithResponseAsync(String testId,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getServerMetricsConfig(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * List server metrics configuration for the given test.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getServerMetricsConfigWithResponse(String testId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getServerMetricsConfigSync(this.client.getEndpoint(), testId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get the next page of items.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 collection of tests along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestsNextSinglePageAsync(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listTestsNext(nextLink, this.client.getEndpoint(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get the next page of items.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * 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)
- * }
- * }
- *
- *
- * @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 collection of tests along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestsNextSinglePage(String nextLink, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res
- = service.listTestsNextSync(nextLink, this.client.getEndpoint(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 collection of files along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestFilesNextSinglePageAsync(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(
- context -> service.listTestFilesNext(nextLink, this.client.getEndpoint(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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 collection of files along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestFilesNextSinglePage(String nextLink, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res
- = service.listTestFilesNextSync(nextLink, this.client.getEndpoint(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- private List getValues(BinaryData binaryData, String path) {
- try {
- Map, ?> obj = binaryData.toObject(Map.class);
- List> values = (List>) obj.get(path);
- return values.stream().map(BinaryData::fromObject).collect(Collectors.toList());
- } catch (RuntimeException e) {
- return null;
- }
- }
-
- private String getNextLink(BinaryData binaryData, String path) {
- try {
- Map, ?> obj = binaryData.toObject(Map.class);
- return (String) obj.get(path);
- } catch (RuntimeException e) {
- return null;
- }
- }
-}
diff --git a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestRunsImpl.java b/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestRunsImpl.java
deleted file mode 100644
index f585a0d8af1f..000000000000
--- a/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestRunsImpl.java
+++ /dev/null
@@ -1,3754 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.developer.loadtesting.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.exception.ClientAuthenticationException;
-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.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.RequestOptions;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.util.BinaryData;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.UrlBuilder;
-import com.azure.developer.loadtesting.LoadTestingServiceVersion;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in LoadTestRuns.
- */
-public final class LoadTestRunsImpl {
- /**
- * The proxy service used to perform REST calls.
- */
- private final LoadTestRunsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final LoadTestingClientImpl client;
-
- /**
- * Initializes an instance of LoadTestRunsImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- LoadTestRunsImpl(LoadTestingClientImpl client) {
- this.service
- = RestProxy.create(LoadTestRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * Gets Service version.
- *
- * @return the serviceVersion value.
- */
- public LoadTestingServiceVersion getServiceVersion() {
- return client.getServiceVersion();
- }
-
- /**
- * The interface defining all the services for LoadTestingClientLoadTestRuns to be used by the proxy service to
- * perform REST calls.
- */
- @Host("https://{Endpoint}")
- @ServiceInterface(name = "LoadTestingClientLoa")
- public interface LoadTestRunsService {
- @Patch("/test-runs/{testRunId}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateTestRun(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/test-runs/{testRunId}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateTestRunSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getTestRun(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getTestRunSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Delete("/test-runs/{testRunId}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteTestRun(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Delete("/test-runs/{testRunId}")
- @ExpectedResponses({ 204 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response deleteTestRunSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/files/{fileName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getTestRunFile(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @PathParam("fileName") String fileName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/files/{fileName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getTestRunFileSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @PathParam("fileName") String fileName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTestRuns(@HostParam("Endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestRunsSync(@HostParam("Endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Post("/test-runs/{testRunId}:stop")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> stopTestRun(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Post("/test-runs/{testRunId}:stop")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response stopTestRunSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-namespaces")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getMetricNamespaces(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-namespaces")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getMetricNamespacesSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-definitions")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getMetricDefinitions(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("metricNamespace") String metricNamespace,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-definitions")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getMetricDefinitionsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("metricNamespace") String metricNamespace,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Post("/test-runs/{testRunId}/metrics")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listMetrics(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("metricname") String metricName,
- @QueryParam("metricNamespace") String metricNamespace, @QueryParam("timespan") String timespan,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Post("/test-runs/{testRunId}/metrics")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listMetricsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("metricname") String metricName,
- @QueryParam("metricNamespace") String metricNamespace, @QueryParam("timespan") String timespan,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-dimensions/{name}/values")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listMetricDimensionValues(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @PathParam("name") String name,
- @QueryParam("metricname") String metricName, @QueryParam("metricNamespace") String metricNamespace,
- @QueryParam("timespan") String timespan, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/metric-dimensions/{name}/values")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listMetricDimensionValuesSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @PathParam("name") String name,
- @QueryParam("metricname") String metricName, @QueryParam("metricNamespace") String metricNamespace,
- @QueryParam("timespan") String timespan, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Patch("/test-runs/{testRunId}/app-components")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateAppComponents(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/test-runs/{testRunId}/app-components")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateAppComponentsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/app-components")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getAppComponents(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/app-components")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getAppComponentsSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Patch("/test-runs/{testRunId}/server-metrics-config")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateServerMetricsConfig(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Patch("/test-runs/{testRunId}/server-metrics-config")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateServerMetricsConfigSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData body, @HeaderParam("Accept") String accept,
- RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/server-metrics-config")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getServerMetricsConfig(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("/test-runs/{testRunId}/server-metrics-config")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getServerMetricsConfigSync(@HostParam("Endpoint") String endpoint,
- @PathParam("testRunId") String testRunId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listTestRunsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listTestRunsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listMetricsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listMetricsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("Endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
- Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listMetricDimensionValuesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("Endpoint") String endpoint,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
-
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
- @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
- @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
- @UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listMetricDimensionValuesNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("Endpoint") String endpoint,
- @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
- }
-
- /**
- * 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 (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)
- * 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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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
- *
- *
- * {@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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateTestRunWithResponseAsync(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateTestRun(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * 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 (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)
- * 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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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
- *
- *
- * {@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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateTestRunWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateTestRunSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get test run details by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 test run details by name along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestRunWithResponseAsync(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getTestRun(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get test run details by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 test run details by name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getTestRunSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Delete a test run by its name.
- *
- * @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 Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> deleteTestRunWithResponseAsync(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.deleteTestRun(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Delete a test run by its name.
- *
- * @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 Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.deleteTestRunSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get test run file by file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param fileName Test run file name with file extension.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getTestRunFileWithResponseAsync(String testRunId, String fileName,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getTestRunFile(this.client.getEndpoint(), testRunId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get test run file by file name.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @param testRunId Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore
- * or hyphen characters.
- * @param fileName Test run file name with file extension.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getTestRunFileWithResponse(String testRunId, String fileName,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getTestRunFileSync(this.client.getEndpoint(), testRunId, fileName,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestRunsSinglePageAsync(RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listTestRuns(this.client.getEndpoint(),
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listTestRunsAsync(RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedFlux<>((pageSize) -> {
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestRunsSinglePageAsync(requestOptionsLocal);
- }, (nextLink, pageSize) -> {
- RequestOptions requestOptionsLocal = new RequestOptions();
- requestOptionsLocal.setContext(requestOptionsForNextPage.getContext());
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestRunsNextSinglePageAsync(nextLink, requestOptionsLocal);
- });
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestRunsSinglePage(RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res = service.listTestRunsSync(this.client.getEndpoint(),
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * Get all test runs with given filters.
- * Query Parameters
- *
- * Query Parameters
- * | Name | Type | Required | Description |
- * | orderby | String | No | Sort on the supported fields in (field asc/desc) format. eg:
- * executedDateTime asc. Supported fields - executedDateTime |
- * | search | String | No | Prefix 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. |
- * | testId | String | No | Unique name of an existing load test. |
- * | executionFrom | OffsetDateTime | No | Start DateTime(ISO 8601 literal format) of
- * test-run execution time filter range. |
- * | executionTo | OffsetDateTime | No | End DateTime(ISO 8601 literal format) of test-run
- * execution time filter range. |
- * | status | String | No | Comma separated list of test run status. |
- * | maxpagesize | Integer | No | Number of results in response. |
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 runs with given filters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listTestRuns(RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedIterable<>((pageSize) -> {
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestRunsSinglePage(requestOptionsLocal);
- }, (nextLink, pageSize) -> {
- RequestOptions requestOptionsLocal = new RequestOptions();
- requestOptionsLocal.setContext(requestOptionsForNextPage.getContext());
- if (pageSize != null) {
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl());
- urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize));
- requestLocal.setUrl(urlBuilder.toString());
- });
- }
- return listTestRunsNextSinglePage(nextLink, requestOptionsLocal);
- });
- }
-
- /**
- * Stop test run by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> stopTestRunWithResponseAsync(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.stopTestRun(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Stop test run by name.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response stopTestRunWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.stopTestRunSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getMetricNamespacesWithResponseAsync(String testRunId,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getMetricNamespaces(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getMetricNamespacesWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getMetricNamespacesSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * 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/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)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getMetricDefinitionsWithResponseAsync(String testRunId, String metricNamespace,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getMetricDefinitions(this.client.getEndpoint(), testRunId,
- metricNamespace, this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * 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/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)
- * }
- * ]
- * }
- * ]
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getMetricDefinitionsWithResponse(String testRunId, String metricNamespace,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getMetricDefinitionsSync(this.client.getEndpoint(), testRunId, metricNamespace,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * 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
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMetricsSinglePageAsync(String testRunId, String metricName,
- String metricNamespace, String timespan, RequestOptions requestOptions) {
- final String accept = "application/json";
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) {
- requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json");
- }
- });
- return FluxUtil
- .withContext(
- context -> service.listMetrics(this.client.getEndpoint(), testRunId, metricName, metricNamespace,
- timespan, this.client.getServiceVersion().getVersion(), accept, requestOptionsLocal, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * 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
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 listMetricsAsync(String testRunId, String metricName, String metricNamespace,
- String timespan, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedFlux<>(
- () -> listMetricsSinglePageAsync(testRunId, metricName, metricNamespace, timespan, requestOptions),
- nextLink -> listMetricsNextSinglePageAsync(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * 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
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listMetricsSinglePage(String testRunId, String metricName, String metricNamespace,
- String timespan, RequestOptions requestOptions) {
- final String accept = "application/json";
- RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions;
- requestOptionsLocal.addRequestCallback(requestLocal -> {
- if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) {
- requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json");
- }
- });
- Response res
- = service.listMetricsSync(this.client.getEndpoint(), testRunId, metricName, metricNamespace, timespan,
- this.client.getServiceVersion().getVersion(), accept, requestOptionsLocal, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * 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
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listMetrics(String testRunId, String metricName, String metricNamespace,
- String timespan, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedIterable<>(
- () -> listMetricsSinglePage(testRunId, metricName, metricNamespace, timespan, requestOptions),
- nextLink -> listMetricsNextSinglePage(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * 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 along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMetricDimensionValuesSinglePageAsync(String testRunId, String name,
- String metricName, String metricNamespace, String timespan, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listMetricDimensionValues(this.client.getEndpoint(), testRunId, name,
- metricName, metricNamespace, timespan, this.client.getServiceVersion().getVersion(), accept,
- requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listMetricDimensionValuesAsync(String testRunId, String name, String metricName,
- String metricNamespace, String timespan, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedFlux<>(
- () -> listMetricDimensionValuesSinglePageAsync(testRunId, name, metricName, metricNamespace, timespan,
- requestOptions),
- nextLink -> listMetricDimensionValuesNextSinglePageAsync(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * 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 along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listMetricDimensionValuesSinglePage(String testRunId, String name,
- String metricName, String metricNamespace, String timespan, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res = service.listMetricDimensionValuesSync(this.client.getEndpoint(), testRunId, name,
- metricName, metricNamespace, timespan, this.client.getServiceVersion().getVersion(), accept, requestOptions,
- Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * 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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listMetricDimensionValues(String testRunId, String name, String metricName,
- String metricNamespace, String timespan, RequestOptions requestOptions) {
- RequestOptions requestOptionsForNextPage = new RequestOptions();
- requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
- return new PagedIterable<>(
- () -> listMetricDimensionValuesSinglePage(testRunId, name, metricName, metricNamespace, timespan,
- requestOptions),
- nextLink -> listMetricDimensionValuesNextSinglePage(nextLink, requestOptionsForNextPage));
- }
-
- /**
- * Associate an app component (collection of azure resources) to a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * 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
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateAppComponentsWithResponseAsync(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateAppComponents(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Associate an app component (collection of azure resources) to a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * 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
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateAppComponentsWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateAppComponentsSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getAppComponentsWithResponseAsync(String testRunId,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getAppComponents(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * Get associated app component (collection of azure resources) for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getAppComponentsWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getAppComponentsSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Configure server metrics for a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> createOrUpdateServerMetricsConfigWithResponseAsync(String testRunId,
- BinaryData body, RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.createOrUpdateServerMetricsConfig(this.client.getEndpoint(),
- testRunId, this.client.getServiceVersion().getVersion(), body, accept, requestOptions, context));
- }
-
- /**
- * Configure server metrics for a test run.
- * Request Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateServerMetricsConfigWithResponse(String testRunId, BinaryData body,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.createOrUpdateServerMetricsConfigSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), body, accept, requestOptions, Context.NONE);
- }
-
- /**
- * List server metrics configuration for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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 test run server metrics configuration along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getServerMetricsConfigWithResponseAsync(String testRunId,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.getServerMetricsConfig(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, context));
- }
-
- /**
- * List server metrics configuration for the given test run.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * testRunId: String (Optional)
- * metrics (Optional): {
- * String (Required): {
- * 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)
- * }
- * }
- *
- *
- * @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 test run server metrics configuration along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getServerMetricsConfigWithResponse(String testRunId, RequestOptions requestOptions) {
- final String accept = "application/json";
- return service.getServerMetricsConfigSync(this.client.getEndpoint(), testRunId,
- this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE);
- }
-
- /**
- * Get the next page of items.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 collection of test runs along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listTestRunsNextSinglePageAsync(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(
- context -> service.listTestRunsNext(nextLink, this.client.getEndpoint(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get the next page of items.
- * 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/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 (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)
- * }
- * environmentVariables (Optional): {
- * String: String (Required)
- * }
- * errorDetails (Optional): [
- * (Optional){
- * message: String (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)
- * 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)
- * }
- * }
- *
- *
- * @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 collection of test runs along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listTestRunsNextSinglePage(String nextLink, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res
- = service.listTestRunsNextSync(nextLink, this.client.getEndpoint(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 the response to a metrics query along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMetricsNextSinglePageAsync(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil.withContext(
- context -> service.listMetricsNext(nextLink, this.client.getEndpoint(), accept, requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * {
- * data (Optional): [
- * (Optional){
- * timestamp: String (Optional)
- * value: Double (Optional)
- * }
- * ]
- * dimensionValues (Optional): [
- * (Optional){
- * name: String (Optional)
- * value: 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 the response to a metrics query along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listMetricsNextSinglePage(String nextLink, RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res
- = service.listMetricsNextSync(nextLink, this.client.getEndpoint(), accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * String
- * }
- *
- *
- * @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 metrics dimension values along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMetricDimensionValuesNextSinglePageAsync(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listMetricDimensionValuesNext(nextLink, this.client.getEndpoint(), accept,
- requestOptions, context))
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
- }
-
- /**
- * Get the next page of items.
- * Response Body Schema
- *
- *
- * {@code
- * String
- * }
- *
- *
- * @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 metrics dimension values along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listMetricDimensionValuesNextSinglePage(String nextLink,
- RequestOptions requestOptions) {
- final String accept = "application/json";
- Response res = service.listMetricDimensionValuesNextSync(nextLink, this.client.getEndpoint(),
- accept, requestOptions, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
- }
-
- private List