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 ¶
func (c *EventConfig) Build(logger *zap.SugaredLogger, op consumer.WriterOp) (consumer.Interface, error)
type EventConfigFactory ¶
type EventConfigFactory struct{}
func (EventConfigFactory) CreateDefaultConfig ¶
func (EventConfigFactory) CreateDefaultConfig() consumer.Builder
Click to show internal directories.
Click to hide internal directories.