ems

package
v2.0.0-...-1b98e1c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AutoResolved = "autoresolved"
View Source
const DefaultBookendResolutionDuration = 28 * 24 * time.Hour // 28 days == 672 hours
View Source
const Hyphen = "-"
View Source
const MaxBookendInstances = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type Ems

type Ems struct {
	*rest2.Rest  // provides: AbstractCollector, Client, Object, Query, TemplateFn, TemplateType
	Query        string
	TemplatePath string

	Filter        []string
	Fields        []string
	ReturnTimeOut *int

	DefaultLabels []string
	// contains filtered or unexported fields
}

func (*Ems) HandleResults

func (e *Ems) HandleResults(result []gjson.Result, prop map[string][]*emsProp) (map[string]*matrix.Matrix, uint64, uint64)

HandleResults function is used for handling the rest response for parent as well as endpoints calls,

func (*Ems) HarvestModule

func (e *Ems) HarvestModule() plugin.ModuleInfo

func (*Ems) Init

func (e *Ems) Init(a *collector.AbstractCollector) error

func (*Ems) InitCache

func (e *Ems) InitCache() error

func (*Ems) InitEmsProp

func (e *Ems) InitEmsProp()

func (*Ems) InitMatrix

func (e *Ems) InitMatrix() error

func (*Ems) LoadPlugin

func (e *Ems) LoadPlugin(kind string, _ *plugin.AbstractPlugin) plugin.Plugin

func (*Ems) ParseDefaults

func (e *Ems) ParseDefaults(prop *emsProp)

func (*Ems) ParseExports

func (e *Ems) ParseExports(counter *node.Node, prop *emsProp)

func (*Ems) ParseLabels

func (e *Ems) ParseLabels(labels *node.Node, prop *emsProp)

func (*Ems) ParseMatches

func (e *Ems) ParseMatches(matches *node.Node, prop *emsProp)

func (*Ems) ParseResolveEms

func (e *Ems) ParseResolveEms(resolveEvent *node.Node, issueEmsProp emsProp)

func (*Ems) PollData

func (e *Ems) PollData() (map[string]*matrix.Matrix, error)

func (*Ems) PollInstance

func (e *Ems) PollInstance() (map[string]*matrix.Matrix, error)

PollInstance queries the cluster's EMS catalog and intersects that catalog with the EMS template. This is required because ONTAP EMS Rest endpoint fails when queried for an EMS message that does not exist.

type Matches

type Matches struct {
	Name string
	// contains filtered or unexported fields
}

type Metric

type Metric struct {
	Label      string
	Name       string
	MetricType string
	Exportable bool
}

Jump to

Keyboard shortcuts

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