Class OnlineExperimentationAsyncClient
java.lang.Object
com.azure.analytics.onlineexperimentation.OnlineExperimentationAsyncClient
Initializes a new instance of the asynchronous OnlineExperimentationClient type.
-
Method Summary
Modifier and TypeMethodDescriptionactivateMetric(String experimentMetricId) Updates the experiment metric lifecycle toLifecycleStage.ACTIVE.activateMetric(String experimentMetricId, String ifMatch) Updates the experiment metric lifecycle toLifecycleStage.ACTIVE.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> activateMetricWithResponse(String experimentMetricId) Activates an experiment metric with a response.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> activateMetricWithResponse(String experimentMetricId, String ifMatch) Activates an experiment metric with a response.createMetric(String experimentMetricId, ExperimentMetric resource) Creates or updates an experiment metric.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> createMetricWithResponse(String experimentMetricId, ExperimentMetric resource) Creates an experiment metric with a response.createOrUpdateMetric(String experimentMetricId, ExperimentMetric resource) Creates or updates an experiment metric.createOrUpdateMetric(String experimentMetricId, ExperimentMetric resource, com.azure.core.http.RequestConditions requestConditions) Creates or updates an experiment metric.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> createOrUpdateMetricWithResponse(String experimentMetricId, ExperimentMetric resource, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates an experiment metric with response.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> createOrUpdateMetricWithResponse(String experimentMetricId, com.azure.core.util.BinaryData resource, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates an experiment metric.deactivateMetric(String experimentMetricId) Updates the experiment metric lifecycle toLifecycleStage.INACTIVE.deactivateMetric(String experimentMetricId, String ifMatch) Updates the experiment metric lifecycle toLifecycleStage.INACTIVE.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> deactivateMetricWithResponse(String experimentMetricId) Deactivates an experiment metric with a response.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> deactivateMetricWithResponse(String experimentMetricId, String ifMatch) Deactivates an experiment metric with a response.deleteMetric(String experimentMetricId) Deletes an experiment metric.deleteMetric(String experimentMetricId, com.azure.core.http.RequestConditions requestConditions) Deletes an experiment metric.deleteMetricWithResponse(String experimentMetricId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes an experiment metric.Fetches an experiment metric by ID.Fetches an experiment metric by ID.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getMetricWithResponse(String experimentMetricId, com.azure.core.http.rest.RequestOptions requestOptions) Fetches an experiment metric by ID.com.azure.core.http.rest.PagedFlux<ExperimentMetric> Lists experiment metrics.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listMetrics(com.azure.core.http.rest.RequestOptions requestOptions) Lists experiment metrics.com.azure.core.http.rest.PagedFlux<ExperimentMetric> listMetrics(Integer top, Integer skip) Lists experiment metrics.updateMetric(String experimentMetricId, ExperimentMetric resource) Creates or updates an experiment metric.updateMetric(String experimentMetricId, ExperimentMetric resource, String ifMatch) Creates or updates an experiment metric.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> updateMetricWithResponse(String experimentMetricId, ExperimentMetric resource) Updates an experiment metric with a response.Mono<com.azure.core.http.rest.Response<ExperimentMetric>> updateMetricWithResponse(String experimentMetricId, ExperimentMetric resource, String ifMatch) Updates an experiment metric with a response.Validates an experiment metric definition.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> validateMetricWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions) Validates an experiment metric definition.
-
Method Details
-
getMetricWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getMetricWithResponse(String experimentMetricId, com.azure.core.http.rest.RequestOptions requestOptions) Fetches an experiment metric by ID.Header Parameters
You can add these to a request withHeader Parameters Name Type Required Description If-Match String No The request should only proceed if an entity matches this string. If-None-Match String No The request should only proceed if no entity matches this string. If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time. If-Modified-Since OffsetDateTime No The request should only proceed if the entity was modified after this time. RequestOptions.addHeader(java.lang.String, java.lang.String)Response Body Schema
{ id: String (Required) lifecycle: String(Active/Inactive) (Optional, Required on create) displayName: String (Optional, Required on create) description: String (Optional, Required on create) categories (Optional, Required on create): [ String (Optional, Required on create) ] desiredDirection: String(Increase/Decrease/Neutral) (Optional, Required on create) definition (Optional, Required on create): { type: String(EventCount/UserCount/EventRate/UserRate/Sum/Average/Percentile) (Required) } eTag: String (Required) lastModifiedAt: OffsetDateTime (Required) }- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
createOrUpdateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> createOrUpdateMetricWithResponse(String experimentMetricId, com.azure.core.util.BinaryData resource, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates an experiment metric.Header Parameters
You can add these to a request withHeader Parameters Name Type Required Description If-Match String No The request should only proceed if an entity matches this string. If-None-Match String No The request should only proceed if no entity matches this string. If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time. If-Modified-Since OffsetDateTime No The request should only proceed if the entity was modified after this time. RequestOptions.addHeader(java.lang.String, java.lang.String)Request Body Schema
{ id: String (Required) lifecycle: String(Active/Inactive) (Optional, Required on create) displayName: String (Optional, Required on create) description: String (Optional, Required on create) categories (Optional, Required on create): [ String (Optional, Required on create) ] desiredDirection: String(Increase/Decrease/Neutral) (Optional, Required on create) definition (Optional, Required on create): { type: String(EventCount/UserCount/EventRate/UserRate/Sum/Average/Percentile) (Required) } eTag: String (Required) lastModifiedAt: OffsetDateTime (Required) }Response Body Schema
{ id: String (Required) lifecycle: String(Active/Inactive) (Optional, Required on create) displayName: String (Optional, Required on create) description: String (Optional, Required on create) categories (Optional, Required on create): [ String (Optional, Required on create) ] desiredDirection: String(Increase/Decrease/Neutral) (Optional, Required on create) definition (Optional, Required on create): { type: String(EventCount/UserCount/EventRate/UserRate/Sum/Average/Percentile) (Required) } eTag: String (Required) lastModifiedAt: OffsetDateTime (Required) }- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
validateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> validateMetricWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions) Validates an experiment metric definition.Request Body Schema
{ id: String (Required) lifecycle: String(Active/Inactive) (Optional, Required on create) displayName: String (Optional, Required on create) description: String (Optional, Required on create) categories (Optional, Required on create): [ String (Optional, Required on create) ] desiredDirection: String(Increase/Decrease/Neutral) (Optional, Required on create) definition (Optional, Required on create): { type: String(EventCount/UserCount/EventRate/UserRate/Sum/Average/Percentile) (Required) } eTag: String (Required) lastModifiedAt: OffsetDateTime (Required) }Response Body Schema
{ isValid: boolean (Required) diagnostics (Required): [ (Required){ message: String (Required) code: String(FailedSchemaValidation/InvalidEventCondition/UnsupportedEventCondition/InvalidExperimentMetricDefinition) (Required) } ] }- Parameters:
body- Experiment metric input to validate.requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the result of validating an experiment metric along with
Responseon successful completion ofMono. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
deleteMetricWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteMetricWithResponse(String experimentMetricId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes an experiment metric.Header Parameters
You can add these to a request withHeader Parameters Name Type Required Description If-Match String No The request should only proceed if an entity matches this string. If-None-Match String No The request should only proceed if no entity matches this string. If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time. If-Modified-Since OffsetDateTime No The request should only proceed if the entity was modified after this time. RequestOptions.addHeader(java.lang.String, java.lang.String)- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Responseon successful completion ofMono. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
listMetrics
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listMetrics(com.azure.core.http.rest.RequestOptions requestOptions) Lists experiment metrics.Query Parameters
You can add these to a request withQuery Parameters Name Type Required Description top Integer No The number of result items to return. skip Integer No The number of result items to skip. maxpagesize Integer No The maximum number of result items per page. RequestOptions.addQueryParam(java.lang.String, java.lang.String)Response Body Schema
{ id: String (Required) lifecycle: String(Active/Inactive) (Optional, Required on create) displayName: String (Optional, Required on create) description: String (Optional, Required on create) categories (Optional, Required on create): [ String (Optional, Required on create) ] desiredDirection: String(Increase/Decrease/Neutral) (Optional, Required on create) definition (Optional, Required on create): { type: String(EventCount/UserCount/EventRate/UserRate/Sum/Average/Percentile) (Required) } eTag: String (Required) lastModifiedAt: OffsetDateTime (Required) }- Parameters:
requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged collection of ExperimentMetric items as paginated response with
PagedFlux. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
getMetric
public Mono<ExperimentMetric> getMetric(String experimentMetricId, com.azure.core.http.RequestConditions requestConditions) Fetches an experiment metric by ID.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.requestConditions- Specifies HTTP options for conditional requests based on modification time.- Returns:
- defines experiment metric metadata and computation details on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getMetric
Fetches an experiment metric by ID.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- defines experiment metric metadata and computation details on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateMetric
public Mono<ExperimentMetric> createOrUpdateMetric(String experimentMetricId, ExperimentMetric resource, com.azure.core.http.RequestConditions requestConditions) Creates or updates an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.requestConditions- Specifies HTTP options for conditional requests based on modification time.- Returns:
- defines experiment metric metadata and computation details on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateMetric
public Mono<ExperimentMetric> createOrUpdateMetric(String experimentMetricId, ExperimentMetric resource) Creates or updates an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.- Returns:
- defines experiment metric metadata and computation details on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
validateMetric
Validates an experiment metric definition.- Parameters:
body- Experiment metric input to validate.- Returns:
- the result of validating an experiment metric on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteMetric
public Mono<Void> deleteMetric(String experimentMetricId, com.azure.core.http.RequestConditions requestConditions) Deletes an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.requestConditions- Specifies HTTP options for conditional requests based on modification time.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteMetric
Deletes an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
Lists experiment metrics.- Parameters:
top- The number of result items to return.skip- The number of result items to skip.- Returns:
- paged collection of ExperimentMetric items as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
Lists experiment metrics.- Returns:
- paged collection of ExperimentMetric items as paginated response with
PagedFlux. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> createOrUpdateMetricWithResponse(String experimentMetricId, ExperimentMetric resource, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates an experiment metric with response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.requestOptions- The options to configure the HTTP request.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createMetric
Creates or updates an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> createMetricWithResponse(String experimentMetricId, ExperimentMetric resource) Creates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateMetric
public Mono<ExperimentMetric> updateMetric(String experimentMetricId, ExperimentMetric resource, String ifMatch) Creates or updates an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> updateMetricWithResponse(String experimentMetricId, ExperimentMetric resource, String ifMatch) Updates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateMetric
Creates or updates an experiment metric.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> updateMetricWithResponse(String experimentMetricId, ExperimentMetric resource) Updates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.resource- The resource instance.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
activateMetric
Updates the experiment metric lifecycle toLifecycleStage.ACTIVE.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
activateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> activateMetricWithResponse(String experimentMetricId, String ifMatch) Activates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
activateMetric
Updates the experiment metric lifecycle toLifecycleStage.ACTIVE.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
activateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> activateMetricWithResponse(String experimentMetricId) Activates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deactivateMetric
Updates the experiment metric lifecycle toLifecycleStage.INACTIVE.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deactivateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> deactivateMetricWithResponse(String experimentMetricId, String ifMatch) Deactivates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.ifMatch- The ETag value to match for the request.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deactivateMetric
Updates the experiment metric lifecycle toLifecycleStage.INACTIVE.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- defines experiment metric metadata and computation details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deactivateMetricWithResponse
public Mono<com.azure.core.http.rest.Response<ExperimentMetric>> deactivateMetricWithResponse(String experimentMetricId) Deactivates an experiment metric with a response.- Parameters:
experimentMetricId- Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- defines experiment metric metadata and computation details along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-