schemalesslogmetric

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 Measures = struct {
	Attribute  Measure
	Occurrence Measure
}{
	"ATTRIBUTE",
	"OCCURRENCE",
}

Functions

This section is empty.

Types

type Measure

type Measure string

type Settings

type Settings struct {
	Dimensions       []string `json:"dimensions,omitempty"`       // To enable splitting on your metric, add desired dimensions.\n\nYou can select a dimension name from the list or set it to any value. To extract fields from logs, you can use [log processing](builtin:logmonitoring.log-dpp-rules).
	Enabled          bool     `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
	Key              string   `json:"key"`                        // Metric key
	Measure          Measure  `json:"measure"`                    // Possible Values: `OCCURRENCE`, `ATTRIBUTE`
	MeasureAttribute *string  `json:"measureAttribute,omitempty"` // Attribute
	Query            string   `json:"query"`                      // Matcher
}

func (*Settings) MarshalHCL

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

func (*Settings) Name

func (me *Settings) Name() string

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