event

package
v0.99.0-sumo-0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventConfig

type EventConfig struct {
	// IncludeCommandName indicates to include the attribute `command.name`
	IncludeCommandName bool `mapstructure:"include_command_name,omitempty"`
	// IncludeCommandStatus indicates to include the attribute `command.status`
	// indicating the command's exit code
	IncludeCommandStatus bool `mapstructure:"include_command_status,omitempty"`
	// IncludeDuration indicates to include the attribute `command.duration`
	IncludeDuration bool `mapstructure:"include_command_duration,omitempty"`
	// MaxBodySize restricts the length of command output to a specified size.
	// Excess output will be truncated.
	MaxBodySize helper.ByteSize `mapstructure:"max_body_size,omitempty"`
}

EventConfig handles output as if it is a monitoring job. Should emit a single event per command execution summarizing the execution.

func (*EventConfig) Build

type EventConfigFactory

type EventConfigFactory struct{}

func (EventConfigFactory) CreateDefaultConfig

func (EventConfigFactory) CreateDefaultConfig() consumer.Builder

Jump to

Keyboard shortcuts

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