Interface LookoutMetricsAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
This is the Amazon Lookout for Metrics API Reference. For an introduction to the service with tutorials for getting started, visit Amazon Lookout for Metrics Developer Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionactivateAnomalyDetector
(Consumer<ActivateAnomalyDetectorRequest.Builder> activateAnomalyDetectorRequest) Activates an anomaly detector.activateAnomalyDetector
(ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest) Activates an anomaly detector.backTestAnomalyDetector
(Consumer<BackTestAnomalyDetectorRequest.Builder> backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.backTestAnomalyDetector
(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.builder()
Create a builder that can be used to configure and create aLookoutMetricsAsyncClient
.static LookoutMetricsAsyncClient
create()
Create aLookoutMetricsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateAlertResponse> createAlert
(Consumer<CreateAlertRequest.Builder> createAlertRequest) Creates an alert for an anomaly detector.default CompletableFuture
<CreateAlertResponse> createAlert
(CreateAlertRequest createAlertRequest) Creates an alert for an anomaly detector.createAnomalyDetector
(Consumer<CreateAnomalyDetectorRequest.Builder> createAnomalyDetectorRequest) Creates an anomaly detector.createAnomalyDetector
(CreateAnomalyDetectorRequest createAnomalyDetectorRequest) Creates an anomaly detector.default CompletableFuture
<CreateMetricSetResponse> createMetricSet
(Consumer<CreateMetricSetRequest.Builder> createMetricSetRequest) Creates a dataset.default CompletableFuture
<CreateMetricSetResponse> createMetricSet
(CreateMetricSetRequest createMetricSetRequest) Creates a dataset.deactivateAnomalyDetector
(Consumer<DeactivateAnomalyDetectorRequest.Builder> deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.deactivateAnomalyDetector
(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.default CompletableFuture
<DeleteAlertResponse> deleteAlert
(Consumer<DeleteAlertRequest.Builder> deleteAlertRequest) Deletes an alert.default CompletableFuture
<DeleteAlertResponse> deleteAlert
(DeleteAlertRequest deleteAlertRequest) Deletes an alert.deleteAnomalyDetector
(Consumer<DeleteAnomalyDetectorRequest.Builder> deleteAnomalyDetectorRequest) Deletes a detector.deleteAnomalyDetector
(DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest) Deletes a detector.default CompletableFuture
<DescribeAlertResponse> describeAlert
(Consumer<DescribeAlertRequest.Builder> describeAlertRequest) Describes an alert.default CompletableFuture
<DescribeAlertResponse> describeAlert
(DescribeAlertRequest describeAlertRequest) Describes an alert.describeAnomalyDetectionExecutions
(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) Returns information about the status of the specified anomaly detection jobs.describeAnomalyDetectionExecutions
(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) Returns information about the status of the specified anomaly detection jobs.describeAnomalyDetectionExecutionsPaginator
(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) describeAnomalyDetectionExecutionsPaginator
(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) describeAnomalyDetector
(Consumer<DescribeAnomalyDetectorRequest.Builder> describeAnomalyDetectorRequest) Describes a detector.describeAnomalyDetector
(DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest) Describes a detector.describeMetricSet
(Consumer<DescribeMetricSetRequest.Builder> describeMetricSetRequest) Describes a dataset.describeMetricSet
(DescribeMetricSetRequest describeMetricSetRequest) Describes a dataset.detectMetricSetConfig
(Consumer<DetectMetricSetConfigRequest.Builder> detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.detectMetricSetConfig
(DetectMetricSetConfigRequest detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.default CompletableFuture
<GetAnomalyGroupResponse> getAnomalyGroup
(Consumer<GetAnomalyGroupRequest.Builder> getAnomalyGroupRequest) Returns details about a group of anomalous metrics.default CompletableFuture
<GetAnomalyGroupResponse> getAnomalyGroup
(GetAnomalyGroupRequest getAnomalyGroupRequest) Returns details about a group of anomalous metrics.getDataQualityMetrics
(Consumer<GetDataQualityMetricsRequest.Builder> getDataQualityMetricsRequest) Returns details about the requested data quality metrics.getDataQualityMetrics
(GetDataQualityMetricsRequest getDataQualityMetricsRequest) Returns details about the requested data quality metrics.default CompletableFuture
<GetFeedbackResponse> getFeedback
(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) Get feedback for an anomaly group.default CompletableFuture
<GetFeedbackResponse> getFeedback
(GetFeedbackRequest getFeedbackRequest) Get feedback for an anomaly group.default GetFeedbackPublisher
getFeedbackPaginator
(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) This is a variant ofgetFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.default GetFeedbackPublisher
getFeedbackPaginator
(GetFeedbackRequest getFeedbackRequest) This is a variant ofgetFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.default CompletableFuture
<GetSampleDataResponse> getSampleData
(Consumer<GetSampleDataRequest.Builder> getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.default CompletableFuture
<GetSampleDataResponse> getSampleData
(GetSampleDataRequest getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.default CompletableFuture
<ListAlertsResponse> listAlerts
(Consumer<ListAlertsRequest.Builder> listAlertsRequest) Lists the alerts attached to a detector.default CompletableFuture
<ListAlertsResponse> listAlerts
(ListAlertsRequest listAlertsRequest) Lists the alerts attached to a detector.default ListAlertsPublisher
listAlertsPaginator
(Consumer<ListAlertsRequest.Builder> listAlertsRequest) This is a variant oflistAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.default ListAlertsPublisher
listAlertsPaginator
(ListAlertsRequest listAlertsRequest) This is a variant oflistAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.listAnomalyDetectors
(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.listAnomalyDetectors
(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.default ListAnomalyDetectorsPublisher
listAnomalyDetectorsPaginator
(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) This is a variant oflistAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation.default ListAnomalyDetectorsPublisher
listAnomalyDetectorsPaginator
(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) This is a variant oflistAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation.listAnomalyGroupRelatedMetrics
(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) Returns a list of measures that are potential causes or effects of an anomaly group.listAnomalyGroupRelatedMetrics
(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) Returns a list of measures that are potential causes or effects of an anomaly group.listAnomalyGroupRelatedMetricsPaginator
(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) This is a variant oflistAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation.listAnomalyGroupRelatedMetricsPaginator
(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) This is a variant oflistAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation.listAnomalyGroupSummaries
(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) Returns a list of anomaly groups.listAnomalyGroupSummaries
(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) Returns a list of anomaly groups.listAnomalyGroupSummariesPaginator
(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) This is a variant oflistAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation.listAnomalyGroupSummariesPaginator
(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) This is a variant oflistAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation.listAnomalyGroupTimeSeries
(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) Gets a list of anomalous metrics for a measure in an anomaly group.listAnomalyGroupTimeSeries
(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) Gets a list of anomalous metrics for a measure in an anomaly group.listAnomalyGroupTimeSeriesPaginator
(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) This is a variant oflistAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation.listAnomalyGroupTimeSeriesPaginator
(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) This is a variant oflistAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation.default CompletableFuture
<ListMetricSetsResponse> listMetricSets
(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) Lists the datasets in the current AWS Region.default CompletableFuture
<ListMetricSetsResponse> listMetricSets
(ListMetricSetsRequest listMetricSetsRequest) Lists the datasets in the current AWS Region.default ListMetricSetsPublisher
listMetricSetsPaginator
(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) This is a variant oflistMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.default ListMetricSetsPublisher
listMetricSetsPaginator
(ListMetricSetsRequest listMetricSetsRequest) This is a variant oflistMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.default CompletableFuture
<PutFeedbackResponse> putFeedback
(Consumer<PutFeedbackRequest.Builder> putFeedbackRequest) Add feedback for an anomalous metric.default CompletableFuture
<PutFeedbackResponse> putFeedback
(PutFeedbackRequest putFeedbackRequest) Add feedback for an anomalous metric.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a detector, dataset, or alert.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds tags to a detector, dataset, or alert.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a detector, dataset, or alert.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from a detector, dataset, or alert.default CompletableFuture
<UpdateAlertResponse> updateAlert
(Consumer<UpdateAlertRequest.Builder> updateAlertRequest) Make changes to an existing alert.default CompletableFuture
<UpdateAlertResponse> updateAlert
(UpdateAlertRequest updateAlertRequest) Make changes to an existing alert.updateAnomalyDetector
(Consumer<UpdateAnomalyDetectorRequest.Builder> updateAnomalyDetectorRequest) Updates a detector.updateAnomalyDetector
(UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest) Updates a detector.default CompletableFuture
<UpdateMetricSetResponse> updateMetricSet
(Consumer<UpdateMetricSetRequest.Builder> updateMetricSetRequest) Updates a dataset.default CompletableFuture
<UpdateMetricSetResponse> updateMetricSet
(UpdateMetricSetRequest updateMetricSetRequest) Updates a dataset.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
activateAnomalyDetector
default CompletableFuture<ActivateAnomalyDetectorResponse> activateAnomalyDetector(ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest) Activates an anomaly detector.
- Parameters:
activateAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the ActivateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ConflictException There was a conflict processing the request. Try your request again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
activateAnomalyDetector
default CompletableFuture<ActivateAnomalyDetectorResponse> activateAnomalyDetector(Consumer<ActivateAnomalyDetectorRequest.Builder> activateAnomalyDetectorRequest) Activates an anomaly detector.
This is a convenience which creates an instance of the
ActivateAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaActivateAnomalyDetectorRequest.builder()
- Parameters:
activateAnomalyDetectorRequest
- AConsumer
that will call methods onActivateAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ActivateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ConflictException There was a conflict processing the request. Try your request again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
backTestAnomalyDetector
default CompletableFuture<BackTestAnomalyDetectorResponse> backTestAnomalyDetector(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.
- Parameters:
backTestAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the BackTestAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
backTestAnomalyDetector
default CompletableFuture<BackTestAnomalyDetectorResponse> backTestAnomalyDetector(Consumer<BackTestAnomalyDetectorRequest.Builder> backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.
This is a convenience which creates an instance of the
BackTestAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaBackTestAnomalyDetectorRequest.builder()
- Parameters:
backTestAnomalyDetectorRequest
- AConsumer
that will call methods onBackTestAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BackTestAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAlert
Creates an alert for an anomaly detector.
- Parameters:
createAlertRequest
-- Returns:
- A Java Future containing the result of the CreateAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAlert
default CompletableFuture<CreateAlertResponse> createAlert(Consumer<CreateAlertRequest.Builder> createAlertRequest) Creates an alert for an anomaly detector.
This is a convenience which creates an instance of the
CreateAlertRequest.Builder
avoiding the need to create one manually viaCreateAlertRequest.builder()
- Parameters:
createAlertRequest
- AConsumer
that will call methods onCreateAlertRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAnomalyDetector
default CompletableFuture<CreateAnomalyDetectorResponse> createAnomalyDetector(CreateAnomalyDetectorRequest createAnomalyDetectorRequest) Creates an anomaly detector.
- Parameters:
createAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the CreateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAnomalyDetector
default CompletableFuture<CreateAnomalyDetectorResponse> createAnomalyDetector(Consumer<CreateAnomalyDetectorRequest.Builder> createAnomalyDetectorRequest) Creates an anomaly detector.
This is a convenience which creates an instance of the
CreateAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaCreateAnomalyDetectorRequest.builder()
- Parameters:
createAnomalyDetectorRequest
- AConsumer
that will call methods onCreateAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMetricSet
default CompletableFuture<CreateMetricSetResponse> createMetricSet(CreateMetricSetRequest createMetricSetRequest) Creates a dataset.
- Parameters:
createMetricSetRequest
-- Returns:
- A Java Future containing the result of the CreateMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMetricSet
default CompletableFuture<CreateMetricSetResponse> createMetricSet(Consumer<CreateMetricSetRequest.Builder> createMetricSetRequest) Creates a dataset.
This is a convenience which creates an instance of the
CreateMetricSetRequest.Builder
avoiding the need to create one manually viaCreateMetricSetRequest.builder()
- Parameters:
createMetricSetRequest
- AConsumer
that will call methods onCreateMetricSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException There was a conflict processing the request. Try your request again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deactivateAnomalyDetector
default CompletableFuture<DeactivateAnomalyDetectorResponse> deactivateAnomalyDetector(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.
- Parameters:
deactivateAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the DeactivateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deactivateAnomalyDetector
default CompletableFuture<DeactivateAnomalyDetectorResponse> deactivateAnomalyDetector(Consumer<DeactivateAnomalyDetectorRequest.Builder> deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.
This is a convenience which creates an instance of the
DeactivateAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaDeactivateAnomalyDetectorRequest.builder()
- Parameters:
deactivateAnomalyDetectorRequest
- AConsumer
that will call methods onDeactivateAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeactivateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAlert
Deletes an alert.
- Parameters:
deleteAlertRequest
-- Returns:
- A Java Future containing the result of the DeleteAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAlert
default CompletableFuture<DeleteAlertResponse> deleteAlert(Consumer<DeleteAlertRequest.Builder> deleteAlertRequest) Deletes an alert.
This is a convenience which creates an instance of the
DeleteAlertRequest.Builder
avoiding the need to create one manually viaDeleteAlertRequest.builder()
- Parameters:
deleteAlertRequest
- AConsumer
that will call methods onDeleteAlertRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAnomalyDetector
default CompletableFuture<DeleteAnomalyDetectorResponse> deleteAnomalyDetector(DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest) Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
- Parameters:
deleteAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the DeleteAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAnomalyDetector
default CompletableFuture<DeleteAnomalyDetectorResponse> deleteAnomalyDetector(Consumer<DeleteAnomalyDetectorRequest.Builder> deleteAnomalyDetectorRequest) Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
This is a convenience which creates an instance of the
DeleteAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaDeleteAnomalyDetectorRequest.builder()
- Parameters:
deleteAnomalyDetectorRequest
- AConsumer
that will call methods onDeleteAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ConflictException There was a conflict processing the request. Try your request again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAlert
default CompletableFuture<DescribeAlertResponse> describeAlert(DescribeAlertRequest describeAlertRequest) Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
describeAlertRequest
-- Returns:
- A Java Future containing the result of the DescribeAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAlert
default CompletableFuture<DescribeAlertResponse> describeAlert(Consumer<DescribeAlertRequest.Builder> describeAlertRequest) Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
DescribeAlertRequest.Builder
avoiding the need to create one manually viaDescribeAlertRequest.builder()
- Parameters:
describeAlertRequest
- AConsumer
that will call methods onDescribeAlertRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetectionExecutions
default CompletableFuture<DescribeAnomalyDetectionExecutionsResponse> describeAnomalyDetectionExecutions(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) Returns information about the status of the specified anomaly detection jobs.
- Parameters:
describeAnomalyDetectionExecutionsRequest
-- Returns:
- A Java Future containing the result of the DescribeAnomalyDetectionExecutions operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetectionExecutions
default CompletableFuture<DescribeAnomalyDetectionExecutionsResponse> describeAnomalyDetectionExecutions(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) Returns information about the status of the specified anomaly detection jobs.
This is a convenience which creates an instance of the
DescribeAnomalyDetectionExecutionsRequest.Builder
avoiding the need to create one manually viaDescribeAnomalyDetectionExecutionsRequest.builder()
- Parameters:
describeAnomalyDetectionExecutionsRequest
- AConsumer
that will call methods onDescribeAnomalyDetectionExecutionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAnomalyDetectionExecutions operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetectionExecutionsPaginator
default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation.- Parameters:
describeAnomalyDetectionExecutionsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetectionExecutionsPaginator
default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation.
This is a convenience which creates an instance of the
DescribeAnomalyDetectionExecutionsRequest.Builder
avoiding the need to create one manually viaDescribeAnomalyDetectionExecutionsRequest.builder()
- Parameters:
describeAnomalyDetectionExecutionsRequest
- AConsumer
that will call methods onDescribeAnomalyDetectionExecutionsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetector
default CompletableFuture<DescribeAnomalyDetectorResponse> describeAnomalyDetector(DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest) Describes a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
describeAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the DescribeAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAnomalyDetector
default CompletableFuture<DescribeAnomalyDetectorResponse> describeAnomalyDetector(Consumer<DescribeAnomalyDetectorRequest.Builder> describeAnomalyDetectorRequest) Describes a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
DescribeAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaDescribeAnomalyDetectorRequest.builder()
- Parameters:
describeAnomalyDetectorRequest
- AConsumer
that will call methods onDescribeAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeMetricSet
default CompletableFuture<DescribeMetricSetResponse> describeMetricSet(DescribeMetricSetRequest describeMetricSetRequest) Describes a dataset.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
describeMetricSetRequest
-- Returns:
- A Java Future containing the result of the DescribeMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeMetricSet
default CompletableFuture<DescribeMetricSetResponse> describeMetricSet(Consumer<DescribeMetricSetRequest.Builder> describeMetricSetRequest) Describes a dataset.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
DescribeMetricSetRequest.Builder
avoiding the need to create one manually viaDescribeMetricSetRequest.builder()
- Parameters:
describeMetricSetRequest
- AConsumer
that will call methods onDescribeMetricSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
detectMetricSetConfig
default CompletableFuture<DetectMetricSetConfigResponse> detectMetricSetConfig(DetectMetricSetConfigRequest detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.
- Parameters:
detectMetricSetConfigRequest
-- Returns:
- A Java Future containing the result of the DetectMetricSetConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
detectMetricSetConfig
default CompletableFuture<DetectMetricSetConfigResponse> detectMetricSetConfig(Consumer<DetectMetricSetConfigRequest.Builder> detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.
This is a convenience which creates an instance of the
DetectMetricSetConfigRequest.Builder
avoiding the need to create one manually viaDetectMetricSetConfigRequest.builder()
- Parameters:
detectMetricSetConfigRequest
- AConsumer
that will call methods onDetectMetricSetConfigRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DetectMetricSetConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAnomalyGroup
default CompletableFuture<GetAnomalyGroupResponse> getAnomalyGroup(GetAnomalyGroupRequest getAnomalyGroupRequest) Returns details about a group of anomalous metrics.
- Parameters:
getAnomalyGroupRequest
-- Returns:
- A Java Future containing the result of the GetAnomalyGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAnomalyGroup
default CompletableFuture<GetAnomalyGroupResponse> getAnomalyGroup(Consumer<GetAnomalyGroupRequest.Builder> getAnomalyGroupRequest) Returns details about a group of anomalous metrics.
This is a convenience which creates an instance of the
GetAnomalyGroupRequest.Builder
avoiding the need to create one manually viaGetAnomalyGroupRequest.builder()
- Parameters:
getAnomalyGroupRequest
- AConsumer
that will call methods onGetAnomalyGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAnomalyGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataQualityMetrics
default CompletableFuture<GetDataQualityMetricsResponse> getDataQualityMetrics(GetDataQualityMetricsRequest getDataQualityMetricsRequest) Returns details about the requested data quality metrics.
- Parameters:
getDataQualityMetricsRequest
-- Returns:
- A Java Future containing the result of the GetDataQualityMetrics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataQualityMetrics
default CompletableFuture<GetDataQualityMetricsResponse> getDataQualityMetrics(Consumer<GetDataQualityMetricsRequest.Builder> getDataQualityMetricsRequest) Returns details about the requested data quality metrics.
This is a convenience which creates an instance of the
GetDataQualityMetricsRequest.Builder
avoiding the need to create one manually viaGetDataQualityMetricsRequest.builder()
- Parameters:
getDataQualityMetricsRequest
- AConsumer
that will call methods onGetDataQualityMetricsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetDataQualityMetrics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFeedback
Get feedback for an anomaly group.
- Parameters:
getFeedbackRequest
-- Returns:
- A Java Future containing the result of the GetFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFeedback
default CompletableFuture<GetFeedbackResponse> getFeedback(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) Get feedback for an anomaly group.
This is a convenience which creates an instance of the
GetFeedbackRequest.Builder
avoiding the need to create one manually viaGetFeedbackRequest.builder()
- Parameters:
getFeedbackRequest
- AConsumer
that will call methods onGetFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFeedbackPaginator
This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.- Parameters:
getFeedbackRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFeedbackPaginator
default GetFeedbackPublisher getFeedbackPaginator(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.
This is a convenience which creates an instance of the
GetFeedbackRequest.Builder
avoiding the need to create one manually viaGetFeedbackRequest.builder()
- Parameters:
getFeedbackRequest
- AConsumer
that will call methods onGetFeedbackRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSampleData
default CompletableFuture<GetSampleDataResponse> getSampleData(GetSampleDataRequest getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.
- Parameters:
getSampleDataRequest
-- Returns:
- A Java Future containing the result of the GetSampleData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSampleData
default CompletableFuture<GetSampleDataResponse> getSampleData(Consumer<GetSampleDataRequest.Builder> getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.
This is a convenience which creates an instance of the
GetSampleDataRequest.Builder
avoiding the need to create one manually viaGetSampleDataRequest.builder()
- Parameters:
getSampleDataRequest
- AConsumer
that will call methods onGetSampleDataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetSampleData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAlerts
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
listAlertsRequest
-- Returns:
- A Java Future containing the result of the ListAlerts operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAlerts
default CompletableFuture<ListAlertsResponse> listAlerts(Consumer<ListAlertsRequest.Builder> listAlertsRequest) Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
ListAlertsRequest.Builder
avoiding the need to create one manually viaListAlertsRequest.builder()
- Parameters:
listAlertsRequest
- AConsumer
that will call methods onListAlertsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAlerts operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAlertsPaginator
This is a variant of
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.- Parameters:
listAlertsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAlertsPaginator
default ListAlertsPublisher listAlertsPaginator(Consumer<ListAlertsRequest.Builder> listAlertsRequest) This is a variant of
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.
This is a convenience which creates an instance of the
ListAlertsRequest.Builder
avoiding the need to create one manually viaListAlertsRequest.builder()
- Parameters:
listAlertsRequest
- AConsumer
that will call methods onListAlertsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyDetectors
default CompletableFuture<ListAnomalyDetectorsResponse> listAnomalyDetectors(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
listAnomalyDetectorsRequest
-- Returns:
- A Java Future containing the result of the ListAnomalyDetectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyDetectors
default CompletableFuture<ListAnomalyDetectorsResponse> listAnomalyDetectors(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
ListAnomalyDetectorsRequest.Builder
avoiding the need to create one manually viaListAnomalyDetectorsRequest.builder()
- Parameters:
listAnomalyDetectorsRequest
- AConsumer
that will call methods onListAnomalyDetectorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAnomalyDetectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyDetectorsPaginator
default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation.- Parameters:
listAnomalyDetectorsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyDetectorsPaginator
default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation.
This is a convenience which creates an instance of the
ListAnomalyDetectorsRequest.Builder
avoiding the need to create one manually viaListAnomalyDetectorsRequest.builder()
- Parameters:
listAnomalyDetectorsRequest
- AConsumer
that will call methods onListAnomalyDetectorsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupRelatedMetrics
default CompletableFuture<ListAnomalyGroupRelatedMetricsResponse> listAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) Returns a list of measures that are potential causes or effects of an anomaly group.
- Parameters:
listAnomalyGroupRelatedMetricsRequest
-- Returns:
- A Java Future containing the result of the ListAnomalyGroupRelatedMetrics operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupRelatedMetrics
default CompletableFuture<ListAnomalyGroupRelatedMetricsResponse> listAnomalyGroupRelatedMetrics(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) Returns a list of measures that are potential causes or effects of an anomaly group.
This is a convenience which creates an instance of the
ListAnomalyGroupRelatedMetricsRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupRelatedMetricsRequest.builder()
- Parameters:
listAnomalyGroupRelatedMetricsRequest
- AConsumer
that will call methods onListAnomalyGroupRelatedMetricsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAnomalyGroupRelatedMetrics operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupRelatedMetricsPaginator
default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation.- Parameters:
listAnomalyGroupRelatedMetricsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupRelatedMetricsPaginator
default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation.
This is a convenience which creates an instance of the
ListAnomalyGroupRelatedMetricsRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupRelatedMetricsRequest.builder()
- Parameters:
listAnomalyGroupRelatedMetricsRequest
- AConsumer
that will call methods onListAnomalyGroupRelatedMetricsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupSummaries
default CompletableFuture<ListAnomalyGroupSummariesResponse> listAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) Returns a list of anomaly groups.
- Parameters:
listAnomalyGroupSummariesRequest
-- Returns:
- A Java Future containing the result of the ListAnomalyGroupSummaries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupSummaries
default CompletableFuture<ListAnomalyGroupSummariesResponse> listAnomalyGroupSummaries(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) Returns a list of anomaly groups.
This is a convenience which creates an instance of the
ListAnomalyGroupSummariesRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupSummariesRequest.builder()
- Parameters:
listAnomalyGroupSummariesRequest
- AConsumer
that will call methods onListAnomalyGroupSummariesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAnomalyGroupSummaries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupSummariesPaginator
default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation.- Parameters:
listAnomalyGroupSummariesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupSummariesPaginator
default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation.
This is a convenience which creates an instance of the
ListAnomalyGroupSummariesRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupSummariesRequest.builder()
- Parameters:
listAnomalyGroupSummariesRequest
- AConsumer
that will call methods onListAnomalyGroupSummariesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupTimeSeries
default CompletableFuture<ListAnomalyGroupTimeSeriesResponse> listAnomalyGroupTimeSeries(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) Gets a list of anomalous metrics for a measure in an anomaly group.
- Parameters:
listAnomalyGroupTimeSeriesRequest
-- Returns:
- A Java Future containing the result of the ListAnomalyGroupTimeSeries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupTimeSeries
default CompletableFuture<ListAnomalyGroupTimeSeriesResponse> listAnomalyGroupTimeSeries(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) Gets a list of anomalous metrics for a measure in an anomaly group.
This is a convenience which creates an instance of the
ListAnomalyGroupTimeSeriesRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupTimeSeriesRequest.builder()
- Parameters:
listAnomalyGroupTimeSeriesRequest
- AConsumer
that will call methods onListAnomalyGroupTimeSeriesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAnomalyGroupTimeSeries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupTimeSeriesPaginator
default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation.- Parameters:
listAnomalyGroupTimeSeriesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnomalyGroupTimeSeriesPaginator
default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation.
This is a convenience which creates an instance of the
ListAnomalyGroupTimeSeriesRequest.Builder
avoiding the need to create one manually viaListAnomalyGroupTimeSeriesRequest.builder()
- Parameters:
listAnomalyGroupTimeSeriesRequest
- AConsumer
that will call methods onListAnomalyGroupTimeSeriesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricSets
default CompletableFuture<ListMetricSetsResponse> listMetricSets(ListMetricSetsRequest listMetricSetsRequest) Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
- Parameters:
listMetricSetsRequest
-- Returns:
- A Java Future containing the result of the ListMetricSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricSets
default CompletableFuture<ListMetricSetsResponse> listMetricSets(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the
ListMetricSetsRequest.Builder
avoiding the need to create one manually viaListMetricSetsRequest.builder()
- Parameters:
listMetricSetsRequest
- AConsumer
that will call methods onListMetricSetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListMetricSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricSetsPaginator
default ListMetricSetsPublisher listMetricSetsPaginator(ListMetricSetsRequest listMetricSetsRequest) This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.- Parameters:
listMetricSetsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricSetsPaginator
default ListMetricSetsPublisher listMetricSetsPaginator(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.
This is a convenience which creates an instance of the
ListMetricSetsRequest.Builder
avoiding the need to create one manually viaListMetricSetsRequest.builder()
- Parameters:
listMetricSetsRequest
- AConsumer
that will call methods onListMetricSetsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putFeedback
Add feedback for an anomalous metric.
- Parameters:
putFeedbackRequest
-- Returns:
- A Java Future containing the result of the PutFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putFeedback
default CompletableFuture<PutFeedbackResponse> putFeedback(Consumer<PutFeedbackRequest.Builder> putFeedbackRequest) Add feedback for an anomalous metric.
This is a convenience which creates an instance of the
PutFeedbackRequest.Builder
avoiding the need to create one manually viaPutFeedbackRequest.builder()
- Parameters:
putFeedbackRequest
- AConsumer
that will call methods onPutFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds tags to a detector, dataset, or alert.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a detector, dataset, or alert.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a detector, dataset, or alert.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a detector, dataset, or alert.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAlert
Make changes to an existing alert.
- Parameters:
updateAlertRequest
-- Returns:
- A Java Future containing the result of the UpdateAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAlert
default CompletableFuture<UpdateAlertResponse> updateAlert(Consumer<UpdateAlertRequest.Builder> updateAlertRequest) Make changes to an existing alert.
This is a convenience which creates an instance of the
UpdateAlertRequest.Builder
avoiding the need to create one manually viaUpdateAlertRequest.builder()
- Parameters:
updateAlertRequest
- AConsumer
that will call methods onUpdateAlertRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateAlert operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAnomalyDetector
default CompletableFuture<UpdateAnomalyDetectorResponse> updateAnomalyDetector(UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest) Updates a detector. After activation, you can only change a detector's ingestion delay and description.
- Parameters:
updateAnomalyDetectorRequest
-- Returns:
- A Java Future containing the result of the UpdateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAnomalyDetector
default CompletableFuture<UpdateAnomalyDetectorResponse> updateAnomalyDetector(Consumer<UpdateAnomalyDetectorRequest.Builder> updateAnomalyDetectorRequest) Updates a detector. After activation, you can only change a detector's ingestion delay and description.
This is a convenience which creates an instance of the
UpdateAnomalyDetectorRequest.Builder
avoiding the need to create one manually viaUpdateAnomalyDetectorRequest.builder()
- Parameters:
updateAnomalyDetectorRequest
- AConsumer
that will call methods onUpdateAnomalyDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateAnomalyDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMetricSet
default CompletableFuture<UpdateMetricSetResponse> updateMetricSet(UpdateMetricSetRequest updateMetricSetRequest) Updates a dataset.
- Parameters:
updateMetricSetRequest
-- Returns:
- A Java Future containing the result of the UpdateMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMetricSet
default CompletableFuture<UpdateMetricSetResponse> updateMetricSet(Consumer<UpdateMetricSetRequest.Builder> updateMetricSetRequest) Updates a dataset.
This is a convenience which creates an instance of the
UpdateMetricSetRequest.Builder
avoiding the need to create one manually viaUpdateMetricSetRequest.builder()
- Parameters:
updateMetricSetRequest
- AConsumer
that will call methods onUpdateMetricSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateMetricSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and try again.
- ValidationException The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
- InternalServerException The request processing has failed because of an unknown error, exception, or failure.
- AccessDeniedException You do not have sufficient permissions to perform this action.
- TooManyRequestsException The request was denied due to too many requests being submitted at the same time.
- ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aLookoutMetricsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLookoutMetricsAsyncClient
.
-