cloudwatch

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatch

type CloudWatch struct {
	// contains filtered or unexported fields
}

func New

func New(name string, options ...Option) (CloudWatch, error)

func (CloudWatch) MarshalJSON

func (datasource CloudWatch) MarshalJSON() ([]byte, error)

func (CloudWatch) Name

func (datasource CloudWatch) Name() string

type Option

type Option func(datasource *CloudWatch) error

func AccessSecretAuth

func AccessSecretAuth(accessKey string, secretKey string) Option

AccessSecretAuth relies on an access and secret key to authenticate to the CloudWatch service.

func AssumeRoleARN

func AssumeRoleARN(roleARN string) Option

AssumeRoleARN specifies the ARN of a role to assume. Format: arn:aws:iam:*

func CustomMetricsNamespaces

func CustomMetricsNamespaces(namespaces ...string) Option

CustomMetricsNamespaces specifies a list of namespaces for custom metrics.

func Default

func Default() Option

Default configures this datasource to be the default one.

func DefaultAuth

func DefaultAuth() Option

DefaultAuth relies on the AWS SDK default authentication to authenticate to the CloudWatch service.

func DefaultRegion

func DefaultRegion(region string) Option

DefaultRegion sets the default region to use. Example: eu-north-1.

func Endpoint

func Endpoint(endpoint string) Option

Endpoint specifies a custom endpoint for the CloudWatch service.

func ExternalID

func ExternalID(externalID string) Option

ExternalID specifies the external identifier of a role to assume in another account.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL