gcl

package
v0.0.0-...-fbbe22e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrganizationID   = "organization_id"
	ProjectID        = "project_id"
	BillingAccountID = "billing_account_id"
	FolderID         = "folder_id"

	DefaultSeverityKey = "level"

	GoogleApplicationCredentialsKey = "google-application-credentials.json"
)

Variables

This section is empty.

Functions

func LogDestination

func LogDestination(g *obs.GoogleCloudLogging) Element

LogDestination is one of BillingAccountID, OrganizationID, FolderID, or ProjectID in that order

func New

func New(id string, o obs.OutputSpec, inputs []string, secrets observability.Secrets, strategy common.ConfigStrategy, op Options) []Element

func NormalizeSeverity

func NormalizeSeverity(componentID string, inputs []string) Element

NormalizeSeverity normalizes log severity to conform to GCL's standard Accepted Severity: DEFAULT, EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG Ref: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity

func SeverityKey

func SeverityKey(g *obs.GoogleCloudLogging) string

Types

type GoogleCloudLogging

type GoogleCloudLogging struct {
	Desc        string
	ComponentID string
	Inputs      string

	LogDestination Element

	LogID       string
	SeverityKey string

	CredentialsPath string
	common.RootMixin
}

func (GoogleCloudLogging) Name

func (g GoogleCloudLogging) Name() string

func (*GoogleCloudLogging) SetCompression

func (g *GoogleCloudLogging) SetCompression(algo string)

func (GoogleCloudLogging) Template

func (g GoogleCloudLogging) Template() string

Jump to

Keyboard shortcuts

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