customlogsourcesettings

package
v1.56.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextTypes = struct {
	DtEntityProcessGroup ContextType
}{
	"dt.entity.process_group",
}
View Source
var LogSourceTypes = struct {
	LogPathPattern  LogSourceType
	WindowsEventLog LogSourceType
}{
	"LOG_PATH_PATTERN",
	"WINDOWS_EVENT_LOG",
}

Functions

This section is empty.

Types

type Context

type Context struct {
	Attribute ContextType `json:"attribute"` // Possible Values: `Dt_entity_process_group`
	Values    []string    `json:"values"`
}

func (*Context) MarshalHCL

func (me *Context) MarshalHCL(properties hcl.Properties) error

func (*Context) Schema

func (me *Context) Schema() map[string]*schema.Schema

func (*Context) UnmarshalHCL

func (me *Context) UnmarshalHCL(decoder hcl.Decoder) error

type ContextType

type ContextType string

type Contexts

type Contexts []*Context

func (Contexts) MarshalHCL

func (me Contexts) MarshalHCL(properties hcl.Properties) error

func (*Contexts) Schema

func (me *Contexts) Schema() map[string]*schema.Schema

func (*Contexts) UnmarshalHCL

func (me *Contexts) UnmarshalHCL(decoder hcl.Decoder) error

type CustomLogSource

type CustomLogSource struct {
	Accept_binary *bool         `json:"accept-binary,omitempty"` // Accept binary content
	Type          LogSourceType `json:"type"`                    // Possible Values: `LOG_PATH_PATTERN`, `WINDOWS_EVENT_LOG`
	Values        []string      `json:"values"`                  // It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
}

func (*CustomLogSource) MarshalHCL

func (me *CustomLogSource) MarshalHCL(properties hcl.Properties) error

func (*CustomLogSource) Schema

func (me *CustomLogSource) Schema() map[string]*schema.Schema

func (*CustomLogSource) UnmarshalHCL

func (me *CustomLogSource) UnmarshalHCL(decoder hcl.Decoder) error

type LogSourceType

type LogSourceType string

type Settings

type Settings struct {
	Name              string           `json:"config-item-title"` // Name
	Context           Contexts         `json:"context,omitempty"` // Define Custom Log Source only within context if provided
	Custom_log_source *CustomLogSource `json:"custom-log-source"`
	Enabled           bool             `json:"enabled"`         // This setting is enabled (`true`) or disabled (`false`)
	Scope             *string          `json:"-" scope:"scope"` // The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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