usage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Returns a 1-hour sliding window reflecting this Postman Live Collections Agent's CPU and memory usage, updated every pollingInterval minutes, or nil if resource usage is unavailable.

The polling interval is set by the first call to Poll(). If the interval doesn't evenly divide a 1-hour sliding window, the sliding window becomes the largest multiple of the polling interval less than 1 hour, or simply the polling interval if longer than 1 hour.

func Poll

func Poll(done <-chan struct{}, delay time.Duration, pollingInterval time.Duration)

Waits delay seconds, then starts polling resource usage every N seconds. If another process has already started polling, this call has no effect. Use Get() to get the latest usage data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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