@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonPrometheus extends Object implements AmazonPrometheus
AmazonPrometheus
. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
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() |
public CreateAlertManagerDefinitionResult createAlertManagerDefinition(CreateAlertManagerDefinitionRequest request)
AmazonPrometheus
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
request
- Represents the input of a CreateAlertManagerDefinition
operation.public CreateLoggingConfigurationResult createLoggingConfiguration(CreateLoggingConfigurationRequest request)
AmazonPrometheus
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
request
- Represents the input of a CreateLoggingConfiguration
operation.public CreateRuleGroupsNamespaceResult createRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request)
AmazonPrometheus
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
request
- Represents the input of a CreateRuleGroupsNamespace
operation.public CreateScraperResult createScraper(CreateScraperRequest request)
AmazonPrometheus
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
request
- Represents the input of a CreateScraper
operation.public CreateWorkspaceResult createWorkspace(CreateWorkspaceRequest request)
AmazonPrometheus
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
request
- Represents the input of a CreateWorkspace
operation.public DeleteAlertManagerDefinitionResult deleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request)
AmazonPrometheus
Deletes the alert manager definition from a workspace.
deleteAlertManagerDefinition
in interface AmazonPrometheus
request
- Represents the input of a DeleteAlertManagerDefinition
operation.public DeleteLoggingConfigurationResult deleteLoggingConfiguration(DeleteLoggingConfigurationRequest request)
AmazonPrometheus
Deletes the logging configuration for a workspace.
deleteLoggingConfiguration
in interface AmazonPrometheus
request
- Represents the input of a DeleteLoggingConfiguration
operation.public DeleteRuleGroupsNamespaceResult deleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request)
AmazonPrometheus
Deletes one rule groups namespace and its associated rule groups definition.
deleteRuleGroupsNamespace
in interface AmazonPrometheus
request
- Represents the input of a DeleteRuleGroupsNamespace
operation.public DeleteScraperResult deleteScraper(DeleteScraperRequest request)
AmazonPrometheus
The DeleteScraper
operation deletes one scraper, and stops any metrics collection that the scraper
performs.
deleteScraper
in interface AmazonPrometheus
request
- Represents the input of a DeleteScraper
operation.public DeleteWorkspaceResult deleteWorkspace(DeleteWorkspaceRequest request)
AmazonPrometheus
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
request
- Represents the input of a DeleteWorkspace
operation.public DescribeAlertManagerDefinitionResult describeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request)
AmazonPrometheus
Retrieves the full information about the alert manager definition for a workspace.
describeAlertManagerDefinition
in interface AmazonPrometheus
request
- Represents the input of a DescribeAlertManagerDefinition
operation.public DescribeLoggingConfigurationResult describeLoggingConfiguration(DescribeLoggingConfigurationRequest request)
AmazonPrometheus
Returns complete information about the current logging configuration of the workspace.
describeLoggingConfiguration
in interface AmazonPrometheus
request
- Represents the input of a DescribeLoggingConfiguration
operation.public DescribeRuleGroupsNamespaceResult describeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request)
AmazonPrometheus
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use
ListRuleGroupsNamespaces
.
describeRuleGroupsNamespace
in interface AmazonPrometheus
request
- Represents the input of a DescribeRuleGroupsNamespace
operation.public DescribeScraperResult describeScraper(DescribeScraperRequest request)
AmazonPrometheus
The DescribeScraper
operation displays information about an existing scraper.
describeScraper
in interface AmazonPrometheus
request
- Represents the input of a DescribeScraper
operation.public DescribeWorkspaceResult describeWorkspace(DescribeWorkspaceRequest request)
AmazonPrometheus
Returns information about an existing workspace.
describeWorkspace
in interface AmazonPrometheus
request
- Represents the input of a DescribeWorkspace
operation.public GetDefaultScraperConfigurationResult getDefaultScraperConfiguration(GetDefaultScraperConfigurationRequest request)
AmazonPrometheus
The GetDefaultScraperConfiguration
operation returns the default scraper configuration used when
Amazon EKS creates a scraper for you.
getDefaultScraperConfiguration
in interface AmazonPrometheus
request
- Represents the input of a GetDefaultScraperConfiguration
operation.public ListRuleGroupsNamespacesResult listRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request)
AmazonPrometheus
Returns a list of rule groups namespaces in a workspace.
listRuleGroupsNamespaces
in interface AmazonPrometheus
request
- Represents the input of a ListRuleGroupsNamespaces
operation.public ListScrapersResult listScrapers(ListScrapersRequest request)
AmazonPrometheus
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
request
- Represents the input of a ListScrapers
operation.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
AmazonPrometheus
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
public ListWorkspacesResult listWorkspaces(ListWorkspacesRequest request)
AmazonPrometheus
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
listWorkspaces
in interface AmazonPrometheus
request
- Represents the input of a ListWorkspaces
operation.public PutAlertManagerDefinitionResult putAlertManagerDefinition(PutAlertManagerDefinitionRequest request)
AmazonPrometheus
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
request
- Represents the input of a PutAlertManagerDefinition
operation.public PutRuleGroupsNamespaceResult putRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request)
AmazonPrometheus
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
request
- Represents the input of a PutRuleGroupsNamespace
operation.public TagResourceResult tagResource(TagResourceRequest request)
AmazonPrometheus
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
public UntagResourceResult untagResource(UntagResourceRequest request)
AmazonPrometheus
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
public UpdateLoggingConfigurationResult updateLoggingConfiguration(UpdateLoggingConfigurationRequest request)
AmazonPrometheus
Updates the log group ARN or the workspace ID of the current logging configuration.
updateLoggingConfiguration
in interface AmazonPrometheus
request
- Represents the input of an UpdateLoggingConfiguration
operation.public UpdateWorkspaceAliasResult updateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
AmazonPrometheus
Updates the alias of an existing workspace.
updateWorkspaceAlias
in interface AmazonPrometheus
request
- Represents the input of an UpdateWorkspaceAlias
operation.public void shutdown()
AmazonPrometheus
shutdown
in interface AmazonPrometheus
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonPrometheus
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 a request.
getCachedResponseMetadata
in interface AmazonPrometheus
request
- The originally executed request.public AmazonPrometheusWaiters waiters()
waiters
in interface AmazonPrometheus