Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScalerOptions ¶
type DLXOptions ¶
type MultiTargetStrategy ¶
type MultiTargetStrategy string
const ( MultiTargetStrategyRandom MultiTargetStrategy = "random" MultiTargetStrategyPrimary MultiTargetStrategy = "primary" MultiTargetStrategyCanary MultiTargetStrategy = "canary" )
type Resource ¶
type Resource struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` ScaleResources []ScaleResource `json:"scale_resources,omitempty"` LastScaleEvent *ScaleEvent `json:"last_scale_event,omitempty"` LastScaleEventTime *time.Time `json:"last_scale_event_time,omitempty"` }
type ResourceScaler ¶
type ResourceScalerConfig ¶
type ResourceScalerConfig struct { KubeconfigPath string AutoScalerOptions AutoScalerOptions DLXOptions DLXOptions }
type ScaleEvent ¶
type ScaleEvent string
const ( ResourceUpdatedScaleEvent ScaleEvent = "resourceUpdated" ScaleFromZeroStartedScaleEvent ScaleEvent = "scaleFromZeroStarted" ScaleFromZeroCompletedScaleEvent ScaleEvent = "scaleFromZeroCompleted" ScaleToZeroStartedScaleEvent ScaleEvent = "scaleToZeroStarted" ScaleToZeroCompletedScaleEvent ScaleEvent = "scaleToZeroCompleted" )
func ParseScaleEvent ¶
func ParseScaleEvent(scaleEventStr string) (ScaleEvent, error)
type ScaleResource ¶
type ScaleResource struct { MetricName string `json:"metric_name,omitempty"` WindowSize Duration `json:"windows_size,omitempty"` Threshold int `json:"threshold,omitempty"` }
func (ScaleResource) GetKubernetesMetricName ¶
func (sr ScaleResource) GetKubernetesMetricName() string
func (ScaleResource) String ¶
func (sr ScaleResource) String() string
Click to show internal directories.
Click to hide internal directories.