Module: Aws::PrometheusService

Defined in:
lib/aws-sdk-prometheusservice/endpoint_parameters.rb,
lib/aws-sdk-prometheusservice/plugins/endpoints.rb,
lib/aws-sdk-prometheusservice/endpoint_provider.rb,
lib/aws-sdk-prometheusservice/client_api.rb,
lib/aws-sdk-prometheusservice/endpoints.rb,
lib/aws-sdk-prometheusservice/resource.rb,
lib/aws-sdk-prometheusservice/waiters.rb,
lib/aws-sdk-prometheusservice/errors.rb,
lib/aws-sdk-prometheusservice/client.rb,
lib/aws-sdk-prometheusservice/types.rb,
lib/aws-sdk-prometheusservice.rb

Overview

This module provides support for Amazon Prometheus Service. This module is available in the ‘aws-sdk-prometheusservice` gem.

# Client

The Client class provides one method for each API operation. Operation methods each accept a hash of request parameters and return a response structure.

prometheus_service = Aws::PrometheusService::Client.new
resp = prometheus_service.create_alert_manager_definition(params)

See Client for more information.

# Errors

Errors returned from Amazon Prometheus Service are defined in the Errors module and all extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::PrometheusService::Errors::ServiceError
  # rescues all Amazon Prometheus Service API errors
end

See Errors for more information.

Defined Under Namespace

Modules: ClientApi, Endpoints, Errors, Plugins, Types, Waiters Classes: Client, EndpointParameters, EndpointProvider, Resource

service collapse

GEM_VERSION =
'1.42.0'