Documentation ¶
Index ¶
- Constants
- type ContainerRepository
- func (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) error
- func (containerRepository *ContainerRepository) IsTag(column string) bool
- func (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName, ...) ([]*datahub_v1alpha1.PodRecommendation, error)
Constants ¶
View Source
const ( // Container is container measurement Container influxdb.Measurement = "container" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRepository ¶
type ContainerRepository struct {
// contains filtered or unexported fields
}
ContainerRepository is used to operate node measurement of recommendation database
func NewContainerRepository ¶
func NewContainerRepository(influxDBCfg *influxdb.Config) *ContainerRepository
NewContainerRepository creates the ContainerRepository instance
func (*ContainerRepository) CreateContainerRecommendations ¶
func (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) error
CreateContainerRecommendations add containers information container measurement
func (*ContainerRepository) IsTag ¶
func (containerRepository *ContainerRepository) IsTag(column string) bool
IsTag checks the column is tag or not
func (*ContainerRepository) ListContainerRecommendations ¶
func (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName, queryCondition *datahub_v1alpha1.QueryCondition, kind datahub_v1alpha1.Kind) ([]*datahub_v1alpha1.PodRecommendation, error)
ListContainerRecommendations list container recommendations
Click to show internal directories.
Click to hide internal directories.