Documentation ¶
Overview ¶
Package podmonitor prometheus pods monitor
Index ¶
- Constants
- func BatchDeletePodMonitor(c *rest.Context) (interface{}, error)
- func CreatePodMonitor(c *rest.Context) (interface{}, error)
- func DeletePodMonitor(c *rest.Context) (interface{}, error)
- func GetPodMonitor(c *rest.Context) (interface{}, error)
- func ListPodMonitors(c *rest.Context) (interface{}, error)
- func UpdatePodMonitor(c *rest.Context) (interface{}, error)
- type BatchDeletePodMonitorReq
- type CreatePodMonitorReq
- type PodMonitor
- type UpdatePodMonitorReq
Constants ¶
const SampleLimitMax = 100000
SampleLimitMax xxx
const SampleLimitMin = 1
SampleLimitMin xxx
Variables ¶
This section is empty.
Functions ¶
func BatchDeletePodMonitor ¶
BatchDeletePodMonitor 批量删除PodMonitor @Summary 批量删除PodMonitor @Tags Metrics @Success 200 {string} string @Router /pod_monitors/batchdelete [post]
func CreatePodMonitor ¶
CreatePodMonitor 创建PodMonitor @Summary PodMonitor列表数据 @Tags Metrics @Success 200 {string} string @Router /namespaces/:namespace/pod_monitors [post]
func DeletePodMonitor ¶
DeletePodMonitor 删除PodMonitor @Summary 删除PodMonitor @Tags Metrics @Success 200 {string} string @Router /namespaces/:namespace/pod_monitors/:name [delete]
func GetPodMonitor ¶
GetPodMonitor 获取单个PodMonitor @Summary 删除PodMonitor @Tags Metrics @Success 200 {string} string @Router /namespaces/:namespace/pod_monitors/:name [get]
func ListPodMonitors ¶
ListPodMonitors 获取PodMonitor列表数据 @Summary PodMonitor列表数据 @Tags Metrics @Success 200 {string} string @Router /namespaces/:namespace/pod_monitors [get]
func UpdatePodMonitor ¶
UpdatePodMonitor 创建PodMonitor @Summary PodMonitor列表数据 @Tags Metrics @Success 200 {string} string @Router /namespaces/:namespace/pod_monitors/:name [put]
Types ¶
type BatchDeletePodMonitorReq ¶
type BatchDeletePodMonitorReq struct {
PodMonitors []PodMonitor `json:"pod_monitors"`
}
BatchDeletePodMonitorReq batch delete pod monitor req
type CreatePodMonitorReq ¶
type CreatePodMonitorReq struct { ServiceName string `json:"service_name"` Path string `json:"path"` Selector map[string]string `json:"selector"` Interval string `json:"interval"` Port string `json:"port"` SampleLimit int `json:"sample_limit"` Namespace string `json:"namespace"` Name string `json:"name"` Params map[string]string `json:"params"` }
CreatePodMonitorReq create pod monitor req
func (CreatePodMonitorReq) Validate ¶
func (r CreatePodMonitorReq) Validate() bool
Validate validate
type PodMonitor ¶
PodMonitor pod monitor
type UpdatePodMonitorReq ¶
type UpdatePodMonitorReq struct { ServiceName string `json:"service_name"` Path string `json:"path"` Selector map[string]string `json:"selector"` Interval string `json:"interval"` Port string `json:"port"` SampleLimit int `json:"sample_limit"` Namespace string `json:"namespace"` Name string `json:"name"` Params map[string]string `json:"params"` }
UpdatePodMonitorReq update pod monitor req