osv

package
v0.0.0-...-4e9b0e4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Parts of returned namespace
	Vendor = "intel"

	// Name of plugin
	Name = "osv"

	// Version of plugin
	Version = 4

	// Type of plugin
	Type = plugin.CollectorPluginType
)

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Meta returns plugin meta data info

Types

type Counter

type Counter struct {
	Name  string
	Count uint64
}

Counter struct for unmarshalled json stucture

type Counters

type Counters struct {
	TimeMs uint64 `json:"time_ms"`
	List   []Counter
}

Counters struct for unmarshalled json stucture

type Osv

type Osv struct {
}

Osv struct

func NewOsvCollector

func NewOsvCollector() *Osv

NewOsvCollector returns new Collector instance

func (*Osv) CollectMetrics

func (p *Osv) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics returns collected metrics

func (*Osv) GetConfigPolicy

func (p *Osv) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns a config policy

func (*Osv) GetMetricTypes

func (p *Osv) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns metric types that can be collected

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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