cloudwatch

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cloudwatch provides primitives to interact with Cloudwatch logs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CW

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

CW provides the APIo peration methods for making requests to AWS cloudwatch logs.

func New

func New(awsProfile *string, awsRegion *string) *CW

New creates a new instance of the CW client

func (*CW) LsGroups

func (cwl *CW) LsGroups(awsProfile *string) <-chan *string

LsGroups lists the stream groups It returns a channel where the stream groups are published

func (*CW) LsStreams

func (cwl *CW) LsStreams(groupName *string, streamName *string, startTimeMillis int64, endTimeMillis int64) <-chan *string

LsStreams lists the streams of a given stream group It returns a channel where the stream names are published

func (*CW) Tail

func (cwl *CW) Tail(logGroupName *string, logStreamName *string, follow *bool, startTime *time.Time, endTime *time.Time, grep *string, grepv *string) <-chan *cloudwatchlogs.FilteredLogEvent

Tail tails the given stream names in the specified log group name To tail all the available streams logStreamName has to be '*' It returns a channel where logs line are published Unless the follow flag is true the channel is closed once there are no more events available

Jump to

Keyboard shortcuts

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