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
Click to show internal directories.
Click to hide internal directories.