gcptypes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullConfig

type PullConfig struct {
	ProjectID            string            `alloy:"project_id,attr"`
	Subscription         string            `alloy:"subscription,attr"`
	Labels               map[string]string `alloy:"labels,attr,optional"`
	UseIncomingTimestamp bool              `alloy:"use_incoming_timestamp,attr,optional"`
	UseFullLine          bool              `alloy:"use_full_line,attr,optional"`
}

PullConfig configures a GCPLog target with the 'pull' strategy.

type PushConfig

type PushConfig struct {
	Server               *fnet.ServerConfig `alloy:",squash"`
	PushTimeout          time.Duration      `alloy:"push_timeout,attr,optional"`
	Labels               map[string]string  `alloy:"labels,attr,optional"`
	UseIncomingTimestamp bool               `alloy:"use_incoming_timestamp,attr,optional"`
	UseFullLine          bool               `alloy:"use_full_line,attr,optional"`
}

PushConfig configures a GCPLog target with the 'push' strategy.

func (*PushConfig) SetToDefault

func (p *PushConfig) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*PushConfig) Validate

func (p *PushConfig) Validate() error

Validate implements syntax.Validator.

Jump to

Keyboard shortcuts

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