Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AskRequest ¶
type AskRequest struct {
Task string `json:"task"`
Complexity int `json:"complexity,omitempty"`
Resources *ResourceEstimate `json:"resources,omitempty"`
}
type AskResponse ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(aggregator *monitor.Aggregator, thresholds config.ThresholdsConfig) *Manager
func (*Manager) Ask ¶
func (m *Manager) Ask(req AskRequest, withReasons bool) AskResponse
func (*Manager) UpdateThresholds ¶
func (m *Manager) UpdateThresholds(thresholds config.ThresholdsConfig)
type ResourceEstimate ¶
type ThresholdChecker ¶
type ThresholdChecker struct {
// contains filtered or unexported fields
}
func NewThresholdChecker ¶
func NewThresholdChecker(thresholds config.ThresholdsConfig) *ThresholdChecker
func (*ThresholdChecker) Check ¶
func (c *ThresholdChecker) Check(state *monitor.SystemState) []Reason
func (*ThresholdChecker) GetThresholds ¶
func (c *ThresholdChecker) GetThresholds() config.ThresholdsConfig
GetThresholds returns a copy of the current thresholds.
func (*ThresholdChecker) UpdateThresholds ¶
func (c *ThresholdChecker) UpdateThresholds(thresholds config.ThresholdsConfig)
Click to show internal directories.
Click to hide internal directories.