Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRecommendation ¶ added in v0.2.0
type ContainerRecommendation struct {
ContainerName string `yaml:"containerName,omitempty"`
Target ResourceList `yaml:"target,omitempty"`
}
type Context ¶
type Context struct {
ConfigProperties map[string]string
Predictors map[predictionapi.AlgorithmType]prediction.Interface
DataSource providers.Interface
Recommendation *analysisapi.Recommendation
Scale *autoscalingapiv1.Scale
RestMapping *meta.RESTMapping
Deployment *appsv1.Deployment
StatefulSet *appsv1.StatefulSet
Pods []corev1.Pod
ReadyPodNumber int
}
Context includes all resource used in recommendation progress
type EffectiveHorizontalPodAutoscalerRecommendation ¶ added in v0.2.0
type EffectiveHorizontalPodAutoscalerRecommendation struct {
MinReplicas *int32 `yaml:"minReplicas,omitempty"`
MaxReplicas *int32 `yaml:"maxReplicas,omitempty"`
Metrics []autoscalingv2.MetricSpec `yaml:"metrics,omitempty"`
Prediction *autoscalingapi.Prediction `yaml:"prediction,omitempty"`
}
type ProposedRecommendation ¶
type ProposedRecommendation struct {
// EffectiveHPA is the proposed recommendation for type HPA
EffectiveHPA *EffectiveHorizontalPodAutoscalerRecommendation
// ResourceRequest is the proposed recommendation for type Resource
ResourceRequest *ResourceRequestRecommendation
}
ProposedRecommendation is the result for one recommendation
type ResourceList ¶ added in v0.2.0
type ResourceList map[corev1.ResourceName]string
type ResourceRequestRecommendation ¶ added in v0.2.0
type ResourceRequestRecommendation struct {
Containers []ContainerRecommendation `yaml:"containers,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.