customlogsourcesettings

package
v1.57.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 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",
}
View Source
var WildcardExpansionTypes = struct {
	Attribute WildcardExpansionType
}{
	"attribute",
}

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,omitempty"`                // (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
	Values_and_enrichment CustomLogSourceWithEnrichments `json:"values-and-enrichment,omitempty"` // (Required attribute for cluster v1.292+) 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 CustomLogSourceWithEnrichment added in v1.57.0

type CustomLogSourceWithEnrichment struct {
	Enrichment Enrichments `json:"enrichment,omitempty"` // Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
	Path       string      `json:"path"`                 // Values
}

func (*CustomLogSourceWithEnrichment) MarshalHCL added in v1.57.0

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

func (*CustomLogSourceWithEnrichment) Schema added in v1.57.0

func (*CustomLogSourceWithEnrichment) UnmarshalHCL added in v1.57.0

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

type CustomLogSourceWithEnrichments added in v1.57.0

type CustomLogSourceWithEnrichments []*CustomLogSourceWithEnrichment

func (CustomLogSourceWithEnrichments) MarshalHCL added in v1.57.0

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

func (*CustomLogSourceWithEnrichments) Schema added in v1.57.0

func (*CustomLogSourceWithEnrichments) UnmarshalHCL added in v1.57.0

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

type Enrichment added in v1.57.0

type Enrichment struct {
	Key   *string               `json:"key,omitempty"`
	Type  WildcardExpansionType `json:"type"` // Possible Values: `Attribute`
	Value *string               `json:"value,omitempty"`
}

func (*Enrichment) MarshalHCL added in v1.57.0

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

func (*Enrichment) Schema added in v1.57.0

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

func (*Enrichment) UnmarshalHCL added in v1.57.0

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

type Enrichments added in v1.57.0

type Enrichments []*Enrichment

func (Enrichments) MarshalHCL added in v1.57.0

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

func (*Enrichments) Schema added in v1.57.0

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

func (*Enrichments) UnmarshalHCL added in v1.57.0

func (me *Enrichments) 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

type WildcardExpansionType added in v1.57.0

type WildcardExpansionType string

Jump to

Keyboard shortcuts

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