@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPrometheusClient extends AmazonWebServiceClient implements AmazonPrometheus
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 | Modifier and Type | Method and Description |
|---|---|
static AmazonPrometheusClientBuilder |
builder () |
CreateAlertManagerDefinitionResult |
createAlertManagerDefinition (CreateAlertManagerDefinitionRequest request)
The
CreateAlertManagerDefinition operation creates the alert manager definition in a workspace. |
CreateLoggingConfigurationResult |
createLoggingConfiguration (CreateLoggingConfigurationRequest request)
The
CreateLoggingConfiguration operation creates a logging configuration for the workspace. |
CreateRuleGroupsNamespaceResult |
createRuleGroupsNamespace (CreateRuleGroupsNamespaceRequest request)
The
CreateRuleGroupsNamespace operation creates a rule groups namespace within a workspace. |
CreateScraperResult |
createScraper (CreateScraperRequest request)
The
CreateScraper operation creates a scraper to collect metrics. |
CreateWorkspaceResult |
createWorkspace (CreateWorkspaceRequest request)
Creates a Prometheus workspace.
|
DeleteAlertManagerDefinitionResult |
deleteAlertManagerDefinition (DeleteAlertManagerDefinitionRequest request)
Deletes the alert manager definition from a workspace.
|
DeleteLoggingConfigurationResult |
deleteLoggingConfiguration (DeleteLoggingConfigurationRequest request)
Deletes the logging configuration for a workspace.
|
DeleteRuleGroupsNamespaceResult |
deleteRuleGroupsNamespace (DeleteRuleGroupsNamespaceRequest request)
Deletes one rule groups namespace and its associated rule groups definition.
|
DeleteScraperResult |
deleteScraper (DeleteScraperRequest request)
The
DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper
performs. |
DeleteWorkspaceResult |
deleteWorkspace (DeleteWorkspaceRequest request)
Deletes an existing workspace.
|
DescribeAlertManagerDefinitionResult |
describeAlertManagerDefinition (DescribeAlertManagerDefinitionRequest request)
Retrieves the full information about the alert manager definition for a workspace.
|
DescribeLoggingConfigurationResult |
describeLoggingConfiguration (DescribeLoggingConfigurationRequest request)
Returns complete information about the current logging configuration of the workspace.
|
DescribeRuleGroupsNamespaceResult |
describeRuleGroupsNamespace (DescribeRuleGroupsNamespaceRequest request)
Returns complete information about one rule groups namespace.
|
DescribeScraperResult |
describeScraper (DescribeScraperRequest request)
The
DescribeScraper operation displays information about an existing scraper. |
DescribeWorkspaceResult |
describeWorkspace (DescribeWorkspaceRequest request)
Returns information about an existing workspace.
|
ResponseMetadata |
getCachedResponseMetadata (AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDefaultScraperConfigurationResult |
getDefaultScraperConfiguration (GetDefaultScraperConfigurationRequest request)
The
GetDefaultScraperConfiguration operation returns the default scraper configuration used when
Amazon EKS creates a scraper for you. |
ListRuleGroupsNamespacesResult |
listRuleGroupsNamespaces (ListRuleGroupsNamespacesRequest request)
Returns a list of rule groups namespaces in a workspace.
|
ListScrapersResult |
listScrapers (ListScrapersRequest request)
The
ListScrapers operation lists all of the scrapers in your account. |
ListTagsForResourceResult |
listTagsForResource (ListTagsForResourceRequest request)
The
ListTagsForResource operation returns the tags that are associated with an Amazon Managed
Service for Prometheus resource. |
ListWorkspacesResult |
listWorkspaces (ListWorkspacesRequest request)
Lists all of the Amazon Managed Service for Prometheus workspaces in your account.
|
PutAlertManagerDefinitionResult |
putAlertManagerDefinition (PutAlertManagerDefinitionRequest request)
Updates an existing alert manager definition in a workspace.
|
PutRuleGroupsNamespaceResult |
putRuleGroupsNamespace (PutRuleGroupsNamespaceRequest request)
Updates an existing rule groups namespace within a workspace.
|
void |
shutdown ()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource (TagResourceRequest request)
The
TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. |
UntagResourceResult |
untagResource (UntagResourceRequest request)
Removes the specified tags from an Amazon Managed Service for Prometheus resource.
|
UpdateLoggingConfigurationResult |
updateLoggingConfiguration (UpdateLoggingConfigurationRequest request)
Updates the log group ARN or the workspace ID of the current logging configuration.
|
UpdateWorkspaceAliasResult |
updateWorkspaceAlias (UpdateWorkspaceAliasRequest request)
Updates the alias of an existing workspace.
|
AmazonPrometheusWaiters |
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 public static AmazonPrometheusClientBuilder builder()
public CreateAlertManagerDefinitionResult createAlertManagerDefinition(CreateAlertManagerDefinitionRequest request)
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.
createAlertManagerDefinition in interface AmazonPrometheus createAlertManagerDefinitionRequest - Represents the input of a CreateAlertManagerDefinition operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public CreateLoggingConfigurationResult createLoggingConfiguration(CreateLoggingConfigurationRequest request)
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.
createLoggingConfiguration in interface AmazonPrometheus createLoggingConfigurationRequest - Represents the input of a CreateLoggingConfiguration operation.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public CreateRuleGroupsNamespaceResult createRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request)
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.
createRuleGroupsNamespace in interface AmazonPrometheus createRuleGroupsNamespaceRequest - Represents the input of a CreateRuleGroupsNamespace operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public CreateScraperResult createScraper(CreateScraperRequest request)
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.
createScraper in interface AmazonPrometheus createScraperRequest - Represents the input of a CreateScraper operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public CreateWorkspaceResult createWorkspace(CreateWorkspaceRequest request)
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.
createWorkspace in interface AmazonPrometheus createWorkspaceRequest - Represents the input of a CreateWorkspace operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public DeleteAlertManagerDefinitionResult deleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request)
Deletes the alert manager definition from a workspace.
deleteAlertManagerDefinition in interface AmazonPrometheus deleteAlertManagerDefinitionRequest - Represents the input of a DeleteAlertManagerDefinition operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DeleteLoggingConfigurationResult deleteLoggingConfiguration(DeleteLoggingConfigurationRequest request)
Deletes the logging configuration for a workspace.
deleteLoggingConfiguration in interface AmazonPrometheus deleteLoggingConfigurationRequest - Represents the input of a DeleteLoggingConfiguration operation.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DeleteRuleGroupsNamespaceResult deleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request)
Deletes one rule groups namespace and its associated rule groups definition.
deleteRuleGroupsNamespace in interface AmazonPrometheus deleteRuleGroupsNamespaceRequest - Represents the input of a DeleteRuleGroupsNamespace operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DeleteScraperResult deleteScraper(DeleteScraperRequest request)
The DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper
performs.
deleteScraper in interface AmazonPrometheus deleteScraperRequest - Represents the input of a DeleteScraper operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DeleteWorkspaceResult deleteWorkspace(DeleteWorkspaceRequest request)
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.
deleteWorkspace in interface AmazonPrometheus deleteWorkspaceRequest - Represents the input of a DeleteWorkspace operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DescribeAlertManagerDefinitionResult describeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request)
Retrieves the full information about the alert manager definition for a workspace.
describeAlertManagerDefinition in interface AmazonPrometheus describeAlertManagerDefinitionRequest - Represents the input of a DescribeAlertManagerDefinition operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DescribeLoggingConfigurationResult describeLoggingConfiguration(DescribeLoggingConfigurationRequest request)
Returns complete information about the current logging configuration of the workspace.
describeLoggingConfiguration in interface AmazonPrometheus describeLoggingConfigurationRequest - Represents the input of a DescribeLoggingConfiguration operation.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DescribeRuleGroupsNamespaceResult describeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request)
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use
ListRuleGroupsNamespaces.
describeRuleGroupsNamespace in interface AmazonPrometheus describeRuleGroupsNamespaceRequest - Represents the input of a DescribeRuleGroupsNamespace operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DescribeScraperResult describeScraper(DescribeScraperRequest request)
The DescribeScraper operation displays information about an existing scraper.
describeScraper in interface AmazonPrometheus describeScraperRequest - Represents the input of a DescribeScraper operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public DescribeWorkspaceResult describeWorkspace(DescribeWorkspaceRequest request)
Returns information about an existing workspace.
describeWorkspace in interface AmazonPrometheus describeWorkspaceRequest - Represents the input of a DescribeWorkspace operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public GetDefaultScraperConfigurationResult getDefaultScraperConfiguration(GetDefaultScraperConfigurationRequest request)
The GetDefaultScraperConfiguration operation returns the default scraper configuration used when
Amazon EKS creates a scraper for you.
getDefaultScraperConfiguration in interface AmazonPrometheus getDefaultScraperConfigurationRequest - Represents the input of a GetDefaultScraperConfiguration operation.ThrottlingException - The request was denied due to request throttling.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public ListRuleGroupsNamespacesResult listRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request)
Returns a list of rule groups namespaces in a workspace.
listRuleGroupsNamespaces in interface AmazonPrometheus listRuleGroupsNamespacesRequest - Represents the input of a ListRuleGroupsNamespaces operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public ListScrapersResult listScrapers(ListScrapersRequest request)
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.
listScrapers in interface AmazonPrometheus listScrapersRequest - Represents the input of a ListScrapers operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
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.
listTagsForResource in interface AmazonPrometheus listTagsForResourceRequest - ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public ListWorkspacesResult listWorkspaces(ListWorkspacesRequest request)
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
listWorkspaces in interface AmazonPrometheus listWorkspacesRequest - Represents the input of a ListWorkspaces operation.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public PutAlertManagerDefinitionResult putAlertManagerDefinition(PutAlertManagerDefinitionRequest request)
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
.
putAlertManagerDefinition in interface AmazonPrometheus putAlertManagerDefinitionRequest - Represents the input of a PutAlertManagerDefinition operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public PutRuleGroupsNamespaceResult putRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request)
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.
putRuleGroupsNamespace in interface AmazonPrometheus putRuleGroupsNamespaceRequest - Represents the input of a PutRuleGroupsNamespace operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public TagResourceResult tagResource(TagResourceRequest request)
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.
tagResource in interface AmazonPrometheus tagResourceRequest - ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public UntagResourceResult untagResource(UntagResourceRequest request)
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.
untagResource in interface AmazonPrometheus untagResourceRequest - ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public UpdateLoggingConfigurationResult updateLoggingConfiguration(UpdateLoggingConfigurationRequest request)
Updates the log group ARN or the workspace ID of the current logging configuration.
updateLoggingConfiguration in interface AmazonPrometheus updateLoggingConfigurationRequest - Represents the input of an UpdateLoggingConfiguration operation.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.public UpdateWorkspaceAliasResult updateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
Updates the alias of an existing workspace.
updateWorkspaceAlias in interface AmazonPrometheus updateWorkspaceAliasRequest - Represents the input of an UpdateWorkspaceAlias operation.ThrottlingException - The request was denied due to request throttling.ConflictException - The request would cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The request references a resources that doesn't exist.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - An unexpected error occurred during the processing of the request.ServiceQuotaExceededException - Completing the request would cause a service quota to be exceeded.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonPrometheus request - The originally executed requestpublic AmazonPrometheusWaiters waiters()
waiters in interface AmazonPrometheus public void shutdown()
AmazonWebServiceClient shutdown in interface AmazonPrometheus shutdown in class AmazonWebServiceClient