Documentation
¶
Index ¶
- type KuberController
- func (i *KuberController) CheckComponent(ComponentMeta map[string]string) error
- func (i *KuberController) RunTask(taskMeta map[string]string, componentMeta map[string]string) error
- func (i *KuberController) ValideComponent(ComponentMeta map[string]string) error
- func (i *KuberController) ValideTask(TaskMeta map[string]string) error
- type PromQLMonitorController
- func (p *PromQLMonitorController) CheckMonitoring(config map[string]string) error
- func (p *PromQLMonitorController) RunCheck(monitorMeta map[string]string) error
- func (p *PromQLMonitorController) ValidateCheck(monitorMeta map[string]string) error
- func (p *PromQLMonitorController) ValidateMonitoring(config map[string]string) error
- type PrometheusQueryData
- type PrometheusQueryResponse
- type PrometheusQueryResult
- type SSHController
- func (s *SSHController) CheckComponent(componentMeta map[string]string) error
- func (s *SSHController) RunTask(taskMeta map[string]string, componentMeta map[string]string) error
- func (s *SSHController) ValideComponent(componentMeta map[string]string) error
- func (s *SSHController) ValideTask(taskMeta map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KuberController ¶
func (*KuberController) CheckComponent ¶
func (i *KuberController) CheckComponent(ComponentMeta map[string]string) error
func (*KuberController) ValideComponent ¶
func (i *KuberController) ValideComponent(ComponentMeta map[string]string) error
func (*KuberController) ValideTask ¶
func (i *KuberController) ValideTask(TaskMeta map[string]string) error
type PromQLMonitorController ¶
type PromQLMonitorController struct {
// contains filtered or unexported fields
}
func NewPromQLMonitorController ¶
func NewPromQLMonitorController(logger *logrus.Logger, apiURL string) *PromQLMonitorController
func (*PromQLMonitorController) CheckMonitoring ¶
func (p *PromQLMonitorController) CheckMonitoring(config map[string]string) error
CheckMonitoring — по сути alias для RunCheck, или можешь добавить дополнительную логику
func (*PromQLMonitorController) RunCheck ¶
func (p *PromQLMonitorController) RunCheck(monitorMeta map[string]string) error
RunCheck выполняет запрос к Prometheus API и анализирует результат
func (*PromQLMonitorController) ValidateCheck ¶
func (p *PromQLMonitorController) ValidateCheck(monitorMeta map[string]string) error
ValidateCheck проверяет корректность параметров запроса PromQL
func (*PromQLMonitorController) ValidateMonitoring ¶
func (p *PromQLMonitorController) ValidateMonitoring(config map[string]string) error
ValidateMonitoring — здесь можно проверить конфиг мониторинга, например, таймауты, повторные попытки и т.д. Для упрощения — просто возвращаем nil
type PrometheusQueryData ¶
type PrometheusQueryData struct {
ResultType string `json:"resultType"`
Result []PrometheusQueryResult `json:"result"`
}
type PrometheusQueryResponse ¶
type PrometheusQueryResponse struct {
Status string `json:"status"`
Data PrometheusQueryData `json:"data"`
}
type PrometheusQueryResult ¶
type SSHController ¶
func (*SSHController) CheckComponent ¶
func (s *SSHController) CheckComponent(componentMeta map[string]string) error
func (*SSHController) ValideComponent ¶
func (s *SSHController) ValideComponent(componentMeta map[string]string) error
func (*SSHController) ValideTask ¶
func (s *SSHController) ValideTask(taskMeta map[string]string) error
Click to show internal directories.
Click to hide internal directories.