cloudWatch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteLogStream added in v0.0.3

func GetLogEvents added in v0.0.3

func GetLogEvents(cfg aws.Config, input *cloudwatchlogs.GetLogEventsInput)

func GetMetrics

GetMetrics gets the name, namespace, and dimension name of your Amazon CloudWatch metrics Inputs:

c is the context of the method call, which includes the Region
api is the interface that defines the method call
input defines the input arguments to the service call.

Output:

If success, a ListMetricsOutput object containing the result of the service call and nil
Otherwise, nil and an error from the call to ListMetrics

func List

func List(cfg aws.Config)

func Logs added in v0.0.3

func Logs(cfg aws.Config, lgroups string)

Types

type CWListMetricsAPI

type CWListMetricsAPI interface {
	ListMetrics(ctx context.Context,
		params *cloudwatch.ListMetricsInput,
		optFns ...func(*cloudwatch.Options)) (*cloudwatch.ListMetricsOutput, error)
}

CWListMetricsAPI defines the interface for the ListMetrics function. We use this interface to test the function using a mocked service.

Jump to

Keyboard shortcuts

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