collector

package
v0.0.0-...-ddcacec Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogicmonitorMetric ...
	LogicmonitorMetric = "logicmonitor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicmonitorCollector

type LogicmonitorCollector struct {
	DataPointName        string
	DeviceDataSourceID   string
	DeviceDataSourceName string
	DeviceGroupID        string
	DeviceGroupName      string
	DeviceID             string
	DeviceName           string
	Period               float64
	// contains filtered or unexported fields
}

LogicmonitorCollector ...

func NewLogicmonitorCollector

func NewLogicmonitorCollector(client *client.LMSdkGo, config *c.MetricConfig, interval time.Duration) (*LogicmonitorCollector, error)

NewLogicmonitorCollector ...

func (*LogicmonitorCollector) GetMetrics

func (lm *LogicmonitorCollector) GetMetrics() ([]c.CollectedMetric, error)

GetMetrics ...

func (*LogicmonitorCollector) Interval

func (lm *LogicmonitorCollector) Interval() time.Duration

Interval returns the interval at which the collector should run.

type LogicmonitorPlugin

type LogicmonitorPlugin struct {
	// contains filtered or unexported fields
}

LogicmonitorPlugin ...

func NewLogicmonitorPlugin

func NewLogicmonitorPlugin(client *client.LMSdkGo) (*LogicmonitorPlugin, error)

NewLogicmonitorPlugin ...

func (*LogicmonitorPlugin) NewCollector

func (lm *LogicmonitorPlugin) NewCollector(hpa *v2beta2.HorizontalPodAutoscaler, config *c.MetricConfig, interval time.Duration) (c.Collector, error)

NewCollector initializes a new logicmonitor collector from the specified HPA..

Jump to

Keyboard shortcuts

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