Documentation
¶
Index ¶
- func AddTpl(grpId, endpointId int, operateUser string) (error, m.TplTable)
- func AddUser(user m.UserTable, creator string) error
- func Aggregate(data [][]float64, num int, method string) [][]float64
- func CheckAggregate(start int64, end int64, endpoint string, step, num int) int
- func CloseAlarm(id int) error
- func CloseOpenAlarm(id int) error
- func Default() *xorm.Engine
- func DeleteCustomDashboard(query *m.CustomDashboardTable) error
- func DeleteEndpoint(guid string) error
- func DeleteStrategyByGrp(grpId int, tplId int) error
- func DeleteTpl(tplId int) error
- func GetAlarms(query m.AlarmTable) (error, m.AlarmProblemList)
- func GetBusinessList(endpointId int) (err error, pathList []*m.BusinessMonitorTable)
- func GetButton(bGroup int) (error, []*m.ButtonModel)
- func GetCharts(cGroup int, chartId int, panelId int) (error, []*m.ChartTable)
- func GetCustomDashboard(query *m.CustomDashboardTable) error
- func GetDashboard(dType string) (error, m.DashboardTable)
- func GetEndpoint(query *m.EndpointTable) error
- func GetEndpointMetric(id int) (err error, result []*m.OptionModel)
- func GetEndpointsByGrp(grpId int) (error, []*m.EndpointTable)
- func GetEndpointsByIp(ipList []string, exportType string) (err error, endpoints []m.EndpointTable)
- func GetGrpStrategy(idList []string) (err error, result []*m.GrpStrategyExportObj)
- func GetLogMonitorByEndpoint(endpointId int) (err error, result []*m.LogMonitorTable)
- func GetLogMonitorTable(id, strategyId, tplId int, path string) (err error, result []*m.LogMonitorTable)
- func GetMailByStrategy(strategyId int) []string
- func GetMainCustomDashboard() (error, m.CustomDashboardTable)
- func GetOpenAlarm() []*m.AlarmProblemQuery
- func GetPanels(pGroup int, endpoint string) (error, []*m.PanelTable)
- func GetProcessList(endpointId int) (err error, processList []*m.ProcessMonitorTable)
- func GetPromMetric(endpoint []string, metric string) (error, string)
- func GetPromMetricTable(metricType string) (err error, result []*m.PromMetricTable)
- func GetSearch(id int) (error, m.SearchModel)
- func GetSingleGrp(id int, name string) (error, m.GrpTable)
- func GetStrategy(param m.StrategyTable) (error, m.StrategyTable)
- func GetStrategyTable(id int) (error, m.StrategyTable)
- func GetStrategys(query *m.TplQuery, ignoreLogMonitor bool) error
- func GetTags(endpoint string, key string, metric string) (error, []*m.OptionModel)
- func GetTpl(tplId, grpId, endpointId int) (error, m.TplTable)
- func GetUser(username string) (err error, user m.UserQuery)
- func InTransaction(callback dbTransactionFunc) error
- func InitDbConn()
- func ListAlarmEndpoints(query *m.AlarmEndpointQuery) error
- func ListCustomDashboard() (err error, result []*m.CustomDashboardTable)
- func ListGrp(query *m.GrpQuery) error
- func ListLogMonitor(query *m.TplQuery) error
- func ListRole(search string, page, size int) (err error, data m.TableData)
- func ListUser(search string, role, page, size int) (err error, data m.TableData)
- func RegisterEndpointMetric(endpointId int, endpointMetrics []string) error
- func SaveCustomDashboard(query *m.CustomDashboardTable) error
- func SaveOpenAlarm(param m.OpenAlarmRequest) error
- func SearchGrp(search string) (error, []*m.OptionModel)
- func SearchHost(endpoint string) (error, []*m.OptionModel)
- func SearchUserRole(search string, searchType string) (err error, options []*m.OptionModel)
- func SetGrpStrategy(paramObj []*m.GrpStrategyExportObj) error
- func SetMainCustomDashboard(id int) error
- func Transaction(actions []*Action) error
- func UpdateAlarms(alarms []*m.AlarmTable) error
- func UpdateBusiness(param m.BusinessUpdateDto) error
- func UpdateEndpoint(endpoint *m.EndpointTable) error
- func UpdateEndpointAlarmFlag(isStop bool, exportType, instance, ip, port string) error
- func UpdateGrp(obj *m.UpdateGrp) error
- func UpdateGrpEndpoint(param m.GrpEndpointParamNew) (error, bool)
- func UpdateLogMonitor(obj *m.UpdateLogMonitor) error
- func UpdateProcess(param m.ProcessUpdateDto) error
- func UpdatePromMetric(data []m.PromMetricTable) error
- func UpdateRecursivePanel(param m.PanelRecursiveTable) error
- func UpdateRole(param m.UpdateRoleDto) error
- func UpdateRoleUser(param m.UpdateRoleUserDto) error
- func UpdateStrategy(obj *m.UpdateStrategy) error
- func UpdateTpl(tplId int, operateUser string) error
- func UpdateTplAction(tplId int, user, role []int) error
- func UpdateUser(user m.UserTable) error
- type Action
- type DBObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAggregate ¶
func CloseAlarm ¶
func CloseOpenAlarm ¶ added in v1.0.1
func DeleteCustomDashboard ¶
func DeleteCustomDashboard(query *m.CustomDashboardTable) error
func DeleteEndpoint ¶
func DeleteStrategyByGrp ¶ added in v1.0.1
func GetAlarms ¶
func GetAlarms(query m.AlarmTable) (error, m.AlarmProblemList)
func GetBusinessList ¶ added in v1.0.1
func GetBusinessList(endpointId int) (err error, pathList []*m.BusinessMonitorTable)
func GetCustomDashboard ¶
func GetCustomDashboard(query *m.CustomDashboardTable) error
func GetDashboard ¶
func GetDashboard(dType string) (error, m.DashboardTable)
func GetEndpoint ¶
func GetEndpoint(query *m.EndpointTable) error
func GetEndpointMetric ¶
func GetEndpointMetric(id int) (err error, result []*m.OptionModel)
func GetEndpointsByGrp ¶
func GetEndpointsByGrp(grpId int) (error, []*m.EndpointTable)
func GetEndpointsByIp ¶
func GetEndpointsByIp(ipList []string, exportType string) (err error, endpoints []m.EndpointTable)
func GetGrpStrategy ¶ added in v1.0.1
func GetGrpStrategy(idList []string) (err error, result []*m.GrpStrategyExportObj)
func GetLogMonitorByEndpoint ¶
func GetLogMonitorByEndpoint(endpointId int) (err error, result []*m.LogMonitorTable)
func GetLogMonitorTable ¶
func GetLogMonitorTable(id, strategyId, tplId int, path string) (err error, result []*m.LogMonitorTable)
func GetMailByStrategy ¶ added in v1.1.0
func GetMainCustomDashboard ¶
func GetMainCustomDashboard() (error, m.CustomDashboardTable)
func GetOpenAlarm ¶ added in v1.0.1
func GetOpenAlarm() []*m.AlarmProblemQuery
func GetProcessList ¶ added in v1.0.1
func GetProcessList(endpointId int) (err error, processList []*m.ProcessMonitorTable)
func GetPromMetricTable ¶
func GetPromMetricTable(metricType string) (err error, result []*m.PromMetricTable)
func GetStrategy ¶
func GetStrategy(param m.StrategyTable) (error, m.StrategyTable)
func GetStrategyTable ¶
func GetStrategyTable(id int) (error, m.StrategyTable)
func InTransaction ¶
func InTransaction(callback dbTransactionFunc) error
func InitDbConn ¶
func InitDbConn()
func ListAlarmEndpoints ¶
func ListAlarmEndpoints(query *m.AlarmEndpointQuery) error
func ListCustomDashboard ¶
func ListCustomDashboard() (err error, result []*m.CustomDashboardTable)
func ListLogMonitor ¶
func RegisterEndpointMetric ¶
func SaveCustomDashboard ¶
func SaveCustomDashboard(query *m.CustomDashboardTable) error
func SaveOpenAlarm ¶ added in v1.0.1
func SaveOpenAlarm(param m.OpenAlarmRequest) error
func SearchHost ¶
func SearchHost(endpoint string) (error, []*m.OptionModel)
func SearchUserRole ¶ added in v1.1.0
func SearchUserRole(search string, searchType string) (err error, options []*m.OptionModel)
func SetGrpStrategy ¶ added in v1.0.1
func SetGrpStrategy(paramObj []*m.GrpStrategyExportObj) error
func SetMainCustomDashboard ¶
func Transaction ¶
func UpdateAlarms ¶
func UpdateAlarms(alarms []*m.AlarmTable) error
func UpdateBusiness ¶ added in v1.0.1
func UpdateBusiness(param m.BusinessUpdateDto) error
func UpdateEndpoint ¶
func UpdateEndpoint(endpoint *m.EndpointTable) error
func UpdateEndpointAlarmFlag ¶ added in v1.0.1
func UpdateGrpEndpoint ¶
func UpdateGrpEndpoint(param m.GrpEndpointParamNew) (error, bool)
func UpdateLogMonitor ¶
func UpdateLogMonitor(obj *m.UpdateLogMonitor) error
func UpdateProcess ¶ added in v1.0.1
func UpdateProcess(param m.ProcessUpdateDto) error
func UpdatePromMetric ¶
func UpdatePromMetric(data []m.PromMetricTable) error
func UpdateRecursivePanel ¶ added in v1.1.0
func UpdateRecursivePanel(param m.PanelRecursiveTable) error
func UpdateRole ¶ added in v1.1.0
func UpdateRole(param m.UpdateRoleDto) error
func UpdateRoleUser ¶ added in v1.1.0
func UpdateRoleUser(param m.UpdateRoleUserDto) error
func UpdateStrategy ¶
func UpdateStrategy(obj *m.UpdateStrategy) error
func UpdateTplAction ¶ added in v1.1.0
func UpdateUser ¶ added in v1.0.1
Types ¶
Click to show internal directories.
Click to hide internal directories.