awscloudwatch

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

Log implements the cloudlog interface for AWS CloudWatchLogs.

func NewLog

func NewLog(sess *session.Session, region string, containerPlatform string) *Log

NewLog returns a new AWS CloudWatchLogs instance.

func (*Log) CreateLogConfigForStream

func (l *Log) CreateLogConfigForStream(ctx context.Context, cluster string, service string, serviceUUID string, stream string) *cloudlog.LogConfig

CreateLogConfigForStream creates the LogConfig for the stream to send logs to AWS CloudWatch. This is used for the service task or the system service that only runs one container.

func (*Log) CreateServiceLogConfig

func (l *Log) CreateServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) *cloudlog.LogConfig

CreateServiceLogConfig creates the LogConfig for the service to send logs to AWS CloudWatch.

func (*Log) DeleteServiceLogConfig

func (l *Log) DeleteServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error

DeleteServiceLogConfig deletes the CloudWatch log group.

func (*Log) InitializeServiceLogConfig

func (l *Log) InitializeServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error

InitializeServiceLogConfig creates the CloudWatch log group.

Jump to

Keyboard shortcuts

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