cloudwatch

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	DB *data.Manager
}

Service encapsulates cloudwatch session and operations

func (Service) CreateLogGroup added in v1.0.27

func (service Service) CreateLogGroup(groupName string) error

CreateLogGroup creates a cloudwatch log group

func (Service) CreateLogStream added in v1.0.27

func (service Service) CreateLogStream(groupName, streamName string) error

CreateLogStream creates a cloudwatch log stream

func (Service) GetAWSSession added in v1.0.27

func (service Service) GetAWSSession() (*session.Session, error)

GetAWSSession gets an AWS session to use with an operation

func (Service) WriteToLog

func (service Service) WriteToLog(groupName, streamName string, entries []journal.Entry) error

WriteToLog writes the journal entries to the cloudwatch log stream for the tokens Might want to handle errors similarly to https://github.com/devops-genuine/opentelemetry-collector-contrib/blob/e38594a148080bd0b102281b830505c4acb1b736/exporter/awsemfexporter/cwlog_client.go#L84-L118

Jump to

Keyboard shortcuts

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