Documentation ¶
Index ¶
- func DeleteLogStream(cfg aws.Config, input *cloudwatchlogs.DeleteLogStreamInput) (*cloudwatchlogs.DeleteLogStreamOutput, error)
- func GetLogEvents(cfg aws.Config, input *cloudwatchlogs.GetLogEventsInput)
- func GetMetrics(c context.Context, api CWListMetricsAPI, input *cloudwatch.ListMetricsInput) (*cloudwatch.ListMetricsOutput, error)
- func List(cfg aws.Config)
- func Logs(cfg aws.Config, lgroups string)
- type CWListMetricsAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLogStream ¶ added in v0.0.3
func DeleteLogStream(cfg aws.Config, input *cloudwatchlogs.DeleteLogStreamInput) (*cloudwatchlogs.DeleteLogStreamOutput, error)
func GetLogEvents ¶ added in v0.0.3
func GetLogEvents(cfg aws.Config, input *cloudwatchlogs.GetLogEventsInput)
func GetMetrics ¶
func GetMetrics(c context.Context, api CWListMetricsAPI, input *cloudwatch.ListMetricsInput) (*cloudwatch.ListMetricsOutput, error)
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
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.
Click to show internal directories.
Click to hide internal directories.