Documentation ¶
Index ¶
- Variables
- func AlertNids(c *gin.Context)
- func Config(r *gin.Engine)
- func GetChileNids(nids []string) ([]string, error)
- func GetIndexByClude(c *gin.Context)
- func GetIndexByFullTags(c *gin.Context)
- func GetIndexes() []string
- func GetMetrics(c *gin.Context)
- func GetPatAndTimeFormat(tf string) (string, string)
- func GetTagPairs(c *gin.Context)
- func Node(id int64) *models.Node
- func PushData(c *gin.Context)
- func QueryData(c *gin.Context)
- func QueryDataForUI(c *gin.Context)
- func Role(id int64) *models.Role
- func Shutdown()
- func Start()
- func TaskMeta(id int64) *models.TaskMeta
- func TaskTpl(id int64) *models.TaskTpl
- func Team(id int64) *models.Team
- func TicketSender(id int64, action, reason, reply string, result int, info interface{}) error
- func User(id int64) *models.User
- type AlertUpgrade
- type CalcStrasDelRev
- type ChartPutForm
- type ChartWeight
- type CollectRecv
- type CollectsDelRev
- type IPForm
- type IndexTagkvResp
- type MaskconfForm
- type MetricList
- type MetricsResp
- type MibsDelRev
- type NidMetricRecv
- type NidsRecv
- type RegExpCheckDto
- type ScreenForm
- type ScreenPutForm
- type ScreenSubclassForm
- type StrasDelRev
- type TagkvsResp
- type TaskStderrData
- type TaskStdoutData
Constants ¶
This section is empty.
Variables ¶
View Source
var MIBS string
View Source
var RegExpExcludePatition string = "```EXCLUDE```"
Functions ¶
func GetChileNids ¶
func GetIndexByClude ¶
func GetIndexByFullTags ¶
func GetIndexes ¶
func GetIndexes() []string
func GetMetrics ¶
func GetPatAndTimeFormat ¶
根据配置的时间格式,获取对应的正则匹配pattern和time包用的时间格式
func GetTagPairs ¶
func QueryDataForUI ¶
func TicketSender ¶
Types ¶
type AlertUpgrade ¶
type CalcStrasDelRev ¶
type CalcStrasDelRev struct {
Ids []int64 `json:"ids"`
}
type ChartPutForm ¶
type ChartWeight ¶
type CollectRecv ¶
type CollectRecv struct { Type string `json:"type"` Data json.RawMessage `json:"data"` }
type CollectsDelRev ¶
type IndexTagkvResp ¶
type IndexTagkvResp struct { Nids []string `json:"nids"` Metric string `json:"metric"` Tagkv []*dataobj.TagPair `json:"tagkv"` }
func Tagkv ¶
func Tagkv(request NidMetricRecv) ([]IndexTagkvResp, error)
type MaskconfForm ¶
type MaskconfForm struct { Nid int64 `json:"nid"` Category int `json:"category"` //1 设备相关 2 设备无关 Endpoints []string `json:"endpoints"` CurNidPaths map[string]string `json:"cur_nid_paths"` Metric string `json:"metric"` Tags string `json:"tags"` Cause string `json:"cause"` Btime int64 `json:"btime"` Etime int64 `json:"etime"` }
func (MaskconfForm) Validate ¶
func (f MaskconfForm) Validate()
type MetricList ¶
type MetricList struct {
Metrics []string `json:"metrics"`
}
func Metrics ¶
func Metrics(request NidsRecv) (MetricList, error)
type MetricsResp ¶
type MetricsResp struct { Data MetricList `json:"dat"` Err string `json:"err"` }
type MibsDelRev ¶
type MibsDelRev struct {
Ids []int64 `json:"ids"`
}
type NidMetricRecv ¶
type RegExpCheckDto ¶
type ScreenForm ¶
type ScreenForm struct {
Name string `json:"name"`
}
type ScreenPutForm ¶
type ScreenSubclassForm ¶
func (ScreenSubclassForm) Validate ¶
func (f ScreenSubclassForm) Validate()
type StrasDelRev ¶
type StrasDelRev struct {
Ids []int64 `json:"ids"`
}
type TagkvsResp ¶
type TagkvsResp struct { Data []IndexTagkvResp `json:"dat"` Err string `json:"err"` }
type TaskStderrData ¶
type TaskStdoutData ¶
Source Files ¶
- http_funcs.go
- http_middleware.go
- http_server.go
- router.go
- router_aggr.go
- router_auth.go
- router_chart.go
- router_collect.go
- router_configs.go
- router_container.go
- router_event.go
- router_hbs.go
- router_health.go
- router_home.go
- router_host.go
- router_host_field.go
- router_index.go
- router_judge.go
- router_log.go
- router_maskconf.go
- router_mib.go
- router_nethw.go
- router_node.go
- router_node_cate.go
- router_node_cate_field.go
- router_node_field_value.go
- router_node_role.go
- router_node_trash.go
- router_ops.go
- router_perm.go
- router_push.go
- router_query.go
- router_resource.go
- router_role.go
- router_screen.go
- router_self.go
- router_sender.go
- router_sso.go
- router_stats.go
- router_stra.go
- router_task.go
- router_task_tpl.go
- router_team.go
- router_tmpchar.go
- router_tpl.go
- router_tree.go
- router_user.go
Click to show internal directories.
Click to hide internal directories.