@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface LookoutMetricsAsyncClient extends AwsClient
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<ActivateAnomalyDetectorResponse> activateAnomalyDetector(ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest)
Activates an anomaly detector.
activateAnomalyDetectorRequest - default CompletableFuture<ActivateAnomalyDetectorResponse> activateAnomalyDetector(Consumer<ActivateAnomalyDetectorRequest.Builder> activateAnomalyDetectorRequest)
Activates an anomaly detector.
This is a convenience which creates an instance of the ActivateAnomalyDetectorRequest.Builder avoiding
the need to create one manually via ActivateAnomalyDetectorRequest.builder()
activateAnomalyDetectorRequest - A Consumer that will call methods on
ActivateAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<BackTestAnomalyDetectorResponse> backTestAnomalyDetector(BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest)
Runs a backtest for anomaly detection for the specified resource.
backTestAnomalyDetectorRequest - default CompletableFuture<BackTestAnomalyDetectorResponse> backTestAnomalyDetector(Consumer<BackTestAnomalyDetectorRequest.Builder> backTestAnomalyDetectorRequest)
Runs a backtest for anomaly detection for the specified resource.
This is a convenience which creates an instance of the BackTestAnomalyDetectorRequest.Builder avoiding
the need to create one manually via BackTestAnomalyDetectorRequest.builder()
backTestAnomalyDetectorRequest - A Consumer that will call methods on
BackTestAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<CreateAlertResponse> createAlert(CreateAlertRequest createAlertRequest)
Creates an alert for an anomaly detector.
createAlertRequest - default CompletableFuture<CreateAlertResponse> createAlert(Consumer<CreateAlertRequest.Builder> createAlertRequest)
Creates an alert for an anomaly detector.
This is a convenience which creates an instance of the CreateAlertRequest.Builder avoiding the need to
create one manually via CreateAlertRequest.builder()
createAlertRequest - A Consumer that will call methods on
CreateAlertRequest.Builder to create a
request.default CompletableFuture<CreateAnomalyDetectorResponse> createAnomalyDetector(CreateAnomalyDetectorRequest createAnomalyDetectorRequest)
Creates an anomaly detector.
createAnomalyDetectorRequest - default CompletableFuture<CreateAnomalyDetectorResponse> createAnomalyDetector(Consumer<CreateAnomalyDetectorRequest.Builder> createAnomalyDetectorRequest)
Creates an anomaly detector.
This is a convenience which creates an instance of the CreateAnomalyDetectorRequest.Builder avoiding the
need to create one manually via CreateAnomalyDetectorRequest.builder()
createAnomalyDetectorRequest - A Consumer that will call methods on
CreateAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<CreateMetricSetResponse> createMetricSet(CreateMetricSetRequest createMetricSetRequest)
Creates a dataset.
createMetricSetRequest - default CompletableFuture<CreateMetricSetResponse> createMetricSet(Consumer<CreateMetricSetRequest.Builder> createMetricSetRequest)
Creates a dataset.
This is a convenience which creates an instance of the CreateMetricSetRequest.Builder avoiding the need
to create one manually via CreateMetricSetRequest.builder()
createMetricSetRequest - A Consumer that will call methods on
CreateMetricSetRequest.Builder to create a
request.default CompletableFuture<DeactivateAnomalyDetectorResponse> deactivateAnomalyDetector(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest)
Deactivates an anomaly detector.
deactivateAnomalyDetectorRequest - default CompletableFuture<DeactivateAnomalyDetectorResponse> deactivateAnomalyDetector(Consumer<DeactivateAnomalyDetectorRequest.Builder> deactivateAnomalyDetectorRequest)
Deactivates an anomaly detector.
This is a convenience which creates an instance of the DeactivateAnomalyDetectorRequest.Builder avoiding
the need to create one manually via DeactivateAnomalyDetectorRequest.builder()
deactivateAnomalyDetectorRequest - A Consumer that will call methods on
DeactivateAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<DeleteAlertResponse> deleteAlert(DeleteAlertRequest deleteAlertRequest)
Deletes an alert.
deleteAlertRequest - default CompletableFuture<DeleteAlertResponse> deleteAlert(Consumer<DeleteAlertRequest.Builder> deleteAlertRequest)
Deletes an alert.
This is a convenience which creates an instance of the DeleteAlertRequest.Builder avoiding the need to
create one manually via DeleteAlertRequest.builder()
deleteAlertRequest - A Consumer that will call methods on
DeleteAlertRequest.Builder to create a
request.default CompletableFuture<DeleteAnomalyDetectorResponse> deleteAnomalyDetector(DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest)
Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
deleteAnomalyDetectorRequest - default CompletableFuture<DeleteAnomalyDetectorResponse> deleteAnomalyDetector(Consumer<DeleteAnomalyDetectorRequest.Builder> deleteAnomalyDetectorRequest)
Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
This is a convenience which creates an instance of the DeleteAnomalyDetectorRequest.Builder avoiding the
need to create one manually via DeleteAnomalyDetectorRequest.builder()
deleteAnomalyDetectorRequest - A Consumer that will call methods on
DeleteAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<DescribeAlertResponse> describeAlert(DescribeAlertRequest describeAlertRequest)
Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
describeAlertRequest - default CompletableFuture<DescribeAlertResponse> describeAlert(Consumer<DescribeAlertRequest.Builder> describeAlertRequest)
Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the DescribeAlertRequest.Builder avoiding the need to
create one manually via DescribeAlertRequest.builder()
describeAlertRequest - A Consumer that will call methods on
DescribeAlertRequest.Builder to create a
request.default CompletableFuture<DescribeAnomalyDetectionExecutionsResponse> describeAnomalyDetectionExecutions(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest)
Returns information about the status of the specified anomaly detection jobs.
describeAnomalyDetectionExecutionsRequest - default CompletableFuture<DescribeAnomalyDetectionExecutionsResponse> describeAnomalyDetectionExecutions(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest)
Returns information about the status of the specified anomaly detection jobs.
This is a convenience which creates an instance of the DescribeAnomalyDetectionExecutionsRequest.Builder
avoiding the need to create one manually via DescribeAnomalyDetectionExecutionsRequest.builder()
describeAnomalyDetectionExecutionsRequest - A Consumer that will call methods on
DescribeAnomalyDetectionExecutionsRequest.Builder
to create a request.default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest)
Returns information about the status of the specified anomaly detection jobs.
This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
describeAnomalyDetectionExecutionsRequest - default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(Consumer<DescribeAnomalyDetectionExecutionsRequest.Builder> describeAnomalyDetectionExecutionsRequest)
Returns information about the status of the specified anomaly detection jobs.
This is a variant of
describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via DescribeAnomalyDetectionExecutionsRequest.builder()
describeAnomalyDetectionExecutionsRequest - A Consumer that will call methods on
DescribeAnomalyDetectionExecutionsRequest.Builder
to create a request.default CompletableFuture<DescribeAnomalyDetectorResponse> describeAnomalyDetector(DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest)
Describes a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
describeAnomalyDetectorRequest - default CompletableFuture<DescribeAnomalyDetectorResponse> describeAnomalyDetector(Consumer<DescribeAnomalyDetectorRequest.Builder> describeAnomalyDetectorRequest)
Describes a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the DescribeAnomalyDetectorRequest.Builder avoiding
the need to create one manually via DescribeAnomalyDetectorRequest.builder()
describeAnomalyDetectorRequest - A Consumer that will call methods on
DescribeAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<DescribeMetricSetResponse> describeMetricSet(DescribeMetricSetRequest describeMetricSetRequest)
Describes a dataset.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
describeMetricSetRequest - default CompletableFuture<DescribeMetricSetResponse> describeMetricSet(Consumer<DescribeMetricSetRequest.Builder> describeMetricSetRequest)
Describes a dataset.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the DescribeMetricSetRequest.Builder avoiding the need
to create one manually via DescribeMetricSetRequest.builder()
describeMetricSetRequest - A Consumer that will call methods on
DescribeMetricSetRequest.Builder to create a
request.default CompletableFuture<DetectMetricSetConfigResponse> detectMetricSetConfig(DetectMetricSetConfigRequest detectMetricSetConfigRequest)
Detects an Amazon S3 dataset's file format, interval, and offset.
detectMetricSetConfigRequest - default CompletableFuture<DetectMetricSetConfigResponse> detectMetricSetConfig(Consumer<DetectMetricSetConfigRequest.Builder> detectMetricSetConfigRequest)
Detects an Amazon S3 dataset's file format, interval, and offset.
This is a convenience which creates an instance of the DetectMetricSetConfigRequest.Builder avoiding the
need to create one manually via DetectMetricSetConfigRequest.builder()
detectMetricSetConfigRequest - A Consumer that will call methods on
DetectMetricSetConfigRequest.Builder to
create a request.default CompletableFuture<GetAnomalyGroupResponse> getAnomalyGroup(GetAnomalyGroupRequest getAnomalyGroupRequest)
Returns details about a group of anomalous metrics.
getAnomalyGroupRequest - default CompletableFuture<GetAnomalyGroupResponse> getAnomalyGroup(Consumer<GetAnomalyGroupRequest.Builder> getAnomalyGroupRequest)
Returns details about a group of anomalous metrics.
This is a convenience which creates an instance of the GetAnomalyGroupRequest.Builder avoiding the need
to create one manually via GetAnomalyGroupRequest.builder()
getAnomalyGroupRequest - A Consumer that will call methods on
GetAnomalyGroupRequest.Builder to create a
request.default CompletableFuture<GetDataQualityMetricsResponse> getDataQualityMetrics(GetDataQualityMetricsRequest getDataQualityMetricsRequest)
Returns details about the requested data quality metrics.
getDataQualityMetricsRequest - default CompletableFuture<GetDataQualityMetricsResponse> getDataQualityMetrics(Consumer<GetDataQualityMetricsRequest.Builder> getDataQualityMetricsRequest)
Returns details about the requested data quality metrics.
This is a convenience which creates an instance of the GetDataQualityMetricsRequest.Builder avoiding the
need to create one manually via GetDataQualityMetricsRequest.builder()
getDataQualityMetricsRequest - A Consumer that will call methods on
GetDataQualityMetricsRequest.Builder to
create a request.default CompletableFuture<GetFeedbackResponse> getFeedback(GetFeedbackRequest getFeedbackRequest)
Get feedback for an anomaly group.
getFeedbackRequest - default CompletableFuture<GetFeedbackResponse> getFeedback(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest)
Get feedback for an anomaly group.
This is a convenience which creates an instance of the GetFeedbackRequest.Builder avoiding the need to
create one manually via GetFeedbackRequest.builder()
getFeedbackRequest - A Consumer that will call methods on
GetFeedbackRequest.Builder to create a
request.default GetFeedbackPublisher getFeedbackPaginator(GetFeedbackRequest getFeedbackRequest)
Get feedback for an anomaly group.
This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
getFeedbackRequest - default GetFeedbackPublisher getFeedbackPaginator(Consumer<GetFeedbackRequest.Builder> getFeedbackRequest)
Get feedback for an anomaly group.
This is a variant of
getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via GetFeedbackRequest.builder()
getFeedbackRequest - A Consumer that will call methods on
GetFeedbackRequest.Builder to create a
request.default CompletableFuture<GetSampleDataResponse> getSampleData(GetSampleDataRequest getSampleDataRequest)
Returns a selection of sample records from an Amazon S3 datasource.
getSampleDataRequest - default CompletableFuture<GetSampleDataResponse> getSampleData(Consumer<GetSampleDataRequest.Builder> getSampleDataRequest)
Returns a selection of sample records from an Amazon S3 datasource.
This is a convenience which creates an instance of the GetSampleDataRequest.Builder avoiding the need to
create one manually via GetSampleDataRequest.builder()
getSampleDataRequest - A Consumer that will call methods on
GetSampleDataRequest.Builder to create a
request.default CompletableFuture<ListAlertsResponse> listAlerts(ListAlertsRequest listAlertsRequest)
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
listAlertsRequest - default CompletableFuture<ListAlertsResponse> listAlerts(Consumer<ListAlertsRequest.Builder> listAlertsRequest)
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the ListAlertsRequest.Builder avoiding the need to
create one manually via ListAlertsRequest.builder()
listAlertsRequest - A Consumer that will call methods on
ListAlertsRequest.Builder to create a
request.default ListAlertsPublisher listAlertsPaginator(ListAlertsRequest listAlertsRequest)
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listAlertsRequest - default ListAlertsPublisher listAlertsPaginator(Consumer<ListAlertsRequest.Builder> listAlertsRequest)
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListAlertsRequest.builder()
listAlertsRequest - A Consumer that will call methods on
ListAlertsRequest.Builder to create a
request.default CompletableFuture<ListAnomalyDetectorsResponse> listAnomalyDetectors(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest)
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
listAnomalyDetectorsRequest - default CompletableFuture<ListAnomalyDetectorsResponse> listAnomalyDetectors(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest)
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the ListAnomalyDetectorsRequest.Builder avoiding the
need to create one manually via ListAnomalyDetectorsRequest.builder()
listAnomalyDetectorsRequest - A Consumer that will call methods on
ListAnomalyDetectorsRequest.Builder to create
a request.default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest)
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listAnomalyDetectorsRequest - default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(Consumer<ListAnomalyDetectorsRequest.Builder> listAnomalyDetectorsRequest)
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of
listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListAnomalyDetectorsRequest.builder()
listAnomalyDetectorsRequest - A Consumer that will call methods on
ListAnomalyDetectorsRequest.Builder to create
a request.default CompletableFuture<ListAnomalyGroupRelatedMetricsResponse> listAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest)
Returns a list of measures that are potential causes or effects of an anomaly group.
listAnomalyGroupRelatedMetricsRequest - default CompletableFuture<ListAnomalyGroupRelatedMetricsResponse> listAnomalyGroupRelatedMetrics(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest)
Returns a list of measures that are potential causes or effects of an anomaly group.
This is a convenience which creates an instance of the ListAnomalyGroupRelatedMetricsRequest.Builder
avoiding the need to create one manually via ListAnomalyGroupRelatedMetricsRequest.builder()
listAnomalyGroupRelatedMetricsRequest - A Consumer that will call methods on
ListAnomalyGroupRelatedMetricsRequest.Builder
to create a request.default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest)
Returns a list of measures that are potential causes or effects of an anomaly group.
This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listAnomalyGroupRelatedMetricsRequest - default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(Consumer<ListAnomalyGroupRelatedMetricsRequest.Builder> listAnomalyGroupRelatedMetricsRequest)
Returns a list of measures that are potential causes or effects of an anomaly group.
This is a variant of
listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListAnomalyGroupRelatedMetricsRequest.builder()
listAnomalyGroupRelatedMetricsRequest - A Consumer that will call methods on
ListAnomalyGroupRelatedMetricsRequest.Builder
to create a request.default CompletableFuture<ListAnomalyGroupSummariesResponse> listAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest)
Returns a list of anomaly groups.
listAnomalyGroupSummariesRequest - default CompletableFuture<ListAnomalyGroupSummariesResponse> listAnomalyGroupSummaries(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest)
Returns a list of anomaly groups.
This is a convenience which creates an instance of the ListAnomalyGroupSummariesRequest.Builder avoiding
the need to create one manually via ListAnomalyGroupSummariesRequest.builder()
listAnomalyGroupSummariesRequest - A Consumer that will call methods on
ListAnomalyGroupSummariesRequest.Builder to
create a request.default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest)
Returns a list of anomaly groups.
This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listAnomalyGroupSummariesRequest - default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(Consumer<ListAnomalyGroupSummariesRequest.Builder> listAnomalyGroupSummariesRequest)
Returns a list of anomaly groups.
This is a variant of
listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListAnomalyGroupSummariesRequest.builder()
listAnomalyGroupSummariesRequest - A Consumer that will call methods on
ListAnomalyGroupSummariesRequest.Builder to
create a request.default CompletableFuture<ListAnomalyGroupTimeSeriesResponse> listAnomalyGroupTimeSeries(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest)
Gets a list of anomalous metrics for a measure in an anomaly group.
listAnomalyGroupTimeSeriesRequest - default CompletableFuture<ListAnomalyGroupTimeSeriesResponse> listAnomalyGroupTimeSeries(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest)
Gets a list of anomalous metrics for a measure in an anomaly group.
This is a convenience which creates an instance of the ListAnomalyGroupTimeSeriesRequest.Builder avoiding
the need to create one manually via ListAnomalyGroupTimeSeriesRequest.builder()
listAnomalyGroupTimeSeriesRequest - A Consumer that will call methods on
ListAnomalyGroupTimeSeriesRequest.Builder to
create a request.default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest)
Gets a list of anomalous metrics for a measure in an anomaly group.
This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listAnomalyGroupTimeSeriesRequest - default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(Consumer<ListAnomalyGroupTimeSeriesRequest.Builder> listAnomalyGroupTimeSeriesRequest)
Gets a list of anomalous metrics for a measure in an anomaly group.
This is a variant of
listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListAnomalyGroupTimeSeriesRequest.builder()
listAnomalyGroupTimeSeriesRequest - A Consumer that will call methods on
ListAnomalyGroupTimeSeriesRequest.Builder to
create a request.default CompletableFuture<ListMetricSetsResponse> listMetricSets(ListMetricSetsRequest listMetricSetsRequest)
Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
listMetricSetsRequest - default CompletableFuture<ListMetricSetsResponse> listMetricSets(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest)
Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a convenience which creates an instance of the ListMetricSetsRequest.Builder avoiding the need to
create one manually via ListMetricSetsRequest.builder()
listMetricSetsRequest - A Consumer that will call methods on
ListMetricSetsRequest.Builder to create a
request.default ListMetricSetsPublisher listMetricSetsPaginator(ListMetricSetsRequest listMetricSetsRequest)
Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listMetricSetsRequest - default ListMetricSetsPublisher listMetricSetsPaginator(Consumer<ListMetricSetsRequest.Builder> listMetricSetsRequest)
Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
This is a variant of
listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListMetricSetsRequest.builder()
listMetricSetsRequest - A Consumer that will call methods on
ListMetricSetsRequest.Builder to create a
request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Gets a list of tags for a detector, dataset, or alert.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Gets a list of tags for a detector, dataset, or alert.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on
ListTagsForResourceRequest.Builder to create
a request.default CompletableFuture<PutFeedbackResponse> putFeedback(PutFeedbackRequest putFeedbackRequest)
Add feedback for an anomalous metric.
putFeedbackRequest - default CompletableFuture<PutFeedbackResponse> putFeedback(Consumer<PutFeedbackRequest.Builder> putFeedbackRequest)
Add feedback for an anomalous metric.
This is a convenience which creates an instance of the PutFeedbackRequest.Builder avoiding the need to
create one manually via PutFeedbackRequest.builder()
putFeedbackRequest - A Consumer that will call methods on
PutFeedbackRequest.Builder to create a
request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds tags to a detector, dataset, or alert.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds tags to a detector, dataset, or alert.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on
TagResourceRequest.Builder to create a
request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a detector, dataset, or alert.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a detector, dataset, or alert.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on
UntagResourceRequest.Builder to create a
request.default CompletableFuture<UpdateAlertResponse> updateAlert(UpdateAlertRequest updateAlertRequest)
Make changes to an existing alert.
updateAlertRequest - default CompletableFuture<UpdateAlertResponse> updateAlert(Consumer<UpdateAlertRequest.Builder> updateAlertRequest)
Make changes to an existing alert.
This is a convenience which creates an instance of the UpdateAlertRequest.Builder avoiding the need to
create one manually via UpdateAlertRequest.builder()
updateAlertRequest - A Consumer that will call methods on
UpdateAlertRequest.Builder to create a
request.default CompletableFuture<UpdateAnomalyDetectorResponse> updateAnomalyDetector(UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest)
Updates a detector. After activation, you can only change a detector's ingestion delay and description.
updateAnomalyDetectorRequest - default CompletableFuture<UpdateAnomalyDetectorResponse> updateAnomalyDetector(Consumer<UpdateAnomalyDetectorRequest.Builder> updateAnomalyDetectorRequest)
Updates a detector. After activation, you can only change a detector's ingestion delay and description.
This is a convenience which creates an instance of the UpdateAnomalyDetectorRequest.Builder avoiding the
need to create one manually via UpdateAnomalyDetectorRequest.builder()
updateAnomalyDetectorRequest - A Consumer that will call methods on
UpdateAnomalyDetectorRequest.Builder to
create a request.default CompletableFuture<UpdateMetricSetResponse> updateMetricSet(UpdateMetricSetRequest updateMetricSetRequest)
Updates a dataset.
updateMetricSetRequest - default CompletableFuture<UpdateMetricSetResponse> updateMetricSet(Consumer<UpdateMetricSetRequest.Builder> updateMetricSetRequest)
Updates a dataset.
This is a convenience which creates an instance of the UpdateMetricSetRequest.Builder avoiding the need
to create one manually via UpdateMetricSetRequest.builder()
updateMetricSetRequest - A Consumer that will call methods on
UpdateMetricSetRequest.Builder to create a
request.default LookoutMetricsServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic LookoutMetricsAsyncClient create()
LookoutMetricsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static LookoutMetricsAsyncClientBuilder builder()
LookoutMetricsAsyncClient.Copyright © 2023. All rights reserved.