cloudwatch

package
v2.16.1-pre Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureGroupNameIsValid

func EnsureGroupNameIsValid(name string) string

EnsureGroupNameIsValid based upon the rules from aws:

  • Log group names must be unique within a region for an AWS account.
  • Log group names can be between 1 and 512 characters long.
  • Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).

func EnsureStreamNameIsValid

func EnsureStreamNameIsValid(name string) string

EnsureStreamNameIsValid based upon the provided rules from AWS

  • Log stream names must be unique within the log group.
  • Log stream names can be between 1 and 512 characters long.
  • The ':' (colon) and '*' (asterisk) characters are not allowed.

Types

type Administration

type Administration interface {
	// GetOutput for the specified group and output name.
	GetOutput(groupName, outputName string, logLevel log.LevelFlag) (log.Output, errors.TracerError)
}

Administration provides a layer that manages the control of cloud watch logs to behave like a standard log output.

func GetAdministration

func GetAdministration(logger log.Logger) (Administration, errors.TracerError)

GetAdministration for cloud watch logs

Jump to

Keyboard shortcuts

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