wmi

package
Version: v0.0.0-...-12ddfe4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

+build windows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WmiColumnDef

type WmiColumnDef struct {
	Name string
	As   string
	Type string
}

type WmiInput

type WmiInput struct {
	Object map[string][]*WmiObject
	// contains filtered or unexported fields
}

func (*WmiInput) Collect

func (w *WmiInput) Collect(acc telegraf.Accumulator, measurement string, wmiObjects []*WmiObject) error

func (*WmiInput) ConnectWmi

func (w *WmiInput) ConnectWmi() error

func (*WmiInput) Description

func (w *WmiInput) Description() string

Description returns a one-sentence description on the Input

func (*WmiInput) Gather

func (w *WmiInput) Gather(acc telegraf.Accumulator) error

Gather takes in an accumulator and adds the metrics that the Input gathers. This is called every "interval"

func (*WmiInput) ParseConfig

func (w *WmiInput) ParseConfig() error

func (*WmiInput) Process

func (w *WmiInput) Process(measurement string, acc telegraf.Accumulator) error

func (*WmiInput) SampleConfig

func (w *WmiInput) SampleConfig() string

SampleConfig returns the default configuration of the Input

type WmiMetricItem

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

func (*WmiMetricItem) Process

func (mi *WmiMetricItem) Process(cmap map[string]WmiColumnDef, dataIn reflect.Value) error

type WmiObject

type WmiObject struct {
	Host      string
	Namespace string
	User      string
	Password  string
	Table     string
	As        string
	Something string
	Columns   []WmiColumnDef
	Where     string
	// contains filtered or unexported fields
}

func (*WmiObject) Query

func (wo *WmiObject) Query(pwg *sync.WaitGroup, wmi *wmi.SWbemServices)

Source Files

Jump to

Keyboard shortcuts

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