Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMonitorPrometheusGet = errors.New("Prometheus获取数据出错: ") ErrMonitorNodesList = errors.New("节点列表信息获取错误") )
Functions ¶
Types ¶
type Service ¶
type Service interface { // 获取全局网络请求 QueryNetwork(ctx context.Context) (data []map[string]interface{}, err error) // 全局OPS Ops(ctx context.Context) (rs interface{}, err error) // 全局内存有CPU消耗 Metrics(ctx context.Context) (map[string]interface{}, error) }
func NewService ¶
func NewService(logger log.Logger, config *config.Config, k8sClient kubernetes.K8sClient, store repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.