Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_CONFIG_KEY = "guardrail_settings" MEMORY_THRESHOLD_DEFAULT = 90 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MemoryThreshold float64 `mapstructure:"memory_threshold" validate:"gte=1,lte=100"`
}
func ConfigFromViper ¶
type CriticalityLevel ¶
type CriticalityLevel string
const ( // Critical is a guardrail that is critical to the operation of the database // and should be reverted immediately. This also means that the DBtune server // will revert to the baseline configuration to stabilise the system before recommending // a new configuration. Critical CriticalityLevel = "critical" // NonCritical is a guardrail that is not critical // to the operation of the database, but a new configuration // is recommended to be applied. NonCritical CriticalityLevel = "non-critical" )
type Signal ¶
type Signal struct {
Level CriticalityLevel `json:"level"`
Type Type `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.