anomalydetectors

package
v1.59.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerInput

type AnalyzerInput struct {
	Input AnalyzerInputFields `json:"input,omitempty"` // Input fields for the specified analyzer
	Name  string              `json:"name"`            // Fully qualified name of the analyzer
}

func (*AnalyzerInput) MarshalHCL

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

func (*AnalyzerInput) Schema

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

func (*AnalyzerInput) UnmarshalHCL

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

type AnalyzerInputField

type AnalyzerInputField struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*AnalyzerInputField) MarshalHCL

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

func (*AnalyzerInputField) Schema

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

func (*AnalyzerInputField) UnmarshalHCL

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

type AnalyzerInputFields

type AnalyzerInputFields []*AnalyzerInputField

func (AnalyzerInputFields) MarshalHCL

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

func (*AnalyzerInputFields) Schema

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

func (*AnalyzerInputFields) UnmarshalHCL

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

type DavisEventTemplate

type DavisEventTemplate struct {
	Properties EventProperties `json:"properties,omitempty"` // Set of additional key-value properties to be attached to the triggered event.
}

func (*DavisEventTemplate) MarshalHCL

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

func (*DavisEventTemplate) Schema

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

func (*DavisEventTemplate) UnmarshalHCL

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

type EventProperties

type EventProperties []*EventProperty

func (EventProperties) MarshalHCL

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

func (*EventProperties) Schema

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

func (*EventProperties) UnmarshalHCL

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

type EventProperty

type EventProperty struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*EventProperty) MarshalHCL

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

func (*EventProperty) Schema

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

func (*EventProperty) UnmarshalHCL

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

type ExecutionSettings

type ExecutionSettings struct {
	QueryOffset *int `json:"queryOffset,omitempty"` // Minute offset of sliding evaluation window for metrics with latency
}

func (*ExecutionSettings) MarshalHCL

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

func (*ExecutionSettings) Schema

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

func (*ExecutionSettings) UnmarshalHCL

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

type Settings

type Settings struct {
	Analyzer          *AnalyzerInput      `json:"analyzer"`          // Analyzer input
	Description       string              `json:"description"`       // The description of the anomaly detector
	Enabled           bool                `json:"enabled"`           // This setting is enabled (`true`) or disabled (`false`)
	EventTemplate     *DavisEventTemplate `json:"eventTemplate"`     // Event template
	ExecutionSettings *ExecutionSettings  `json:"executionSettings"` // Execution settings
	Source            string              `json:"source"`            // Source
	Title             string              `json:"title"`             // The title of the anomaly detector
}

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