Package-level declarations

Types

Link copied to clipboard
interface AmpClient : SdkClient

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.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Functions

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
inline suspend fun AmpClient.createScraper(crossinline block: CreateScraperRequest.Builder.() -> Unit): CreateScraperResponse

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.

Link copied to clipboard

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.

Link copied to clipboard

Deletes the alert manager definition from a workspace.

Link copied to clipboard

Deletes the logging configuration for a workspace.

Link copied to clipboard

Deletes one rule groups namespace and its associated rule groups definition.

Link copied to clipboard
inline suspend fun AmpClient.deleteScraper(crossinline block: DeleteScraperRequest.Builder.() -> Unit): DeleteScraperResponse

The DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper performs.

Link copied to clipboard

Deletes an existing workspace.

Link copied to clipboard

Retrieves the full information about the alert manager definition for a workspace.

Link copied to clipboard

Returns complete information about the current logging configuration of the workspace.

Link copied to clipboard

Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use ListRuleGroupsNamespaces.

Link copied to clipboard

The DescribeScraper operation displays information about an existing scraper.

Link copied to clipboard

Returns information about an existing workspace.

Link copied to clipboard

The GetDefaultScraperConfiguration operation returns the default scraper configuration used when Amazon EKS creates a scraper for you.

Link copied to clipboard

Returns a list of rule groups namespaces in a workspace.

Link copied to clipboard
inline suspend fun AmpClient.listScrapers(crossinline block: ListScrapersRequest.Builder.() -> Unit): ListScrapersResponse

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.

Link copied to clipboard

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.

Link copied to clipboard

Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
inline suspend fun AmpClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

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.

Link copied to clipboard
inline suspend fun AmpClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse

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.

Link copied to clipboard

Updates the log group ARN or the workspace ID of the current logging configuration.

Link copied to clipboard

Updates the alias of an existing workspace.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.