logs

package
v0.1.77 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Describe

func Describe(logGroupNamePrefix *string, c cloudwatchlogsiface.CloudWatchLogsAPI) ([]*cloudwatchlogs.LogGroup, error)

Describe returns details for log groups

func SetRetention

func SetRetention(logGroupName string, retentionDays int64, c cloudwatchlogsiface.CloudWatchLogsAPI) error

SetRetention sets retention for CloudWatch log group retentionDays - the number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

Types

type LogGroupSummary

type LogGroupSummary struct {
	// The log groups.
	LogGroups []*cloudwatchlogs.LogGroup

	// The number of giga bytes stored.
	StoredGigaBytes *int64
	// The number of giga bytes stored.
	StoredMegaBytes *int64
	// The number of tera bytes stored.
	StoredTeraBytes *int64
}

func Summary

func Summary(logGroups []*cloudwatchlogs.LogGroup) *LogGroupSummary

Summary sums up stored bytes and converts them to GB

Jump to

Keyboard shortcuts

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