Documentation ¶
Index ¶
- func AcceptAlertMsg(c *gin.Context)
- func AddDbMonitor(c *gin.Context)
- func AddEndpointBusinessConfig(c *gin.Context)
- func AddGrp(c *gin.Context)
- func AddLogStrategy(c *gin.Context)
- func AddStrategy(c *gin.Context)
- func CheckDbMonitor(c *gin.Context)
- func CloseALarm(c *gin.Context)
- func DeleteDbMonitor(c *gin.Context)
- func DeleteGrp(c *gin.Context)
- func DeleteLogPath(c *gin.Context)
- func DeleteLogStrategy(c *gin.Context)
- func DeleteStrategy(c *gin.Context)
- func EditGrpEndpoint(c *gin.Context)
- func EditLogPath(c *gin.Context)
- func EditLogStrategy(c *gin.Context)
- func EditStrategy(c *gin.Context)
- func ExportGrpStrategy(c *gin.Context)
- func GetAlertWindowList(c *gin.Context)
- func GetCustomDashboardAlarm(c *gin.Context)
- func GetDbMonitorList(c *gin.Context)
- func GetEndpointBusinessConfig(c *gin.Context)
- func GetEndpointProcessConfig(c *gin.Context)
- func GetEntityAlarm(c *gin.Context)
- func GetGrpRole(c *gin.Context)
- func GetHistoryAlarm(c *gin.Context)
- func GetOrgConnect(c *gin.Context)
- func GetOrgPanelEndpoint(c *gin.Context)
- func GetOrgPanelEventList(c *gin.Context)
- func GetOrgPanelRole(c *gin.Context)
- func GetOrganizaionList(c *gin.Context)
- func GetProblemAlarm(c *gin.Context)
- func ImportGrpStrategy(c *gin.Context)
- func IsPluginMode(c *gin.Context)
- func ListEndpoint(c *gin.Context)
- func ListGrp(c *gin.Context)
- func ListLogTpl(c *gin.Context)
- func ListTpl(c *gin.Context)
- func OpenAlarmApi(c *gin.Context)
- func QueryEntityAlarm(c *gin.Context)
- func QueryHistoryAlarm(c *gin.Context)
- func QueryProblemAlarm(c *gin.Context)
- func SaveConfigFile(tplId int, fromCluster bool) error
- func SearchObjOption(c *gin.Context)
- func SearchSysPanelData(c *gin.Context)
- func SearchUserRole(c *gin.Context)
- func SyncConfigHandle(w http.ResponseWriter, r *http.Request)
- func SyncConsulHandle(w http.ResponseWriter, r *http.Request)
- func SyncInitConfigFile()
- func SyncInitSdFile()
- func SyncSdFileHandle(w http.ResponseWriter, r *http.Request)
- func TestNotifyAlarm(c *gin.Context)
- func UpdateAlertWindow(c *gin.Context)
- func UpdateDbMonitor(c *gin.Context)
- func UpdateDbMonitorSysName(c *gin.Context)
- func UpdateEndpointBusinessConfig(c *gin.Context)
- func UpdateEndpointProcessConfig(c *gin.Context)
- func UpdateEndpointProcessConfigNew(c *gin.Context)
- func UpdateGrp(c *gin.Context)
- func UpdateGrpRole(c *gin.Context)
- func UpdateNodeExporterBusinessConfig(endpointId int) error
- func UpdateOrgConnect(c *gin.Context)
- func UpdateOrgPanel(c *gin.Context)
- func UpdateOrgPanelCallback(c *gin.Context)
- func UpdateOrgPanelEndpoint(c *gin.Context)
- func UpdateOrgPanelRole(c *gin.Context)
- func UpdateTplAction(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptAlertMsg ¶
func AddDbMonitor ¶ added in v1.5.4
func AddEndpointBusinessConfig ¶ added in v1.8.0
func AddLogStrategy ¶
@Summary 日志告警配置接口 : 新增 @Produce json @Param grp_id query int false "组Id,和对象id二选一" @Param endpoint_id query int false "对象Id,和组id二选一" @Param path query string true "表单输入的日志路径" @Param strategy query string true "对象数组类型[{'keyword':'关键字','cond':'条件,如 >1','last':'时间范围,如 5min','priority':'优先级,如 high'}]" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/log/monitor/add [post]
func AddStrategy ¶
func CheckDbMonitor ¶ added in v1.5.4
func CloseALarm ¶
@Summary 手动关闭告警接口 @Produce json @Param id query int true "告警id" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/problem/close [get]
func DeleteDbMonitor ¶ added in v1.5.4
func DeleteLogPath ¶
@Summary 日志告警配置接口 : 删除 @Produce json @Param id query int true "strategy_id" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/log/monitor/delete_path [get]
func DeleteLogStrategy ¶
@Summary 日志告警配置接口 : 删除 @Produce json @Param id query int true "id" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/log/monitor/delete [get]
func DeleteStrategy ¶
func EditGrpEndpoint ¶
func EditLogPath ¶
@Summary 日志告警配置接口 : 修改日志路径 @Produce json @Param id query int true "列表获取中的id" @Param tpl_id query int true "列表获取中的tpl_id" @Param path query string true "新的日志路径" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/log/monitor/update_path [post]
func EditLogStrategy ¶
@Summary 日志告警配置接口 : 修改 @Produce json @Param tpl_id query int true "列表获取中的tpl_id" @Param path query string true "表单输入的日志路径" @Param strategy query string true "对象数组类型[{'id':int类型, 'strategy_id':int类型,'keyword':'关键字','cond':'条件,如 >1','last':'时间范围,如 5min','priority':'优先级,如 high'}]" @Success 200 {string} json "{"message": "Success"}" @Router /api/v1/alarm/log/monitor/update [post]
func EditStrategy ¶
func ExportGrpStrategy ¶ added in v1.0.1
func GetAlertWindowList ¶ added in v1.8.0
func GetCustomDashboardAlarm ¶ added in v1.6.0
func GetDbMonitorList ¶ added in v1.5.4
func GetEndpointBusinessConfig ¶ added in v1.0.1
func GetEndpointProcessConfig ¶ added in v1.0.1
func GetEntityAlarm ¶ added in v1.3.0
func GetGrpRole ¶ added in v1.3.0
func GetHistoryAlarm ¶
func GetOrgConnect ¶ added in v1.5.0
func GetOrgPanelEndpoint ¶ added in v1.3.0
func GetOrgPanelEventList ¶ added in v1.3.0
func GetOrgPanelRole ¶ added in v1.3.0
func GetOrganizaionList ¶ added in v1.3.0
func GetProblemAlarm ¶
func ImportGrpStrategy ¶ added in v1.0.1
func IsPluginMode ¶ added in v1.3.0
func ListEndpoint ¶
func ListLogTpl ¶
@Summary 日志告警配置接口 : 获取列表 @Description 获取配置好的对象或组的日志告警列表 @Produce json @Param type query string true "类型,区分是单个对象还是组,枚举endpoint、grp" @Param id query int true "对象或组的id" @Router /api/v1/alarm/log/monitor/list [get]
func OpenAlarmApi ¶ added in v1.0.1
func QueryEntityAlarm ¶ added in v1.3.0
func QueryHistoryAlarm ¶ added in v1.6.0
func QueryProblemAlarm ¶ added in v1.6.0
func SaveConfigFile ¶
func SearchObjOption ¶
func SearchSysPanelData ¶ added in v1.5.4
func SearchUserRole ¶ added in v1.1.0
func SyncConfigHandle ¶ added in v1.4.0
func SyncConfigHandle(w http.ResponseWriter, r *http.Request)
func SyncConsulHandle ¶ added in v1.4.0
func SyncConsulHandle(w http.ResponseWriter, r *http.Request)
func SyncInitConfigFile ¶ added in v1.4.0
func SyncInitConfigFile()
func SyncInitSdFile ¶ added in v1.5.0
func SyncInitSdFile()
func SyncSdFileHandle ¶ added in v1.9.0
func SyncSdFileHandle(w http.ResponseWriter, r *http.Request)
func TestNotifyAlarm ¶ added in v1.3.0
func UpdateAlertWindow ¶ added in v1.8.0
func UpdateDbMonitor ¶ added in v1.5.4
func UpdateDbMonitorSysName ¶ added in v1.5.4
func UpdateEndpointBusinessConfig ¶ added in v1.0.1
func UpdateEndpointProcessConfig ¶ added in v1.0.1
func UpdateEndpointProcessConfigNew ¶ added in v1.5.4
func UpdateGrpRole ¶ added in v1.3.0
func UpdateNodeExporterBusinessConfig ¶ added in v1.5.1
func UpdateOrgConnect ¶ added in v1.5.0
func UpdateOrgPanel ¶ added in v1.3.0
func UpdateOrgPanelCallback ¶ added in v1.3.0
func UpdateOrgPanelEndpoint ¶ added in v1.3.0
func UpdateOrgPanelRole ¶ added in v1.3.0
func UpdateTplAction ¶ added in v1.1.0
Types ¶
This section is empty.