Movatterモバイル変換


[0]ホーム

URL:


resourcesmonitor

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:8Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcNewFetcher

func NewFetcher(fStatter) (*fetcher,error)

funcNewResourcesMonitor

func NewResourcesMonitor(loggerslog.Logger, clockquartz.Clock, config *proto.GetResourcesMonitoringConfigurationResponse, resourcesFetcherFetcher, datapointsPusher datapointsPusher) *monitor

Types

typeDatapoint

type Datapoint struct {CollectedAttime.TimeMemory      *MemoryDatapointVolumes     []*VolumeDatapoint}

typeFetcher

type Fetcher interface {FetchMemory() (totalint64, usedint64, errerror)FetchVolume(volumestring) (totalint64, usedint64, errerror)}

typeMemoryDatapoint

type MemoryDatapoint struct {Totalint64Usedint64}

typeQueue

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

Queue represents a FIFO queue with a fixed size

funcNewQueue

func NewQueue(sizeint) *Queue

newQueue creates a new Queue with the given size

func (*Queue)IsFull

func (q *Queue) IsFull()bool

func (*Queue)Items

func (q *Queue) Items() []Datapoint

func (*Queue)Push

func (q *Queue) Push(itemDatapoint)

Push adds a new item to the queue

typeStatteradded inv2.21.0

type Statter interface {IsContainerized() (bool,error)ContainerMemory(pclistat.Prefix) (*clistat.Result,error)HostMemory(pclistat.Prefix) (*clistat.Result,error)Disk(pclistat.Prefix, pathstring) (*clistat.Result,error)}

typeVolumeDatapoint

type VolumeDatapoint struct {PathstringTotalint64Usedint64}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp