@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPrometheusAsyncClient extends AmazonPrometheusClient implements AmazonPrometheusAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for container metrics that makes it easier to securely monitor container environments at scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data model and query language that you use today to monitor the performance of your containerized workloads, and also enjoy improved scalability, availability, and security without having to manage the underlying infrastructure.
For more information about Amazon Managed Service for Prometheus, see the Amazon Managed Service for Prometheus User Guide.
Amazon Managed Service for Prometheus includes two APIs.
Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert managers.
Use the Prometheus-compatible API to work within your Prometheus workspace.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createAlertManagerDefinition, createLoggingConfiguration, createRuleGroupsNamespace, createScraper, createWorkspace, deleteAlertManagerDefinition, deleteLoggingConfiguration, deleteRuleGroupsNamespace, deleteScraper, deleteWorkspace, describeAlertManagerDefinition, describeLoggingConfiguration, describeRuleGroupsNamespace, describeScraper, describeWorkspace, getCachedResponseMetadata, getDefaultScraperConfiguration, listRuleGroupsNamespaces, listScrapers, listTagsForResource, listWorkspaces, putAlertManagerDefinition, putRuleGroupsNamespace, tagResource, untagResource, updateLoggingConfiguration, updateWorkspaceAlias, waiters
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAlertManagerDefinition, createLoggingConfiguration, createRuleGroupsNamespace, createScraper, createWorkspace, deleteAlertManagerDefinition, deleteLoggingConfiguration, deleteRuleGroupsNamespace, deleteScraper, deleteWorkspace, describeAlertManagerDefinition, describeLoggingConfiguration, describeRuleGroupsNamespace, describeScraper, describeWorkspace, getCachedResponseMetadata, getDefaultScraperConfiguration, listRuleGroupsNamespaces, listScrapers, listTagsForResource, listWorkspaces, putAlertManagerDefinition, putRuleGroupsNamespace, tagResource, untagResource, updateLoggingConfiguration, updateWorkspaceAlias, waiters
public static AmazonPrometheusAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateAlertManagerDefinitionResult> createAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
The CreateAlertManagerDefinition
operation creates the alert manager definition in a workspace. If a
workspace already has an alert manager definition, don't use this operation to update it. Instead, use
PutAlertManagerDefinition
.
createAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateAlertManagerDefinition
operation.public Future<CreateAlertManagerDefinitionResult> createAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest request, AsyncHandler<CreateAlertManagerDefinitionRequest,CreateAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
The CreateAlertManagerDefinition
operation creates the alert manager definition in a workspace. If a
workspace already has an alert manager definition, don't use this operation to update it. Instead, use
PutAlertManagerDefinition
.
createAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateAlertManagerDefinition
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateLoggingConfigurationResult> createLoggingConfigurationAsync(CreateLoggingConfigurationRequest request)
AmazonPrometheusAsync
The CreateLoggingConfiguration
operation creates a logging configuration for the workspace. Use this
operation to set the CloudWatch log group to which the logs will be published to.
createLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateLoggingConfiguration
operation.public Future<CreateLoggingConfigurationResult> createLoggingConfigurationAsync(CreateLoggingConfigurationRequest request, AsyncHandler<CreateLoggingConfigurationRequest,CreateLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
The CreateLoggingConfiguration
operation creates a logging configuration for the workspace. Use this
operation to set the CloudWatch log group to which the logs will be published to.
createLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateLoggingConfiguration
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateRuleGroupsNamespaceResult> createRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
The CreateRuleGroupsNamespace
operation creates a rule groups namespace within a workspace. A rule
groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use
PutRuleGroupsNamespace
.
createRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateRuleGroupsNamespace
operation.public Future<CreateRuleGroupsNamespaceResult> createRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest request, AsyncHandler<CreateRuleGroupsNamespaceRequest,CreateRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
The CreateRuleGroupsNamespace
operation creates a rule groups namespace within a workspace. A rule
groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use
PutRuleGroupsNamespace
.
createRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateRuleGroupsNamespace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateScraperResult> createScraperAsync(CreateScraperRequest request)
AmazonPrometheusAsync
The CreateScraper
operation creates a scraper to collect metrics. A scraper pulls metrics from
Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for
Prometheus workspace. You can configure the scraper to control what metrics are collected, and what
transformations are applied prior to sending them to your workspace.
If needed, an IAM role will be created for you that gives Amazon Managed Service for Prometheus access to the metrics in your cluster. For more information, see Using roles for scraping metrics from EKS in the Amazon Managed Service for Prometheus User Guide.
You cannot update a scraper. If you want to change the configuration of the scraper, create a new scraper and delete the old one.
The scrapeConfiguration
parameter contains the base64-encoded version of the YAML configuration
file.
For more information about collectors, including what metrics are collected, and how to configure the scraper, see Amazon Web Services managed collectors in the Amazon Managed Service for Prometheus User Guide.
createScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateScraper
operation.public Future<CreateScraperResult> createScraperAsync(CreateScraperRequest request, AsyncHandler<CreateScraperRequest,CreateScraperResult> asyncHandler)
AmazonPrometheusAsync
The CreateScraper
operation creates a scraper to collect metrics. A scraper pulls metrics from
Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for
Prometheus workspace. You can configure the scraper to control what metrics are collected, and what
transformations are applied prior to sending them to your workspace.
If needed, an IAM role will be created for you that gives Amazon Managed Service for Prometheus access to the metrics in your cluster. For more information, see Using roles for scraping metrics from EKS in the Amazon Managed Service for Prometheus User Guide.
You cannot update a scraper. If you want to change the configuration of the scraper, create a new scraper and delete the old one.
The scrapeConfiguration
parameter contains the base64-encoded version of the YAML configuration
file.
For more information about collectors, including what metrics are collected, and how to configure the scraper, see Amazon Web Services managed collectors in the Amazon Managed Service for Prometheus User Guide.
createScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateScraper
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request)
AmazonPrometheusAsync
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateWorkspace
operation.public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request, AsyncHandler<CreateWorkspaceRequest,CreateWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateWorkspace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteAlertManagerDefinitionResult> deleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Deletes the alert manager definition from a workspace.
deleteAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteAlertManagerDefinition
operation.public Future<DeleteAlertManagerDefinitionResult> deleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest request, AsyncHandler<DeleteAlertManagerDefinitionRequest,DeleteAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Deletes the alert manager definition from a workspace.
deleteAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteAlertManagerDefinition
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteLoggingConfigurationResult> deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request)
AmazonPrometheusAsync
Deletes the logging configuration for a workspace.
deleteLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteLoggingConfiguration
operation.public Future<DeleteLoggingConfigurationResult> deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request, AsyncHandler<DeleteLoggingConfigurationRequest,DeleteLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Deletes the logging configuration for a workspace.
deleteLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteLoggingConfiguration
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteRuleGroupsNamespaceResult> deleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Deletes one rule groups namespace and its associated rule groups definition.
deleteRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteRuleGroupsNamespace
operation.public Future<DeleteRuleGroupsNamespaceResult> deleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest request, AsyncHandler<DeleteRuleGroupsNamespaceRequest,DeleteRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Deletes one rule groups namespace and its associated rule groups definition.
deleteRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteRuleGroupsNamespace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteScraperResult> deleteScraperAsync(DeleteScraperRequest request)
AmazonPrometheusAsync
The DeleteScraper
operation deletes one scraper, and stops any metrics collection that the scraper
performs.
deleteScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteScraper
operation.public Future<DeleteScraperResult> deleteScraperAsync(DeleteScraperRequest request, AsyncHandler<DeleteScraperRequest,DeleteScraperResult> asyncHandler)
AmazonPrometheusAsync
The DeleteScraper
operation deletes one scraper, and stops any metrics collection that the scraper
performs.
deleteScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteScraper
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request)
AmazonPrometheusAsync
Deletes an existing workspace.
When you delete a workspace, the data that has been ingested into it is not immediately deleted. It will be permanently deleted within one month.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteWorkspace
operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request, AsyncHandler<DeleteWorkspaceRequest,DeleteWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Deletes an existing workspace.
When you delete a workspace, the data that has been ingested into it is not immediately deleted. It will be permanently deleted within one month.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteWorkspace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeAlertManagerDefinitionResult> describeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Retrieves the full information about the alert manager definition for a workspace.
describeAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeAlertManagerDefinition
operation.public Future<DescribeAlertManagerDefinitionResult> describeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest request, AsyncHandler<DescribeAlertManagerDefinitionRequest,DescribeAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Retrieves the full information about the alert manager definition for a workspace.
describeAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeAlertManagerDefinition
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeLoggingConfigurationResult> describeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest request)
AmazonPrometheusAsync
Returns complete information about the current logging configuration of the workspace.
describeLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeLoggingConfiguration
operation.public Future<DescribeLoggingConfigurationResult> describeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest request, AsyncHandler<DescribeLoggingConfigurationRequest,DescribeLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Returns complete information about the current logging configuration of the workspace.
describeLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeLoggingConfiguration
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeRuleGroupsNamespaceResult> describeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use
ListRuleGroupsNamespaces
.
describeRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeRuleGroupsNamespace
operation.public Future<DescribeRuleGroupsNamespaceResult> describeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest request, AsyncHandler<DescribeRuleGroupsNamespaceRequest,DescribeRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use
ListRuleGroupsNamespaces
.
describeRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeRuleGroupsNamespace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeScraperResult> describeScraperAsync(DescribeScraperRequest request)
AmazonPrometheusAsync
The DescribeScraper
operation displays information about an existing scraper.
describeScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeScraper
operation.public Future<DescribeScraperResult> describeScraperAsync(DescribeScraperRequest request, AsyncHandler<DescribeScraperRequest,DescribeScraperResult> asyncHandler)
AmazonPrometheusAsync
The DescribeScraper
operation displays information about an existing scraper.
describeScraperAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeScraper
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request)
AmazonPrometheusAsync
Returns information about an existing workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeWorkspace
operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request, AsyncHandler<DescribeWorkspaceRequest,DescribeWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Returns information about an existing workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeWorkspace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDefaultScraperConfigurationResult> getDefaultScraperConfigurationAsync(GetDefaultScraperConfigurationRequest request)
AmazonPrometheusAsync
The GetDefaultScraperConfiguration
operation returns the default scraper configuration used when
Amazon EKS creates a scraper for you.
getDefaultScraperConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a GetDefaultScraperConfiguration
operation.public Future<GetDefaultScraperConfigurationResult> getDefaultScraperConfigurationAsync(GetDefaultScraperConfigurationRequest request, AsyncHandler<GetDefaultScraperConfigurationRequest,GetDefaultScraperConfigurationResult> asyncHandler)
AmazonPrometheusAsync
The GetDefaultScraperConfiguration
operation returns the default scraper configuration used when
Amazon EKS creates a scraper for you.
getDefaultScraperConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a GetDefaultScraperConfiguration
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListRuleGroupsNamespacesResult> listRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest request)
AmazonPrometheusAsync
Returns a list of rule groups namespaces in a workspace.
listRuleGroupsNamespacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListRuleGroupsNamespaces
operation.public Future<ListRuleGroupsNamespacesResult> listRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest request, AsyncHandler<ListRuleGroupsNamespacesRequest,ListRuleGroupsNamespacesResult> asyncHandler)
AmazonPrometheusAsync
Returns a list of rule groups namespaces in a workspace.
listRuleGroupsNamespacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListRuleGroupsNamespaces
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListScrapersResult> listScrapersAsync(ListScrapersRequest request)
AmazonPrometheusAsync
The ListScrapers
operation lists all of the scrapers in your account. This includes scrapers being
created or deleted. You can optionally filter the returned list.
listScrapersAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListScrapers
operation.public Future<ListScrapersResult> listScrapersAsync(ListScrapersRequest request, AsyncHandler<ListScrapersRequest,ListScrapersResult> asyncHandler)
AmazonPrometheusAsync
The ListScrapers
operation lists all of the scrapers in your account. This includes scrapers being
created or deleted. You can optionally filter the returned list.
listScrapersAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListScrapers
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonPrometheusAsync
The ListTagsForResource
operation returns the tags that are associated with an Amazon Managed
Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups
namespaces.
listTagsForResourceAsync
in interface AmazonPrometheusAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonPrometheusAsync
The ListTagsForResource
operation returns the tags that are associated with an Amazon Managed
Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups
namespaces.
listTagsForResourceAsync
in interface AmazonPrometheusAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request)
AmazonPrometheusAsync
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListWorkspaces
operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request, AsyncHandler<ListWorkspacesRequest,ListWorkspacesResult> asyncHandler)
AmazonPrometheusAsync
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListWorkspaces
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutAlertManagerDefinitionResult> putAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Updates an existing alert manager definition in a workspace. If the workspace does not already have an alert
manager definition, don't use this operation to create it. Instead, use CreateAlertManagerDefinition
.
putAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutAlertManagerDefinition
operation.public Future<PutAlertManagerDefinitionResult> putAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest request, AsyncHandler<PutAlertManagerDefinitionRequest,PutAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Updates an existing alert manager definition in a workspace. If the workspace does not already have an alert
manager definition, don't use this operation to create it. Instead, use CreateAlertManagerDefinition
.
putAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutAlertManagerDefinition
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutRuleGroupsNamespaceResult> putRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use
CreateRuleGroupsNamespace
.
You can't use this operation to add tags to an existing rule groups namespace. Instead, use
TagResource
.
putRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutRuleGroupsNamespace
operation.public Future<PutRuleGroupsNamespaceResult> putRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest request, AsyncHandler<PutRuleGroupsNamespaceRequest,PutRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use
CreateRuleGroupsNamespace
.
You can't use this operation to add tags to an existing rule groups namespace. Instead, use
TagResource
.
putRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutRuleGroupsNamespace
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonPrometheusAsync
The TagResource
operation associates tags with an Amazon Managed Service for Prometheus resource.
The only resources that can be tagged are workspaces and rule groups namespaces.
If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
tagResourceAsync
in interface AmazonPrometheusAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonPrometheusAsync
The TagResource
operation associates tags with an Amazon Managed Service for Prometheus resource.
The only resources that can be tagged are workspaces and rule groups namespaces.
If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
tagResourceAsync
in interface AmazonPrometheusAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonPrometheusAsync
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.
untagResourceAsync
in interface AmazonPrometheusAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonPrometheusAsync
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.
untagResourceAsync
in interface AmazonPrometheusAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateLoggingConfigurationResult> updateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest request)
AmazonPrometheusAsync
Updates the log group ARN or the workspace ID of the current logging configuration.
updateLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateLoggingConfiguration
operation.public Future<UpdateLoggingConfigurationResult> updateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest request, AsyncHandler<UpdateLoggingConfigurationRequest,UpdateLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Updates the log group ARN or the workspace ID of the current logging configuration.
updateLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateLoggingConfiguration
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request)
AmazonPrometheusAsync
Updates the alias of an existing workspace.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateWorkspaceAlias
operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request, AsyncHandler<UpdateWorkspaceAliasRequest,UpdateWorkspaceAliasResult> asyncHandler)
AmazonPrometheusAsync
Updates the alias of an existing workspace.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateWorkspaceAlias
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonPrometheus
shutdown
in class AmazonPrometheusClient