dpapi

package
v1.29.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaPAgent

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

func NewDeltaPAgent

func NewDeltaPAgent(address string, sensorName, nodeName, nodeIP string, insecureSkipVerify bool, timeout time.Duration, editorFns ...util.RequestEditorFn) *DeltaPAgent

NewDeltaPAgent inits the client. At least one of sensorName, nodeName or nodeIP must be specified.

func (*DeltaPAgent) Endpoint

func (a *DeltaPAgent) Endpoint() (string, error)

Endpoint constructs the API endpoint.

There is 3 types of URL.

func (*DeltaPAgent) Fetch

func (a *DeltaPAgent) Fetch(ctx context.Context) (float64, error)

func (*DeltaPAgent) GetSensorValue

func (a *DeltaPAgent) GetSensorValue(ctx context.Context) (sensorValue, error)

func (*DeltaPAgent) ValueType

func (a *DeltaPAgent) ValueType() metrics.ValueType

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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