nrwin

package
v1.67.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

package nrwin stores NewRelic-crafted windows functionalities and tools

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PdhPoll

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

PdhPoll creates repeatable queries for the Windows PDH api

func NewPdhPoll

func NewPdhPoll(loggerFunc func(string, ...interface{}), metrics ...string) (PdhPoll, error)

NewPdhPoll creates a PdhPoll object for the provided metric names. It also accepts a nillable printf-like function to debub some non-critical, wrong returned values

func (*PdhPoll) Close

func (pdh *PdhPoll) Close() error

Close frees the associated resources a handlers for a PDH query

func (*PdhPoll) Poll

func (pdh *PdhPoll) Poll() (map[string]float64, error)

At the moment, the poller is limited to metrics that can be represented as a float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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