settings

package
v0.0.0-...-204e4ba Latest Latest
Warning

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

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

Documentation

Overview

Package settings contains the runtime settings for the agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DsdCaptureDurationRuntimeSetting

type DsdCaptureDurationRuntimeSetting struct {
	// contains filtered or unexported fields
}

DsdCaptureDurationRuntimeSetting wraps operations to change the duration, in seconds, of traffic captures

func NewDsdCaptureDurationRuntimeSetting

func NewDsdCaptureDurationRuntimeSetting(value string) *DsdCaptureDurationRuntimeSetting

NewDsdCaptureDurationRuntimeSetting returns a new DsdCaptureDurationRuntimeSetting

func (*DsdCaptureDurationRuntimeSetting) Description

func (l *DsdCaptureDurationRuntimeSetting) Description() string

Description returns the runtime setting's description

func (*DsdCaptureDurationRuntimeSetting) Get

func (l *DsdCaptureDurationRuntimeSetting) Get(_ config.Component) (interface{}, error)

Get returns the current value of the runtime setting

func (*DsdCaptureDurationRuntimeSetting) Hidden

Hidden returns whether or not this setting is hidden from the list of runtime settings

func (*DsdCaptureDurationRuntimeSetting) Name

Name returns the name of the runtime setting

func (*DsdCaptureDurationRuntimeSetting) Set

func (l *DsdCaptureDurationRuntimeSetting) Set(config config.Component, v interface{}, source model.Source) error

Set changes the value of the runtime setting

type DsdStatsRuntimeSetting

type DsdStatsRuntimeSetting struct {
	ServerDebug dogstatsddebug.Component
}

DsdStatsRuntimeSetting wraps operations to change the collection of dogstatsd stats at runtime.

func NewDsdStatsRuntimeSetting

func NewDsdStatsRuntimeSetting(serverDebug dogstatsddebug.Component) *DsdStatsRuntimeSetting

NewDsdStatsRuntimeSetting creates a new instance of DsdStatsRuntimeSetting

func (*DsdStatsRuntimeSetting) Description

func (s *DsdStatsRuntimeSetting) Description() string

Description returns the runtime setting's description

func (*DsdStatsRuntimeSetting) Get

func (s *DsdStatsRuntimeSetting) Get(_ config.Component) (interface{}, error)

Get returns the current value of the runtime setting

func (*DsdStatsRuntimeSetting) Hidden

func (s *DsdStatsRuntimeSetting) Hidden() bool

Hidden returns whether or not this setting is hidden from the list of runtime settings

func (*DsdStatsRuntimeSetting) Name

func (s *DsdStatsRuntimeSetting) Name() string

Name returns the name of the runtime setting

func (*DsdStatsRuntimeSetting) Set

func (s *DsdStatsRuntimeSetting) Set(config config.Component, v interface{}, source model.Source) error

Set changes the value of the runtime setting

type MultiRegionFailoverRuntimeSetting

type MultiRegionFailoverRuntimeSetting struct {
	// contains filtered or unexported fields
}

MultiRegionFailoverRuntimeSetting wraps operations to change the Multi-Region Failover settings at runtime.

func NewMultiRegionFailoverRuntimeSetting

func NewMultiRegionFailoverRuntimeSetting(name, desc string) *MultiRegionFailoverRuntimeSetting

NewMultiRegionFailoverRuntimeSetting creates a new instance of MultiRegionFailoverRuntimeSetting

func (*MultiRegionFailoverRuntimeSetting) Description

func (h *MultiRegionFailoverRuntimeSetting) Description() string

Description returns the runtime setting's description

func (*MultiRegionFailoverRuntimeSetting) Get

func (h *MultiRegionFailoverRuntimeSetting) Get(config config.Component) (interface{}, error)

Get returns the current value of the runtime setting

func (*MultiRegionFailoverRuntimeSetting) Hidden

Hidden returns whether or not this setting is hidden from the list of runtime settings

func (*MultiRegionFailoverRuntimeSetting) Name

Name returns the name of the runtime setting

func (*MultiRegionFailoverRuntimeSetting) Set

func (h *MultiRegionFailoverRuntimeSetting) Set(config config.Component, v interface{}, source model.Source) error

Set changes the value of the runtime setting; expected to be boolean

Jump to

Keyboard shortcuts

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