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..
Click to show internal directories.
Click to hide internal directories.