Interface LookoutMetricsClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
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 TypeMethodDescriptiondefault ActivateAnomalyDetectorResponse
activateAnomalyDetector
(Consumer<ActivateAnomalyDetectorRequest.Builder> activateAnomalyDetectorRequest) Activates an anomaly detector.default ActivateAnomalyDetectorResponse
activateAnomalyDetector
(ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest) Activates an anomaly detector.default BackTestAnomalyDetectorResponse
backTestAnomalyDetector
(Consumer<BackTestAnomalyDetectorRequest.Builder> backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.default BackTestAnomalyDetectorResponse
backTestAnomalyDetector
(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) Runs a backtest for anomaly detection for the specified resource.static LookoutMetricsClientBuilder
builder()
Create a builder that can be used to configure and create aLookoutMetricsClient
.static LookoutMetricsClient
create()
Create aLookoutMetricsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateAlertResponse
createAlert
(Consumer<CreateAlertRequest.Builder> createAlertRequest) Creates an alert for an anomaly detector.default CreateAlertResponse
createAlert
(CreateAlertRequest createAlertRequest) Creates an alert for an anomaly detector.default CreateAnomalyDetectorResponse
createAnomalyDetector
(Consumer<CreateAnomalyDetectorRequest.Builder> createAnomalyDetectorRequest) Creates an anomaly detector.default CreateAnomalyDetectorResponse
createAnomalyDetector
(CreateAnomalyDetectorRequest createAnomalyDetectorRequest) Creates an anomaly detector.default CreateMetricSetResponse
createMetricSet
(Consumer<CreateMetricSetRequest.Builder> createMetricSetRequest) Creates a dataset.default CreateMetricSetResponse
createMetricSet
(CreateMetricSetRequest createMetricSetRequest) Creates a dataset.deactivateAnomalyDetector
(Consumer<DeactivateAnomalyDetectorRequest.Builder> deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.deactivateAnomalyDetector
(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) Deactivates an anomaly detector.default DeleteAlertResponse
deleteAlert
(Consumer<DeleteAlertRequest.Builder> deleteAlertRequest) Deletes an alert.default DeleteAlertResponse
deleteAlert
(DeleteAlertRequest deleteAlertRequest) Deletes an alert.default DeleteAnomalyDetectorResponse
deleteAnomalyDetector
(Consumer<DeleteAnomalyDetectorRequest.Builder> deleteAnomalyDetectorRequest) Deletes a detector.default DeleteAnomalyDetectorResponse
deleteAnomalyDetector
(DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest) Deletes a detector.default DescribeAlertResponse
describeAlert
(Consumer<DescribeAlertRequest.Builder> describeAlertRequest) Describes an alert.default 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) default DescribeAnomalyDetectorResponse
describeAnomalyDetector
(Consumer<DescribeAnomalyDetectorRequest.Builder> describeAnomalyDetectorRequest) Describes a detector.default DescribeAnomalyDetectorResponse
describeAnomalyDetector
(DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest) Describes a detector.default DescribeMetricSetResponse
describeMetricSet
(Consumer<DescribeMetricSetRequest.Builder> describeMetricSetRequest) Describes a dataset.default DescribeMetricSetResponse
describeMetricSet
(DescribeMetricSetRequest describeMetricSetRequest) Describes a dataset.default DetectMetricSetConfigResponse
detectMetricSetConfig
(Consumer<DetectMetricSetConfigRequest.Builder> detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.default DetectMetricSetConfigResponse
detectMetricSetConfig
(DetectMetricSetConfigRequest detectMetricSetConfigRequest) Detects an Amazon S3 dataset's file format, interval, and offset.default GetAnomalyGroupResponse
getAnomalyGroup
(Consumer<GetAnomalyGroupRequest.Builder> getAnomalyGroupRequest) Returns details about a group of anomalous metrics.default GetAnomalyGroupResponse
getAnomalyGroup
(GetAnomalyGroupRequest getAnomalyGroupRequest) Returns details about a group of anomalous metrics.default GetDataQualityMetricsResponse
getDataQualityMetrics
(Consumer<GetDataQualityMetricsRequest.Builder> getDataQualityMetricsRequest) Returns details about the requested data quality metrics.default GetDataQualityMetricsResponse
getDataQualityMetrics
(GetDataQualityMetricsRequest getDataQualityMetricsRequest) Returns details about the requested data quality metrics.default GetFeedbackResponse
getFeedback
(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) Get feedback for an anomaly group.default GetFeedbackResponse
getFeedback
(GetFeedbackRequest getFeedbackRequest) Get feedback for an anomaly group.default GetFeedbackIterable
getFeedbackPaginator
(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) This is a variant ofgetFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.default GetFeedbackIterable
getFeedbackPaginator
(GetFeedbackRequest getFeedbackRequest) This is a variant ofgetFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation.default GetSampleDataResponse
getSampleData
(Consumer<GetSampleDataRequest.Builder> getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.default GetSampleDataResponse
getSampleData
(GetSampleDataRequest getSampleDataRequest) Returns a selection of sample records from an Amazon S3 datasource.default ListAlertsResponse
listAlerts
(Consumer<ListAlertsRequest.Builder> listAlertsRequest) Lists the alerts attached to a detector.default ListAlertsResponse
listAlerts
(ListAlertsRequest listAlertsRequest) Lists the alerts attached to a detector.default ListAlertsIterable
listAlertsPaginator
(Consumer<ListAlertsRequest.Builder> listAlertsRequest) This is a variant oflistAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.default ListAlertsIterable
listAlertsPaginator
(ListAlertsRequest listAlertsRequest) This is a variant oflistAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation.default ListAnomalyDetectorsResponse
listAnomalyDetectors
(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.default ListAnomalyDetectorsResponse
listAnomalyDetectors
(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) Lists the detectors in the current AWS Region.default ListAnomalyDetectorsIterable
listAnomalyDetectorsPaginator
(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) This is a variant oflistAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation.default ListAnomalyDetectorsIterable
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 ListMetricSetsResponse
listMetricSets
(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) Lists the datasets in the current AWS Region.default ListMetricSetsResponse
listMetricSets
(ListMetricSetsRequest listMetricSetsRequest) Lists the datasets in the current AWS Region.default ListMetricSetsIterable
listMetricSetsPaginator
(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) This is a variant oflistMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.default ListMetricSetsIterable
listMetricSetsPaginator
(ListMetricSetsRequest listMetricSetsRequest) This is a variant oflistMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Gets a list of tags for a detector, dataset, or alert.default PutFeedbackResponse
putFeedback
(Consumer<PutFeedbackRequest.Builder> putFeedbackRequest) Add feedback for an anomalous metric.default PutFeedbackResponse
putFeedback
(PutFeedbackRequest putFeedbackRequest) Add feedback for an anomalous metric.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a detector, dataset, or alert.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds tags to a detector, dataset, or alert.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a detector, dataset, or alert.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from a detector, dataset, or alert.default UpdateAlertResponse
updateAlert
(Consumer<UpdateAlertRequest.Builder> updateAlertRequest) Make changes to an existing alert.default UpdateAlertResponse
updateAlert
(UpdateAlertRequest updateAlertRequest) Make changes to an existing alert.default UpdateAnomalyDetectorResponse
updateAnomalyDetector
(Consumer<UpdateAnomalyDetectorRequest.Builder> updateAnomalyDetectorRequest) Updates a detector.default UpdateAnomalyDetectorResponse
updateAnomalyDetector
(UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest) Updates a detector.default UpdateMetricSetResponse
updateMetricSet
(Consumer<UpdateMetricSetRequest.Builder> updateMetricSetRequest) Updates a dataset.default 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 ActivateAnomalyDetectorResponse activateAnomalyDetector(ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, LookoutMetricsException Activates an anomaly detector.
- Parameters:
activateAnomalyDetectorRequest
-- Returns:
- Result of the ActivateAnomalyDetector operation returned by the service.
- See Also:
-
activateAnomalyDetector
default ActivateAnomalyDetectorResponse activateAnomalyDetector(Consumer<ActivateAnomalyDetectorRequest.Builder> activateAnomalyDetectorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ActivateAnomalyDetector operation returned by the service.
- See Also:
-
backTestAnomalyDetector
default BackTestAnomalyDetectorResponse backTestAnomalyDetector(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Runs a backtest for anomaly detection for the specified resource.
- Parameters:
backTestAnomalyDetectorRequest
-- Returns:
- Result of the BackTestAnomalyDetector operation returned by the service.
- See Also:
-
backTestAnomalyDetector
default BackTestAnomalyDetectorResponse backTestAnomalyDetector(Consumer<BackTestAnomalyDetectorRequest.Builder> backTestAnomalyDetectorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the BackTestAnomalyDetector operation returned by the service.
- See Also:
-
createAlert
default CreateAlertResponse createAlert(CreateAlertRequest createAlertRequest) throws ConflictException, ValidationException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Creates an alert for an anomaly detector.
- Parameters:
createAlertRequest
-- Returns:
- Result of the CreateAlert operation returned by the service.
- See Also:
-
createAlert
default CreateAlertResponse createAlert(Consumer<CreateAlertRequest.Builder> createAlertRequest) throws ConflictException, ValidationException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the CreateAlert operation returned by the service.
- See Also:
-
createAnomalyDetector
default CreateAnomalyDetectorResponse createAnomalyDetector(CreateAnomalyDetectorRequest createAnomalyDetectorRequest) throws ConflictException, ValidationException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Creates an anomaly detector.
- Parameters:
createAnomalyDetectorRequest
-- Returns:
- Result of the CreateAnomalyDetector operation returned by the service.
- See Also:
-
createAnomalyDetector
default CreateAnomalyDetectorResponse createAnomalyDetector(Consumer<CreateAnomalyDetectorRequest.Builder> createAnomalyDetectorRequest) throws ConflictException, ValidationException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the CreateAnomalyDetector operation returned by the service.
- See Also:
-
createMetricSet
default CreateMetricSetResponse createMetricSet(CreateMetricSetRequest createMetricSetRequest) throws ConflictException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Creates a dataset.
- Parameters:
createMetricSetRequest
-- Returns:
- Result of the CreateMetricSet operation returned by the service.
- See Also:
-
createMetricSet
default CreateMetricSetResponse createMetricSet(Consumer<CreateMetricSetRequest.Builder> createMetricSetRequest) throws ConflictException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the CreateMetricSet operation returned by the service.
- See Also:
-
deactivateAnomalyDetector
default DeactivateAnomalyDetectorResponse deactivateAnomalyDetector(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) throws ValidationException, ConflictException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Deactivates an anomaly detector.
- Parameters:
deactivateAnomalyDetectorRequest
-- Returns:
- Result of the DeactivateAnomalyDetector operation returned by the service.
- See Also:
-
deactivateAnomalyDetector
default DeactivateAnomalyDetectorResponse deactivateAnomalyDetector(Consumer<DeactivateAnomalyDetectorRequest.Builder> deactivateAnomalyDetectorRequest) throws ValidationException, ConflictException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DeactivateAnomalyDetector operation returned by the service.
- See Also:
-
deleteAlert
default DeleteAlertResponse deleteAlert(DeleteAlertRequest deleteAlertRequest) throws ResourceNotFoundException, ValidationException, TooManyRequestsException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Deletes an alert.
- Parameters:
deleteAlertRequest
-- Returns:
- Result of the DeleteAlert operation returned by the service.
- See Also:
-
deleteAlert
default DeleteAlertResponse deleteAlert(Consumer<DeleteAlertRequest.Builder> deleteAlertRequest) throws ResourceNotFoundException, ValidationException, TooManyRequestsException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DeleteAlert operation returned by the service.
- See Also:
-
deleteAnomalyDetector
default DeleteAnomalyDetectorResponse deleteAnomalyDetector(DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, ConflictException, TooManyRequestsException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
- Parameters:
deleteAnomalyDetectorRequest
-- Returns:
- Result of the DeleteAnomalyDetector operation returned by the service.
- See Also:
-
deleteAnomalyDetector
default DeleteAnomalyDetectorResponse deleteAnomalyDetector(Consumer<DeleteAnomalyDetectorRequest.Builder> deleteAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, ConflictException, TooManyRequestsException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DeleteAnomalyDetector operation returned by the service.
- See Also:
-
describeAlert
default DescribeAlertResponse describeAlert(DescribeAlertRequest describeAlertRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeAlert operation returned by the service.
- See Also:
-
describeAlert
default DescribeAlertResponse describeAlert(Consumer<DescribeAlertRequest.Builder> describeAlertRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeAlert operation returned by the service.
- See Also:
-
describeAnomalyDetectionExecutions
default DescribeAnomalyDetectionExecutionsResponse describeAnomalyDetectionExecutions(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Returns information about the status of the specified anomaly detection jobs.
- Parameters:
describeAnomalyDetectionExecutionsRequest
-- Returns:
- Result of the DescribeAnomalyDetectionExecutions operation returned by the service.
- See Also:
-
describeAnomalyDetectionExecutions
default DescribeAnomalyDetectionExecutionsResponse describeAnomalyDetectionExecutions(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeAnomalyDetectionExecutions operation returned by the service.
- See Also:
-
describeAnomalyDetectionExecutionsPaginator
default DescribeAnomalyDetectionExecutionsIterable describeAnomalyDetectionExecutionsPaginator(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client.describeAnomalyDetectionExecutionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client .describeAnomalyDetectionExecutionsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client.describeAnomalyDetectionExecutionsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
describeAnomalyDetectionExecutionsPaginator
default DescribeAnomalyDetectionExecutionsIterable describeAnomalyDetectionExecutionsPaginator(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client.describeAnomalyDetectionExecutionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client .describeAnomalyDetectionExecutionsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsIterable responses = client.describeAnomalyDetectionExecutionsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
describeAnomalyDetector
default DescribeAnomalyDetectorResponse describeAnomalyDetector(DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeAnomalyDetector operation returned by the service.
- See Also:
-
describeAnomalyDetector
default DescribeAnomalyDetectorResponse describeAnomalyDetector(Consumer<DescribeAnomalyDetectorRequest.Builder> describeAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeAnomalyDetector operation returned by the service.
- See Also:
-
describeMetricSet
default DescribeMetricSetResponse describeMetricSet(DescribeMetricSetRequest describeMetricSetRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeMetricSet operation returned by the service.
- See Also:
-
describeMetricSet
default DescribeMetricSetResponse describeMetricSet(Consumer<DescribeMetricSetRequest.Builder> describeMetricSetRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DescribeMetricSet operation returned by the service.
- See Also:
-
detectMetricSetConfig
default DetectMetricSetConfigResponse detectMetricSetConfig(DetectMetricSetConfigRequest detectMetricSetConfigRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Detects an Amazon S3 dataset's file format, interval, and offset.
- Parameters:
detectMetricSetConfigRequest
-- Returns:
- Result of the DetectMetricSetConfig operation returned by the service.
- See Also:
-
detectMetricSetConfig
default DetectMetricSetConfigResponse detectMetricSetConfig(Consumer<DetectMetricSetConfigRequest.Builder> detectMetricSetConfigRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the DetectMetricSetConfig operation returned by the service.
- See Also:
-
getAnomalyGroup
default GetAnomalyGroupResponse getAnomalyGroup(GetAnomalyGroupRequest getAnomalyGroupRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Returns details about a group of anomalous metrics.
- Parameters:
getAnomalyGroupRequest
-- Returns:
- Result of the GetAnomalyGroup operation returned by the service.
- See Also:
-
getAnomalyGroup
default GetAnomalyGroupResponse getAnomalyGroup(Consumer<GetAnomalyGroupRequest.Builder> getAnomalyGroupRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the GetAnomalyGroup operation returned by the service.
- See Also:
-
getDataQualityMetrics
default GetDataQualityMetricsResponse getDataQualityMetrics(GetDataQualityMetricsRequest getDataQualityMetricsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Returns details about the requested data quality metrics.
- Parameters:
getDataQualityMetricsRequest
-- Returns:
- Result of the GetDataQualityMetrics operation returned by the service.
- See Also:
-
getDataQualityMetrics
default GetDataQualityMetricsResponse getDataQualityMetrics(Consumer<GetDataQualityMetricsRequest.Builder> getDataQualityMetricsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the GetDataQualityMetrics operation returned by the service.
- See Also:
-
getFeedback
default GetFeedbackResponse getFeedback(GetFeedbackRequest getFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Get feedback for an anomaly group.
- Parameters:
getFeedbackRequest
-- Returns:
- Result of the GetFeedback operation returned by the service.
- See Also:
-
getFeedback
default GetFeedbackResponse getFeedback(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the GetFeedback operation returned by the service.
- See Also:
-
getFeedbackPaginator
default GetFeedbackIterable getFeedbackPaginator(GetFeedbackRequest getFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client.getFeedbackPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client .getFeedbackPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client.getFeedbackPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
getFeedbackPaginator
default GetFeedbackIterable getFeedbackPaginator(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client.getFeedbackPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client .getFeedbackPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackIterable responses = client.getFeedbackPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
getSampleData
default GetSampleDataResponse getSampleData(GetSampleDataRequest getSampleDataRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException Returns a selection of sample records from an Amazon S3 datasource.
- Parameters:
getSampleDataRequest
-- Returns:
- Result of the GetSampleData operation returned by the service.
- See Also:
-
getSampleData
default GetSampleDataResponse getSampleData(Consumer<GetSampleDataRequest.Builder> getSampleDataRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the GetSampleData operation returned by the service.
- See Also:
-
listAlerts
default ListAlertsResponse listAlerts(ListAlertsRequest listAlertsRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyRequestsException, ValidationException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAlerts operation returned by the service.
- See Also:
-
listAlerts
default ListAlertsResponse listAlerts(Consumer<ListAlertsRequest.Builder> listAlertsRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyRequestsException, ValidationException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAlerts operation returned by the service.
- See Also:
-
listAlertsPaginator
default ListAlertsIterable listAlertsPaginator(ListAlertsRequest listAlertsRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyRequestsException, ValidationException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAlertsPaginator
default ListAlertsIterable listAlertsPaginator(Consumer<ListAlertsRequest.Builder> listAlertsRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyRequestsException, ValidationException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyDetectors
default ListAnomalyDetectorsResponse listAnomalyDetectors(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAnomalyDetectors operation returned by the service.
- See Also:
-
listAnomalyDetectors
default ListAnomalyDetectorsResponse listAnomalyDetectors(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAnomalyDetectors operation returned by the service.
- See Also:
-
listAnomalyDetectorsPaginator
default ListAnomalyDetectorsIterable listAnomalyDetectorsPaginator(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client.listAnomalyDetectorsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client .listAnomalyDetectorsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client.listAnomalyDetectorsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyDetectorsPaginator
default ListAnomalyDetectorsIterable listAnomalyDetectorsPaginator(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client.listAnomalyDetectorsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client .listAnomalyDetectorsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsIterable responses = client.listAnomalyDetectorsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupRelatedMetrics
default ListAnomalyGroupRelatedMetricsResponse listAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Returns a list of measures that are potential causes or effects of an anomaly group.
- Parameters:
listAnomalyGroupRelatedMetricsRequest
-- Returns:
- Result of the ListAnomalyGroupRelatedMetrics operation returned by the service.
- See Also:
-
listAnomalyGroupRelatedMetrics
default ListAnomalyGroupRelatedMetricsResponse listAnomalyGroupRelatedMetrics(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAnomalyGroupRelatedMetrics operation returned by the service.
- See Also:
-
listAnomalyGroupRelatedMetricsPaginator
default ListAnomalyGroupRelatedMetricsIterable listAnomalyGroupRelatedMetricsPaginator(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client.listAnomalyGroupRelatedMetricsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client .listAnomalyGroupRelatedMetricsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client.listAnomalyGroupRelatedMetricsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupRelatedMetricsPaginator
default ListAnomalyGroupRelatedMetricsIterable listAnomalyGroupRelatedMetricsPaginator(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client.listAnomalyGroupRelatedMetricsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client .listAnomalyGroupRelatedMetricsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsIterable responses = client.listAnomalyGroupRelatedMetricsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupSummaries
default ListAnomalyGroupSummariesResponse listAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Returns a list of anomaly groups.
- Parameters:
listAnomalyGroupSummariesRequest
-- Returns:
- Result of the ListAnomalyGroupSummaries operation returned by the service.
- See Also:
-
listAnomalyGroupSummaries
default ListAnomalyGroupSummariesResponse listAnomalyGroupSummaries(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAnomalyGroupSummaries operation returned by the service.
- See Also:
-
listAnomalyGroupSummariesPaginator
default ListAnomalyGroupSummariesIterable listAnomalyGroupSummariesPaginator(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client.listAnomalyGroupSummariesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client .listAnomalyGroupSummariesPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client.listAnomalyGroupSummariesPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupSummariesPaginator
default ListAnomalyGroupSummariesIterable listAnomalyGroupSummariesPaginator(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client.listAnomalyGroupSummariesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client .listAnomalyGroupSummariesPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesIterable responses = client.listAnomalyGroupSummariesPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupTimeSeries
default ListAnomalyGroupTimeSeriesResponse listAnomalyGroupTimeSeries(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Gets a list of anomalous metrics for a measure in an anomaly group.
- Parameters:
listAnomalyGroupTimeSeriesRequest
-- Returns:
- Result of the ListAnomalyGroupTimeSeries operation returned by the service.
- See Also:
-
listAnomalyGroupTimeSeries
default ListAnomalyGroupTimeSeriesResponse listAnomalyGroupTimeSeries(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListAnomalyGroupTimeSeries operation returned by the service.
- See Also:
-
listAnomalyGroupTimeSeriesPaginator
default ListAnomalyGroupTimeSeriesIterable listAnomalyGroupTimeSeriesPaginator(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client.listAnomalyGroupTimeSeriesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client .listAnomalyGroupTimeSeriesPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client.listAnomalyGroupTimeSeriesPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnomalyGroupTimeSeriesPaginator
default ListAnomalyGroupTimeSeriesIterable listAnomalyGroupTimeSeriesPaginator(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client.listAnomalyGroupTimeSeriesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client .listAnomalyGroupTimeSeriesPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesIterable responses = client.listAnomalyGroupTimeSeriesPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listMetricSets
default ListMetricSetsResponse listMetricSets(ListMetricSetsRequest listMetricSetsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListMetricSets operation returned by the service.
- See Also:
-
listMetricSets
default ListMetricSetsResponse listMetricSets(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListMetricSets operation returned by the service.
- See Also:
-
listMetricSetsPaginator
default ListMetricSetsIterable listMetricSetsPaginator(ListMetricSetsRequest listMetricSetsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client.listMetricSetsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client .listMetricSetsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client.listMetricSetsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listMetricSetsPaginator
default ListMetricSetsIterable listMetricSetsPaginator(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, LookoutMetricsException This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client.listMetricSetsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client .listMetricSetsPaginator(request); for (software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsIterable responses = client.listMetricSetsPaginator(request); responses.iterator().forEachRemaining(....);
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException Gets a list of tags for a detector, dataset, or alert.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putFeedback
default PutFeedbackResponse putFeedback(PutFeedbackRequest putFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Add feedback for an anomalous metric.
- Parameters:
putFeedbackRequest
-- Returns:
- Result of the PutFeedback operation returned by the service.
- See Also:
-
putFeedback
default PutFeedbackResponse putFeedback(Consumer<PutFeedbackRequest.Builder> putFeedbackRequest) throws ResourceNotFoundException, ValidationException, AccessDeniedException, InternalServerException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the PutFeedback operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException Adds tags to a detector, dataset, or alert.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException Removes tags from a detector, dataset, or alert.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAlert
default UpdateAlertResponse updateAlert(UpdateAlertRequest updateAlertRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Make changes to an existing alert.
- Parameters:
updateAlertRequest
-- Returns:
- Result of the UpdateAlert operation returned by the service.
- See Also:
-
updateAlert
default UpdateAlertResponse updateAlert(Consumer<UpdateAlertRequest.Builder> updateAlertRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the UpdateAlert operation returned by the service.
- See Also:
-
updateAnomalyDetector
default UpdateAnomalyDetectorResponse updateAnomalyDetector(UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException Updates a detector. After activation, you can only change a detector's ingestion delay and description.
- Parameters:
updateAnomalyDetectorRequest
-- Returns:
- Result of the UpdateAnomalyDetector operation returned by the service.
- See Also:
-
updateAnomalyDetector
default UpdateAnomalyDetectorResponse updateAnomalyDetector(Consumer<UpdateAnomalyDetectorRequest.Builder> updateAnomalyDetectorRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the UpdateAnomalyDetector operation returned by the service.
- See Also:
-
updateMetricSet
default UpdateMetricSetResponse updateMetricSet(UpdateMetricSetRequest updateMetricSetRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, LookoutMetricsException Updates a dataset.
- Parameters:
updateMetricSetRequest
-- Returns:
- Result of the UpdateMetricSet operation returned by the service.
- See Also:
-
updateMetricSet
default UpdateMetricSetResponse updateMetricSet(Consumer<UpdateMetricSetRequest.Builder> updateMetricSetRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AccessDeniedException, TooManyRequestsException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, LookoutMetricsException 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:
- Result of the UpdateMetricSet operation returned by the service.
- See Also:
-
create
Create aLookoutMetricsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLookoutMetricsClient
. -
serviceMetadata
-
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
-