Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextState ¶
func NextState(c Config, oldState database.WorkspaceAgentMonitorState, states []State) database.WorkspaceAgentMonitorState
Types ¶
type AlertConfig ¶
type Config ¶
type Config struct { // How many datapoints should the agent send NumDatapoints int32 // How long between each datapoint should // collection occur. CollectionInterval time.Duration Alert AlertConfig }
type State ¶
type State int
func CalculateMemoryUsageStates ¶
func CalculateMemoryUsageStates( monitor database.WorkspaceAgentMemoryResourceMonitor, datapoints []*proto.PushResourcesMonitoringUsageRequest_Datapoint_MemoryUsage, ) []State
func CalculateVolumeUsageStates ¶
func CalculateVolumeUsageStates( monitor database.WorkspaceAgentVolumeResourceMonitor, datapoints []*proto.PushResourcesMonitoringUsageRequest_Datapoint_VolumeUsage, ) []State
Click to show internal directories.
Click to hide internal directories.