Documentation ¶
Index ¶
- Constants
- func LogDestination(g *obs.GoogleCloudLogging) Element
- func New(id string, o obs.OutputSpec, inputs []string, secrets observability.Secrets, ...) []Element
- func NormalizeSeverity(componentID string, inputs []string) Element
- func SeverityKey(g *obs.GoogleCloudLogging) string
- type GoogleCloudLogging
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 ¶
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
Click to show internal directories.
Click to hide internal directories.