Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisKey ¶
type RedisKey string
const ( // PromGroupDeleteKey 删除规则, 用于记录删除的ID列表数据 PromGroupDeleteKey RedisKey = "prom:group:delete" // PromGroupChangeKey 更新规则, 用于记录更新的ID列表数据 PromGroupChangeKey RedisKey = "prom:group:change" // UserRoleKey 用户角色缓存 UserRoleKey RedisKey = "user:role" // AuthCaptchaKey 验证码缓存 AuthCaptchaKey RedisKey = "auth:captcha" // UserLogoutKey 用户退出缓存 UserLogoutKey RedisKey = "user:logout" // UserRolesKey 用户角色缓存 UserRolesKey RedisKey = "user:roles:rbac" // APICacheKey 接口缓存 APICacheKey RedisKey = "api:cache" // RoleDisabledKey 角色禁用列表缓存 RoleDisabledKey RedisKey = "role:disabled:hash" // AlarmRealtimeCacheById 告警实时数据缓存 AlarmRealtimeCacheById RedisKey = "alarm:realtime:id" // AlarmTmpCache 告警临时缓存 AlarmTmpCache RedisKey = "alarm:realtime:tmp" // NotifyAlarmCache 告警缓存 NotifyAlarmCache RedisKey = "alarm:realtime:notify" // AgentNames agent名称缓存 AgentNames RedisKey = "agent:names" // StrategyGroups 策略组缓存 StrategyGroups RedisKey = "strategy:groups" // ChangeGroupIds 更新规则, 用于记录更新的ID列表数据 ChangeGroupIds RedisKey = "prom:group:change:ids" // AlarmNotifyCache 告警通知缓存 AlarmNotifyCache RedisKey = "alarm:notify:alert" )
type TopicType ¶
type TopicType string
const ( AlertHookTopic TopicType = "alert-hook" AgentOnlineTopic TopicType = "online" ServerOnlineTopic TopicType = "server-online" AgentOfflineTopic TopicType = "offline" ServerOfflineTopic TopicType = "server-offline" StrategyGroupAllTopic TopicType = "strategy-group-all" RemoveGroupTopic TopicType = "rm-group-id" )
func (TopicType) IsRegistered ¶
IsRegistered 判断TopicType是否已注册
func (TopicType) IsStrategyGroupAllTopic ¶ added in v0.0.16
IsStrategyGroupAllTopic 判断TopicType是否为策略组所有节点数据推送主题
Click to show internal directories.
Click to hide internal directories.