converter

package
v0.0.0-...-305b857 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnknownTags

func UnknownTags(tags []string) []string

Types

type Converter

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

func New

func New(metricPrefix string, opts ...Option) *Converter

func (*Converter) Convert

func (c *Converter) Convert(data smartctl.Data) metric.DeviceMetrics

type Option

type Option func(converter *Converter)

func WithATADeviceStats

func WithATADeviceStats(entries ...string) Option

func WithATASmartAttributes

func WithATASmartAttributes(entries ...string) Option

func WithNVMeHealthInfo

func WithNVMeHealthInfo(entries ...string) Option

func WithTags

func WithTags(tagNames ...string) Option

Jump to

Keyboard shortcuts

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