SYMBOL INDEX (4509 symbols across 384 files) FILE: alert/aconf/conf.go type Alert (line 7) | type Alert struct method PreCheck (line 61) | func (a *Alert) PreCheck(configDir string) { type SMTPConfig (line 14) | type SMTPConfig struct type HeartbeatConfig (line 24) | type HeartbeatConfig struct type Alerting (line 31) | type Alerting struct type GlobalWebhook (line 39) | type GlobalWebhook struct type CallPlugin (line 49) | type CallPlugin struct type RedisPub (line 55) | type RedisPub struct FILE: alert/alert.go function Initialize (line 34) | func Initialize(configDir string, cryptoKey string) (func(), error) { function Start (line 99) | func Start(alertc aconf.Alert, pushgwc pconf.Pushgw, syncStats *memsto.S... FILE: alert/astats/stats.go constant namespace (line 8) | namespace = "n9e" constant subsystem (line 9) | subsystem = "alert" type Stats (line 12) | type Stats struct function NewSyncStats (line 32) | func NewSyncStats() *Stats { FILE: alert/common/key.go function RuleKey (line 11) | func RuleKey(datasourceId, id int64) string { function MatchTags (line 15) | func MatchTags(eventTagsMap map[string]string, itags []models.TagFilter)... function MatchGroupsName (line 41) | func MatchGroupsName(groupName string, groupFilter []models.TagFilter) b... function matchTag (line 50) | func matchTag(value string, filter models.TagFilter) bool { function targetGroupMatch (line 72) | func targetGroupMatch(value string, filter models.TagFilter) bool { FILE: alert/dispatch/consume.go type Consumer (line 25) | type Consumer struct method LoopConsume (line 62) | func (e *Consumer) LoopConsume() { method consume (line 75) | func (e *Consumer) consume(events []interface{}, sema *semaphore.Semap... method consumeOne (line 90) | func (e *Consumer) consumeOne(event *models.AlertCurEvent) { method persist (line 123) | func (e *Consumer) persist(event *models.AlertCurEvent) { method queryRecoveryVal (line 146) | func (e *Consumer) queryRecoveryVal(event *models.AlertCurEvent) { type EventMuteHookFunc (line 34) | type EventMuteHookFunc function InitRegisterQueryFunc (line 38) | func InitRegisterQueryFunc(promClients *prom.PromClientMap) { function NewConsumer (line 51) | func NewConsumer(alerting aconf.Alerting, ctx *ctx.Context, dispatch *Di... FILE: alert/dispatch/dispatch.go function init (line 34) | func init() { type Dispatch (line 39) | type Dispatch struct method ReloadTpls (line 106) | func (e *Dispatch) ReloadTpls() error { method reloadTpls (line 121) | func (e *Dispatch) reloadTpls() error { method HandleEventWithNotifyRule (line 167) | func (e *Dispatch) HandleEventWithNotifyRule(eventOrigin *models.Alert... method HandleEventNotify (line 608) | func (e *Dispatch) HandleEventNotify(event *models.AlertCurEvent, isSu... method handleSubs (line 658) | func (e *Dispatch) handleSubs(event *models.AlertCurEvent) { method handleSub (line 676) | func (e *Dispatch) handleSub(sub *models.AlertSubscribe, event models.... method Send (line 725) | func (e *Dispatch) Send(rule *models.AlertRule, event *models.AlertCur... method SendCallbacks (line 771) | func (e *Dispatch) SendCallbacks(rule *models.AlertRule, notifyTarget ... method HandleIbex (line 824) | func (e *Dispatch) HandleIbex(rule *models.AlertRule, event *models.Al... method genNoticeBytes (line 858) | func (e *Dispatch) genNoticeBytes(event *models.AlertCurEvent) []byte { function NewDispatch (line 68) | func NewDispatch(alertRuleCache *memsto.AlertRuleCacheType, userCache *m... function shouldSkipNotify (line 224) | func shouldSkipNotify(ctx *ctx.Context, event *models.AlertCurEvent, not... function HandleEventPipeline (line 237) | func HandleEventPipeline(pipelineConfigs []models.PipelineConfig, eventO... function PipelineApplicable (line 285) | func PipelineApplicable(pipeline *models.EventPipeline, event *models.Al... function NotifyRuleMatchCheck (line 331) | func NotifyRuleMatchCheck(notifyConfig *models.NotifyConfig, event *mode... function GetNotifyConfigParams (line 444) | func GetNotifyConfigParams(notifyConfig *models.NotifyConfig, contactKey... function SendNotifyRuleMessage (line 523) | func SendNotifyRuleMessage(ctx *ctx.Context, userCache *memsto.UserCache... function NeedBatchContacts (line 600) | func NeedBatchContacts(requestConfig *models.HTTPRequestConfig) bool { type Notice (line 853) | type Notice struct function fillUsers (line 884) | func fillUsers(ce *models.AlertCurEvent, uc *memsto.UserCacheType, ugc *... function mapKeys (line 907) | func mapKeys(m map[int64]struct{}) []int64 { function getSendTarget (line 915) | func getSendTarget(customParams map[string]string, sendtos []string) str... FILE: alert/dispatch/log.go function LogEvent (line 9) | func LogEvent(event *models.AlertCurEvent, location string, err ...error) { FILE: alert/dispatch/notify_channel.go type NotifyChannels (line 4) | type NotifyChannels method OrMerge (line 14) | func (nc NotifyChannels) OrMerge(other NotifyChannels) { method AndMerge (line 18) | func (nc NotifyChannels) AndMerge(other NotifyChannels) { method merge (line 22) | func (nc NotifyChannels) merge(other NotifyChannels, f func(bool, bool... function NewNotifyChannels (line 6) | func NewNotifyChannels(channels []string) NotifyChannels { FILE: alert/dispatch/notify_target.go type NotifyTarget (line 10) | type NotifyTarget struct method OrMerge (line 25) | func (s *NotifyTarget) OrMerge(other *NotifyTarget) { method AndMerge (line 35) | func (s *NotifyTarget) AndMerge(other *NotifyTarget) { method merge (line 39) | func (s *NotifyTarget) merge(other *NotifyTarget, f func(NotifyChannel... method ToChannelUserMap (line 59) | func (s *NotifyTarget) ToChannelUserMap() map[string][]int64 { method ToCallbackList (line 71) | func (s *NotifyTarget) ToCallbackList() []string { method ToWebhookMap (line 79) | func (s *NotifyTarget) ToWebhookMap() map[string]*models.Webhook { method ToUidList (line 83) | func (s *NotifyTarget) ToUidList() []int64 { function NewNotifyTarget (line 16) | func NewNotifyTarget() *NotifyTarget { type NotifyTargetDispatch (line 95) | type NotifyTargetDispatch function NotifyGroupDispatch (line 98) | func NotifyGroupDispatch(rule *models.AlertRule, event *models.AlertCurE... function GlobalWebhookDispatch (line 118) | func GlobalWebhookDispatch(rule *models.AlertRule, event *models.AlertCu... function EventCallbacksDispatch (line 130) | func EventCallbacksDispatch(rule *models.AlertRule, event *models.AlertC... FILE: alert/eval/alert_rule.go type Scheduler (line 20) | type Scheduler struct method LoopSyncRules (line 72) | func (s *Scheduler) LoopSyncRules(ctx context.Context) { method syncAlertRules (line 85) | func (s *Scheduler) syncAlertRules() { function NewScheduler (line 43) | func NewScheduler(aconf aconf.Alert, externalProcessors *process.Externa... FILE: alert/eval/eval.go type AlertRuleWorker (line 38) | type AlertRuleWorker struct method Key (line 128) | func (arw *AlertRuleWorker) Key() string { method Hash (line 132) | func (arw *AlertRuleWorker) Hash() string { method Prepare (line 141) | func (arw *AlertRuleWorker) Prepare() { method Start (line 145) | func (arw *AlertRuleWorker) Start() { method Eval (line 149) | func (arw *AlertRuleWorker) Eval() { method Stop (line 238) | func (arw *AlertRuleWorker) Stop() { method GetPromAnomalyPoint (line 246) | func (arw *AlertRuleWorker) GetPromAnomalyPoint(ruleConfig string) ([]... method VarFillingAfterQuery (line 391) | func (arw *AlertRuleWorker) VarFillingAfterQuery(query models.PromQuer... method getParamPermutation (line 569) | func (arw *AlertRuleWorker) getParamPermutation(paramVal map[string]mo... method getHostIdents (line 685) | func (arw *AlertRuleWorker) getHostIdents(paramQuery models.ParamQuery... method getDeviceIdents (line 727) | func (arw *AlertRuleWorker) getDeviceIdents(paramQuery models.ParamQue... method GetHostAnomalyPoint (line 760) | func (arw *AlertRuleWorker) GetHostAnomalyPoint(ruleConfig string) ([]... method VarFillingBeforeQuery (line 1233) | func (arw *AlertRuleWorker) VarFillingBeforeQuery(query models.PromQue... method GetAnomalyPoint (line 1438) | func (arw *AlertRuleWorker) GetAnomalyPoint(rule *models.AlertRule, ds... constant GET_RULE_CONFIG (line 60) | GET_RULE_CONFIG = "get_rule_config" constant GET_Processor (line 61) | GET_Processor = "get_Processor" constant CHECK_QUERY (line 62) | CHECK_QUERY = "check_query_config" constant GET_CLIENT (line 63) | GET_CLIENT = "get_client" constant QUERY_DATA (line 64) | QUERY_DATA = "query_data" constant EXEC_TEMPLATE (line 65) | EXEC_TEMPLATE = "exec_template" constant JoinMark (line 69) | JoinMark = "@@" type JoinType (line 72) | type JoinType constant Left (line 75) | Left JoinType = "left" constant Right (line 76) | Right JoinType = "right" constant Inner (line 77) | Inner JoinType = "inner" function NewAlertRuleWorker (line 80) | func NewAlertRuleWorker(rule *models.AlertRule, datasourceId int64, Proc... function getPromEvalInterval (line 121) | func getPromEvalInterval(schedule cron.Schedule) int { type sample (line 378) | type sample struct function getSamples (line 493) | func getSamples(value model.Value) []sample { function removeVal (line 529) | func removeVal(promql string) string { function getParamKeyAllLabel (line 633) | func getParamKeyAllLabel(paramKey string, promql string, client promsdk.... function mapPermutation (line 732) | func mapPermutation(paramKeys []string, paraMap map[string][]string) [][... function combine (line 740) | func combine(paramKeys []string, paraMap map[string][]string, index int,... function flatten (line 942) | func flatten(rehashed map[uint64][][]uint64) map[uint64][]uint64 { function onJoin (line 964) | func onJoin(reHashTagIndex1 map[uint64][][]uint64, reHashTagIndex2 map[u... function rehashSet (line 999) | func rehashSet(seriesTagIndex1 map[uint64][]uint64, seriesStore map[uint... function cartesianJoin (line 1020) | func cartesianJoin(seriesTagIndex1 map[uint64][]uint64, seriesTagIndex2 ... function noneJoin (line 1033) | func noneJoin(seriesTagIndex1 map[uint64][]uint64, seriesTagIndex2 map[u... function originalJoin (line 1048) | func originalJoin(seriesTagIndex1 map[uint64][]uint64, seriesTagIndex2 m... function exclude (line 1070) | func exclude(reHashTagIndex1 map[uint64][][]uint64, reHashTagIndex2 map[... function MakeSeriesMap (line 1080) | func MakeSeriesMap(series []models.DataResp, seriesTagIndex map[uint64][... function mergeNewArray (line 1094) | func mergeNewArray(arg ...[]uint64) []uint64 { function ProcessJoins (line 1102) | func ProcessJoins(ruleId int64, trigger models.Trigger, seriesTagIndexes... function GetQueryRef (line 1165) | func GetQueryRef(query interface{}) (string, error) { function getString (line 1200) | func getString(query interface{}) string { function GetQueryRefAndUnit (line 1211) | func GetQueryRefAndUnit(query interface{}) (string, string, error) { function hasLabelLossAggregator (line 1348) | func hasLabelLossAggregator(query models.PromQuery) bool { function notExactMatch (line 1368) | func notExactMatch(query models.PromQuery) bool { function ExtractVarMapping (line 1379) | func ExtractVarMapping(promql string) map[string]string { function fillVar (line 1432) | func fillVar(curRealQuery string, paramKey string, val string) string { function ExecuteQueryTemplate (line 1723) | func ExecuteQueryTemplate(cate string, query interface{}, data interface... function ExecuteSqlTemplate (line 1754) | func ExecuteSqlTemplate(query string, data interface{}) (string, error) { FILE: alert/eval/eval_test.go function Test_originalJoin (line 37) | func Test_originalJoin(t *testing.T) { function Test_exclude (line 75) | func Test_exclude(t *testing.T) { function Test_noneJoin (line 117) | func Test_noneJoin(t *testing.T) { function Test_cartesianJoin (line 150) | func Test_cartesianJoin(t *testing.T) { function Test_onJoin (line 183) | func Test_onJoin(t *testing.T) { function allValueDeepEqual (line 252) | func allValueDeepEqual(got, want map[uint64][]uint64) bool { function allValueDeepEqualOmitOrder (line 274) | func allValueDeepEqualOmitOrder(got, want []string) bool { function Test_removeVal (line 288) | func Test_removeVal(t *testing.T) { function TestExtractVarMapping (line 392) | func TestExtractVarMapping(t *testing.T) { FILE: alert/mute/mute.go function IsMuted (line 17) | func IsMuted(rule *models.AlertRule, event *models.AlertCurEvent, target... function TimeSpanMuteStrategy (line 45) | func TimeSpanMuteStrategy(rule *models.AlertRule, event *models.AlertCur... function IdentNotExistsMuteStrategy (line 116) | func IdentNotExistsMuteStrategy(rule *models.AlertRule, event *models.Al... function BgNotMatchMuteStrategy (line 132) | func BgNotMatchMuteStrategy(rule *models.AlertRule, event *models.AlertC... function EventMuteStrategy (line 153) | func EventMuteStrategy(event *models.AlertCurEvent, alertMuteCache *mems... function MatchMute (line 170) | func MatchMute(event *models.AlertCurEvent, mute *models.AlertMute, cloc... FILE: alert/naming/hashring.go constant NodeReplicas (line 11) | NodeReplicas = 500 type DatasourceHashRingType (line 13) | type DatasourceHashRingType struct method GetNode (line 42) | func (chr *DatasourceHashRingType) GetNode(datasourceId string, pk str... method IsHit (line 53) | func (chr *DatasourceHashRingType) IsHit(datasourceId string, pk strin... method Set (line 64) | func (chr *DatasourceHashRingType) Set(datasourceId string, r *consist... method Del (line 70) | func (chr *DatasourceHashRingType) Del(datasourceId string) { method Clear (line 76) | func (chr *DatasourceHashRingType) Clear(engineName string) { function NewConsistentHashRing (line 22) | func NewConsistentHashRing(replicas int32, nodes []string) *consistent.C... function RebuildConsistentHashRing (line 31) | func RebuildConsistentHashRing(datasourceId string, nodes []string) { FILE: alert/naming/heartbeat.go type Naming (line 18) | type Naming struct method Heartbeats (line 38) | func (n *Naming) Heartbeats() error { method loopDeleteInactiveInstances (line 51) | func (n *Naming) loopDeleteInactiveInstances() { method DeleteInactiveInstances (line 63) | func (n *Naming) DeleteInactiveInstances() { method loopHeartbeat (line 70) | func (n *Naming) loopHeartbeat() { method heartbeat (line 80) | func (n *Naming) heartbeat() error { method ActiveServers (line 170) | func (n *Naming) ActiveServers(datasourceId int64) ([]string, error) { method ActiveServersByEngineName (line 184) | func (n *Naming) ActiveServersByEngineName() ([]string, error) { function NewNaming (line 24) | func NewNaming(ctx *ctx.Context, heartbeat aconf.HeartbeatConfig, alertS... FILE: alert/naming/leader.go method IamLeader (line 9) | func (n *Naming) IamLeader() bool { FILE: alert/pipeline/engine/engine.go type WorkflowEngine (line 13) | type WorkflowEngine struct method Execute (line 21) | func (e *WorkflowEngine) Execute(pipeline *models.EventPipeline, event... method initWorkflowContext (line 62) | func (e *WorkflowEngine) initWorkflowContext(pipeline *models.EventPip... method executeDAG (line 95) | func (e *WorkflowEngine) executeDAG(nodeMap map[string]*models.Workflo... method executeNode (line 217) | func (e *WorkflowEngine) executeNode(node *models.WorkflowNode, wfCtx ... method shouldFollowBranch (line 329) | func (e *WorkflowEngine) shouldFollowBranch(nodeID string, outputIndex... method saveExecutionRecord (line 345) | func (e *WorkflowEngine) saveExecutionRecord(pipeline *models.EventPip... function NewWorkflowEngine (line 17) | func NewWorkflowEngine(c *ctx.Context) *WorkflowEngine { FILE: alert/pipeline/pipeline.go function Init (line 12) | func Init() { FILE: alert/pipeline/processor/aisummary/ai_summary.go constant HTTP_STATUS_SUCCESS_MAX (line 24) | HTTP_STATUS_SUCCESS_MAX = 299 type AISummaryConfig (line 28) | type AISummaryConfig struct method Init (line 53) | func (c *AISummaryConfig) Init(settings interface{}) (models.Processor... method Process (line 58) | func (c *AISummaryConfig) Process(ctx *ctx.Context, wfCtx *models.Work... method initHTTPClient (line 94) | func (c *AISummaryConfig) initHTTPClient() error { method prepareEventInfo (line 114) | func (c *AISummaryConfig) prepareEventInfo(wfCtx *models.WorkflowConte... method generateAISummary (line 135) | func (c *AISummaryConfig) generateAISummary(eventInfo string) (string,... type Message (line 36) | type Message struct type ChatCompletionResponse (line 41) | type ChatCompletionResponse struct function init (line 49) | func init() { function convertCustomParam (line 208) | func convertCustomParam(value interface{}) (interface{}, error) { FILE: alert/pipeline/processor/aisummary/ai_summary_test.go function TestAISummaryConfig_Process (line 12) | func TestAISummaryConfig_Process(t *testing.T) { function TestConvertCustomParam (line 77) | func TestConvertCustomParam(t *testing.T) { FILE: alert/pipeline/processor/callback/callback.go type HTTPConfig (line 20) | type HTTPConfig struct type CallbackConfig (line 34) | type CallbackConfig struct method Init (line 42) | func (c *CallbackConfig) Init(settings interface{}) (models.Processor,... method Process (line 47) | func (c *CallbackConfig) Process(ctx *ctx.Context, wfCtx *models.Workf... function init (line 38) | func init() { FILE: alert/pipeline/processor/common/common.go function InitProcessor (line 10) | func InitProcessor[T any](settings interface{}) (T, error) { FILE: alert/pipeline/processor/eventdrop/event_drop.go type EventDropConfig (line 16) | type EventDropConfig struct method Init (line 24) | func (c *EventDropConfig) Init(settings interface{}) (models.Processor... method Process (line 29) | func (c *EventDropConfig) Process(ctx *ctx.Context, wfCtx *models.Work... function init (line 20) | func init() { FILE: alert/pipeline/processor/eventupdate/event_update.go type EventUpdateConfig (line 21) | type EventUpdateConfig struct method Init (line 29) | func (c *EventUpdateConfig) Init(settings interface{}) (models.Process... method Process (line 34) | func (c *EventUpdateConfig) Process(ctx *ctx.Context, wfCtx *models.Wo... function init (line 25) | func init() { FILE: alert/pipeline/processor/logic/if.go constant ConditionModeExpression (line 18) | ConditionModeExpression = "expression" constant ConditionModeTags (line 19) | ConditionModeTags = "tags" type IfConfig (line 23) | type IfConfig struct method Init (line 45) | func (c *IfConfig) Init(settings interface{}) (models.Processor, error) { method Process (line 87) | func (c *IfConfig) Process(ctx *ctx.Context, wfCtx *models.WorkflowCon... method ProcessWithBranch (line 100) | func (c *IfConfig) ProcessWithBranch(ctx *ctx.Context, wfCtx *models.W... method evaluateCondition (line 126) | func (c *IfConfig) evaluateCondition(wfCtx *models.WorkflowContext) (b... method evaluateExpressionCondition (line 141) | func (c *IfConfig) evaluateExpressionCondition(wfCtx *models.WorkflowC... method evaluateTagsCondition (line 171) | func (c *IfConfig) evaluateTagsCondition(event *models.AlertCurEvent) ... function init (line 41) | func init() { FILE: alert/pipeline/processor/logic/switch.go type SwitchCase (line 17) | type SwitchCase struct type SwitchConfig (line 38) | type SwitchConfig struct method Init (line 50) | func (c *SwitchConfig) Init(settings interface{}) (models.Processor, e... method Process (line 93) | func (c *SwitchConfig) Process(ctx *ctx.Context, wfCtx *models.Workflo... method ProcessWithBranch (line 111) | func (c *SwitchConfig) ProcessWithBranch(ctx *ctx.Context, wfCtx *mode... method evaluateCases (line 140) | func (c *SwitchConfig) evaluateCases(wfCtx *models.WorkflowContext) (i... method evaluateCaseCondition (line 154) | func (c *SwitchConfig) evaluateCaseCondition(caseItem *SwitchCase, wfC... method evaluateExpressionCondition (line 169) | func (c *SwitchConfig) evaluateExpressionCondition(condition string, w... method evaluateTagsCondition (line 198) | func (c *SwitchConfig) evaluateTagsCondition(caseItem *SwitchCase, eve... function init (line 46) | func init() { FILE: alert/pipeline/processor/relabel/relabel.go constant REPLACE_DOT (line 19) | REPLACE_DOT = "___" type RelabelConfig (line 23) | type RelabelConfig struct method Init (line 40) | func (r *RelabelConfig) Init(settings interface{}) (models.Processor, ... method Process (line 45) | func (r *RelabelConfig) Process(ctx *ctx.Context, wfCtx *models.Workfl... function init (line 36) | func init() { function EventRelabel (line 70) | func EventRelabel(event *models.AlertCurEvent, relabelConfigs []*pconf.R... FILE: alert/pipeline/processor/utils/utils.go function TplRender (line 13) | func TplRender(wfCtx *models.WorkflowContext, content string) (string, e... FILE: alert/process/alert_cur_event.go type AlertCurEventMap (line 9) | type AlertCurEventMap struct method SetAll (line 25) | func (a *AlertCurEventMap) SetAll(data map[string]*models.AlertCurEven... method Set (line 31) | func (a *AlertCurEventMap) Set(key string, value *models.AlertCurEvent) { method Get (line 37) | func (a *AlertCurEventMap) Get(key string) (*models.AlertCurEvent, boo... method UpdateLastEvalTime (line 44) | func (a *AlertCurEventMap) UpdateLastEvalTime(key string, lastEvalTime... method Delete (line 54) | func (a *AlertCurEventMap) Delete(key string) { method Keys (line 60) | func (a *AlertCurEventMap) Keys() []string { method GetAll (line 70) | func (a *AlertCurEventMap) GetAll() map[string]*models.AlertCurEvent { function NewAlertCurEventMap (line 14) | func NewAlertCurEventMap(data map[string]*models.AlertCurEvent) *AlertCu... FILE: alert/process/process.go type ExternalProcessorsType (line 29) | type ExternalProcessorsType struct method GetExternalAlertRule (line 42) | func (e *ExternalProcessorsType) GetExternalAlertRule(datasourceId, id... function NewExternalProcessors (line 36) | func NewExternalProcessors() *ExternalProcessorsType { type HandleEventFunc (line 49) | type HandleEventFunc type Processor (line 51) | type Processor struct method Key (line 82) | func (p *Processor) Key() string { method DatasourceId (line 86) | func (p *Processor) DatasourceId() int64 { method Hash (line 90) | func (p *Processor) Hash() string { method Handle (line 127) | func (p *Processor) Handle(anomalyPoints []models.AnomalyPoint, from s... method BuildEvent (line 200) | func (p *Processor) BuildEvent(anomalyPoint models.AnomalyPoint, from ... method HandleRecover (line 298) | func (p *Processor) HandleRecover(alertingKeys map[string]struct{}, no... method HandleRecoverEvent (line 318) | func (p *Processor) HandleRecoverEvent(hashArr []string, now int64, in... method RecoverSingle (line 358) | func (p *Processor) RecoverSingle(byRecover bool, hash string, now int... method handleEvent (line 413) | func (p *Processor) handleEvent(events []*models.AlertCurEvent) { method inhibitEvent (line 460) | func (p *Processor) inhibitEvent(events []*models.AlertCurEvent, highS... method fireEvent (line 470) | func (p *Processor) fireEvent(event *models.AlertCurEvent) { method pushEventToQueue (line 522) | func (p *Processor) pushEventToQueue(e *models.AlertCurEvent) { method RecoverAlertCurEventFromDb (line 535) | func (p *Processor) RecoverAlertCurEventFromDb() { method fillTags (line 582) | func (p *Processor) fillTags(anomalyPoint models.AnomalyPoint) { method mayHandleIdent (line 628) | func (p *Processor) mayHandleIdent(event *models.AlertCurEvent) { method mayHandleGroup (line 644) | func (p *Processor) mayHandleGroup() { method DeleteProcessEvent (line 652) | func (p *Processor) DeleteProcessEvent(hash string) { function NewProcessor (line 99) | func NewProcessor(engineName string, rule *models.AlertRule, datasourceI... function Relabel (line 282) | func Relabel(rule *models.AlertRule, event *models.AlertCurEvent) { function labelMapToArr (line 658) | func labelMapToArr(m map[string]string) []string { function Hash (line 672) | func Hash(ruleId, datasourceId int64, vector models.AnomalyPoint) string { function TagHash (line 676) | func TagHash(vector models.AnomalyPoint) string { FILE: alert/queue/queue.go function ReportQueueSize (line 12) | func ReportQueueSize(stats *astats.Stats) { FILE: alert/record/prom_rule.go type RecordRuleContext (line 19) | type RecordRuleContext struct method Key (line 54) | func (rrc *RecordRuleContext) Key() string { method Hash (line 58) | func (rrc *RecordRuleContext) Hash() string { method Prepare (line 69) | func (rrc *RecordRuleContext) Prepare() {} method Start (line 71) | func (rrc *RecordRuleContext) Start() { method Eval (line 76) | func (rrc *RecordRuleContext) Eval() { method Stop (line 113) | func (rrc *RecordRuleContext) Stop() { function NewRecordRuleContext (line 29) | func NewRecordRuleContext(rule *models.RecordingRule, datasourceId int64... FILE: alert/record/sample.go constant LabelName (line 15) | LabelName = "__name__" function ConvertToTimeSeries (line 18) | func ConvertToTimeSeries(value model.Value, rule *models.RecordingRule) ... function labelsToLabelsProto (line 92) | func labelsToLabelsProto(labels model.Metric, rule *models.RecordingRule... FILE: alert/record/scheduler.go type Scheduler (line 17) | type Scheduler struct method LoopSyncRules (line 52) | func (s *Scheduler) LoopSyncRules(ctx context.Context) { method syncRecordRules (line 65) | func (s *Scheduler) syncRecordRules() { function NewScheduler (line 33) | func NewScheduler(aconf aconf.Alert, rrc *memsto.RecordingRuleCacheType,... FILE: alert/router/router.go type Router (line 16) | type Router struct method Config (line 43) | func (rt *Router) Config(r *gin.Engine) { function New (line 28) | func New(httpConfig httpx.Config, alert aconf.Alert, amc *memsto.AlertMu... function Render (line 60) | func Render(c *gin.Context, data, msg interface{}) { function Dangerous (line 71) | func Dangerous(c *gin.Context, v interface{}, code ...int) { FILE: alert/router/router_alert_eval_detail.go method alertEvalDetail (line 12) | func (rt *Router) alertEvalDetail(c *gin.Context) { FILE: alert/router/router_event.go method pushEventToQueue (line 22) | func (rt *Router) pushEventToQueue(c *gin.Context) { method eventPersist (line 85) | func (rt *Router) eventPersist(c *gin.Context) { type eventForm (line 93) | type eventForm struct method makeEvent (line 101) | func (rt *Router) makeEvent(c *gin.Context) { function forwardEvent (line 140) | func forwardEvent(event *eventForm, instance string) error { FILE: alert/router/router_event_detail.go method eventDetail (line 12) | func (rt *Router) eventDetail(c *gin.Context) { FILE: alert/router/router_trace_logs.go method traceLogs (line 12) | func (rt *Router) traceLogs(c *gin.Context) { FILE: alert/sender/callback.go type CallBacker (line 21) | type CallBacker interface type CallBackContext (line 26) | type CallBackContext struct type DefaultCallBacker (line 36) | type DefaultCallBacker struct method CallBack (line 111) | func (c *DefaultCallBacker) CallBack(ctx CallBackContext) { function BuildCallBackContext (line 39) | func BuildCallBackContext(ctx *ctx.Context, callBackURL string, rule *mo... function ExtractAtsParams (line 55) | func ExtractAtsParams(rawURL string) []string { function NewCallBacker (line 73) | func NewCallBacker( function doSendAndRecord (line 136) | func doSendAndRecord(ctx *ctx.Context, url, token string, body interface... function NotifyRecord (line 142) | func NotifyRecord(ctx *ctx.Context, evts []*models.AlertCurEvent, notify... function doSend (line 167) | func doSend(url string, body interface{}, channel string, stats *astats.... type TaskCreateReply (line 183) | type TaskCreateReply struct function PushCallbackEvent (line 188) | func PushCallbackEvent(ctx *ctx.Context, webhook *models.Webhook, event ... FILE: alert/sender/dingtalk.go type dingtalkMarkdown (line 10) | type dingtalkMarkdown struct type dingtalkAt (line 15) | type dingtalkAt struct type dingtalk (line 20) | type dingtalk struct type DingtalkSender (line 30) | type DingtalkSender struct method Send (line 34) | func (ds *DingtalkSender) Send(ctx MessageContext) { method CallBack (line 74) | func (ds *DingtalkSender) CallBack(ctx CallBackContext) { method extract (line 104) | func (ds *DingtalkSender) extract(users []*models.User) ([]string, []s... FILE: alert/sender/email.go type EmailSender (line 21) | type EmailSender struct method Send (line 32) | func (es *EmailSender) Send(ctx MessageContext) { method WriteEmail (line 82) | func (es *EmailSender) WriteEmail(subject, content string, tos []strin... type EmailContext (line 27) | type EmailContext struct function extract (line 50) | func extract(users []*models.User) []string { function SendEmail (line 60) | func SendEmail(subject, content string, tos []string, stmp aconf.SMTPCon... function dialSmtp (line 93) | func dialSmtp(d *gomail.Dialer) gomail.SendCloser { function RestartEmailSender (line 113) | func RestartEmailSender(ctx *ctx.Context, smtp aconf.SMTPConfig) { function InitEmailSender (line 121) | func InitEmailSender(ctx *ctx.Context, ncc *memsto.NotifyConfigCacheType) { function updateSmtp (line 128) | func updateSmtp(ctx *ctx.Context, ncc *memsto.NotifyConfigCacheType) { function startEmailSender (line 141) | func startEmailSender(ctx *ctx.Context, smtp aconf.SMTPConfig) { FILE: alert/sender/feishu.go type feishuContent (line 11) | type feishuContent struct type feishuAt (line 15) | type feishuAt struct type feishu (line 20) | type feishu struct type FeishuSender (line 30) | type FeishuSender struct method CallBack (line 34) | func (fs *FeishuSender) CallBack(ctx CallBackContext) { method Send (line 60) | func (fs *FeishuSender) Send(ctx MessageContext) { method extract (line 83) | func (fs *FeishuSender) extract(users []*models.User) ([]string, []str... FILE: alert/sender/feishucard.go type Conf (line 12) | type Conf struct type Te (line 17) | type Te struct type Element (line 22) | type Element struct type Titles (line 29) | type Titles struct type Headers (line 34) | type Headers struct type Cards (line 39) | type Cards struct type feishuCard (line 45) | type feishuCard struct type FeishuCardSender (line 50) | type FeishuCardSender struct method CallBack (line 95) | func (fs *FeishuCardSender) CallBack(ctx CallBackContext) { method Send (line 141) | func (fs *FeishuCardSender) Send(ctx MessageContext) { method extract (line 166) | func (fs *FeishuCardSender) extract(users []*models.User) ([]string, [... constant Recovered (line 55) | Recovered = "recovered" constant Triggered (line 56) | Triggered = "triggered" function createFeishuCardBody (line 59) | func createFeishuCardBody() feishuCard { FILE: alert/sender/global_webhook.go constant staticGlobalWebhookChannel (line 24) | staticGlobalWebhookChannel = "static_global_webhook" function InitStaticGlobalWebhook (line 26) | func InitStaticGlobalWebhook(conf aconf.GlobalWebhook) { function SendStaticGlobalWebhook (line 60) | func SendStaticGlobalWebhook(ctx *ctx.Context, event *models.AlertCurEve... FILE: alert/sender/global_webhook_test.go type roundTripperFunc (line 17) | type roundTripperFunc method RoundTrip (line 19) | func (f roundTripperFunc) RoundTrip(req *http.Request) (*http.Response... function newStaticWebhookTestStats (line 23) | func newStaticWebhookTestStats() *astats.Stats { function TestSendStaticGlobalWebhookRecordsNewRequestFailure (line 36) | func TestSendStaticGlobalWebhookRecordsNewRequestFailure(t *testing.T) { function TestSendStaticGlobalWebhookRecordsTransportFailure (line 74) | func TestSendStaticGlobalWebhookRecordsTransportFailure(t *testing.T) { FILE: alert/sender/ibex.go type IbexCallBacker (line 25) | type IbexCallBacker struct method CallBack (line 31) | func (c *IbexCallBacker) CallBack(ctx CallBackContext) { method handleIbex (line 47) | func (c *IbexCallBacker) handleIbex(ctx *ctx.Context, url string, even... function CallIbex (line 92) | func CallIbex(ctx *ctx.Context, id int64, host string, function CanDoIbex (line 197) | func CanDoIbex(username string, tpl *models.TaskTpl, host string, target... function TaskAdd (line 211) | func TaskAdd(f models.TaskForm, authUser string, isCenter bool) (int64, ... function cleanHosts (line 282) | func cleanHosts(formHosts []string) []string { FILE: alert/sender/lark.go type LarkSender (line 14) | type LarkSender struct method CallBack (line 18) | func (lk *LarkSender) CallBack(ctx CallBackContext) { method Send (line 33) | func (lk *LarkSender) Send(ctx MessageContext) { method extract (line 50) | func (lk *LarkSender) extract(users []*models.User) ([]string, []strin... FILE: alert/sender/larkcard.go type LarkCardSender (line 12) | type LarkCardSender struct method CallBack (line 16) | func (fs *LarkCardSender) CallBack(ctx CallBackContext) { method Send (line 62) | func (fs *LarkCardSender) Send(ctx MessageContext) { method extract (line 87) | func (fs *LarkCardSender) extract(users []*models.User) ([]string, []s... FILE: alert/sender/mm.go type MatterMostMessage (line 15) | type MatterMostMessage struct type mm (line 21) | type mm struct type MmSender (line 27) | type MmSender struct method Send (line 31) | func (ms *MmSender) Send(ctx MessageContext) { method CallBack (line 49) | func (ms *MmSender) CallBack(ctx CallBackContext) { method extract (line 62) | func (ms *MmSender) extract(users []*models.User) []string { function SendMM (line 72) | func SendMM(ctx *ctx.Context, message MatterMostMessage, events []*model... function MapStrToStr (line 111) | func MapStrToStr(arr []string, fn func(s string) string) []string { FILE: alert/sender/notify_record_queue.go function ReportNotifyRecordQueueSize (line 18) | func ReportNotifyRecordQueueSize(stats *astats.Stats) { function PushNotifyRecords (line 27) | func PushNotifyRecords(records []*models.NotificationRecord) error { type NotifyRecordConsumer (line 38) | type NotifyRecordConsumer struct method LoopConsume (line 49) | func (c *NotifyRecordConsumer) LoopConsume() { method consume (line 71) | func (c *NotifyRecordConsumer) consume(notis []*models.NotificationRec... function NewNotifyRecordConsumer (line 42) | func NewNotifyRecordConsumer(ctx *ctx.Context) *NotifyRecordConsumer { FILE: alert/sender/plugin.go function MayPluginNotify (line 20) | func MayPluginNotify(ctx *ctx.Context, noticeBytes []byte, notifyScript ... function alertingCallScript (line 28) | func alertingCallScript(ctx *ctx.Context, stdinBytes []byte, notifyScrip... function buildErr (line 132) | func buildErr(err error, isTimeout bool) error { FILE: alert/sender/plugin_cmd_unix.go function startCmd (line 11) | func startCmd(c *exec.Cmd) error { FILE: alert/sender/plugin_cmd_windows.go function startCmd (line 5) | func startCmd(c *exec.Cmd) error { FILE: alert/sender/sender.go type Sender (line 16) | type Sender interface type MessageContext (line 21) | type MessageContext struct function NewSender (line 30) | func NewSender(key string, tpls map[string]*template.Template, smtp ...a... function BuildMessageContext (line 54) | func BuildMessageContext(ctx *ctx.Context, rule *models.AlertRule, event... type BuildTplMessageFunc (line 66) | type BuildTplMessageFunc function buildTplMessage (line 70) | func buildTplMessage(channel string, tpl *template.Template, events []*m... FILE: alert/sender/telegram.go type TelegramMessage (line 15) | type TelegramMessage struct type telegram (line 21) | type telegram struct type TelegramSender (line 30) | type TelegramSender struct method CallBack (line 34) | func (ts *TelegramSender) CallBack(ctx CallBackContext) { method Send (line 47) | func (ts *TelegramSender) Send(ctx MessageContext) { method extract (line 61) | func (ts *TelegramSender) extract(users []*models.User) []string { function SendTelegram (line 71) | func SendTelegram(ctx *ctx.Context, message TelegramMessage, events []*m... FILE: alert/sender/webhook.go function getWebhookClient (line 25) | func getWebhookClient(webhook *models.Webhook) *http.Client { function sendWebhook (line 63) | func sendWebhook(webhook *models.Webhook, event interface{}, stats *asta... function SingleSendWebhooks (line 129) | func SingleSendWebhooks(ctx *ctx.Context, webhooks map[string]*models.We... function BatchSendWebhooks (line 146) | func BatchSendWebhooks(ctx *ctx.Context, webhooks map[string]*models.Web... constant QueueMaxSize (line 158) | QueueMaxSize = 100000 type WebhookQueue (line 160) | type WebhookQueue struct function PushEvent (line 165) | func PushEvent(ctx *ctx.Context, webhook *models.Webhook, event *models.... function StartConsumer (line 190) | func StartConsumer(ctx *ctx.Context, queue *WebhookQueue, popSize int, w... FILE: alert/sender/webhook_event_queue.go type SafeEventQueue (line 10) | type SafeEventQueue struct method Len (line 34) | func (spq *SafeEventQueue) Len() int { method len (line 41) | func (spq *SafeEventQueue) len() int { method Push (line 45) | func (spq *SafeEventQueue) Push(event *models.AlertCurEvent) bool { method pop (line 68) | func (spq *SafeEventQueue) pop() *models.AlertCurEvent { method Pop (line 89) | func (spq *SafeEventQueue) Pop() *models.AlertCurEvent { method PopN (line 95) | func (spq *SafeEventQueue) PopN(n int) []*models.AlertCurEvent { constant High (line 19) | High = 1 constant Middle (line 20) | Middle = 2 constant Low (line 21) | Low = 3 function NewSafeEventQueue (line 24) | func NewSafeEventQueue(maxSize int) *SafeEventQueue { FILE: alert/sender/webhook_event_queue_test.go function TestSafePriorityQueue_ConcurrentPushPop (line 12) | func TestSafePriorityQueue_ConcurrentPushPop(t *testing.T) { function TestSafePriorityQueue_ConcurrentPopMax (line 58) | func TestSafePriorityQueue_ConcurrentPopMax(t *testing.T) { function TestSafePriorityQueue_ConcurrentPushPopWithDifferentSeverities (line 92) | func TestSafePriorityQueue_ConcurrentPushPopWithDifferentSeverities(t *t... function TestSafePriorityQueue_ExceedMaxSize (line 130) | func TestSafePriorityQueue_ExceedMaxSize(t *testing.T) { FILE: alert/sender/webhook_queue.go type SafeList (line 10) | type SafeList struct method PushFront (line 19) | func (sl *SafeList) PushFront(v interface{}) *list.Element { method PushFrontBatch (line 26) | func (sl *SafeList) PushFrontBatch(vs []interface{}) { method PopBack (line 34) | func (sl *SafeList) PopBack(max int) []*models.AlertCurEvent { method RemoveAll (line 60) | func (sl *SafeList) RemoveAll() { method Len (line 66) | func (sl *SafeList) Len() int { function NewSafeList (line 15) | func NewSafeList() *SafeList { type SafeListLimited (line 74) | type SafeListLimited struct method PopBack (line 83) | func (sll *SafeListLimited) PopBack(max int) []*models.AlertCurEvent { method PushFront (line 87) | func (sll *SafeListLimited) PushFront(v interface{}) bool { method PushFrontBatch (line 96) | func (sll *SafeListLimited) PushFrontBatch(vs []interface{}) bool { method RemoveAll (line 105) | func (sll *SafeListLimited) RemoveAll() { method Len (line 109) | func (sll *SafeListLimited) Len() int { function NewSafeListLimited (line 79) | func NewSafeListLimited(maxSize int) *SafeListLimited { FILE: alert/sender/wecom.go type wecomMarkdown (line 10) | type wecomMarkdown struct type wecom (line 14) | type wecom struct type WecomSender (line 23) | type WecomSender struct method CallBack (line 27) | func (ws *WecomSender) CallBack(ctx CallBackContext) { method Send (line 43) | func (ws *WecomSender) Send(ctx MessageContext) { method extract (line 60) | func (ws *WecomSender) extract(users []*models.User) ([]string, []stri... FILE: center/cconf/conf.go type Center (line 9) | type Center struct method PreCheck (line 44) | func (c *Center) PreCheck() { type Plugin (line 26) | type Plugin struct type FlashDuty (line 33) | type FlashDuty struct type AnonymousAccess (line 39) | type AnonymousAccess struct FILE: center/cconf/event_example.go constant EVENT_EXAMPLE (line 3) | EVENT_EXAMPLE = ` FILE: center/cconf/metric.go type MetricDescType (line 10) | type MetricDescType struct function GetMetricDesc (line 19) | func GetMetricDesc(lang, metric string) string { function LoadMetricsYaml (line 43) | func LoadMetricsYaml(configDir, metricsYamlFile string) error { FILE: center/cconf/ops.go type Operation (line 13) | type Operation struct type Ops (line 17) | type Ops struct type SingleOp (line 24) | type SingleOp struct function TransformNames (line 29) | func TransformNames(name []string, nameToName map[string]string) []string { function LoadOpsYaml (line 39) | func LoadOpsYaml(configDir string, opsYamlFile string) error { function GetAllOps (line 58) | func GetAllOps(ops []Ops) []SingleOp { function MergeOperationConf (line 66) | func MergeOperationConf() error { constant builtInOps (line 86) | builtInOps = ` FILE: center/cconf/rsa/rsa_conf.go function InitRSAConfig (line 16) | func InitRSAConfig(ctx *ctx.Context, rsaConfig *httpx.RSAConfig) error { function initRSAKeyPairs (line 55) | func initRSAKeyPairs(ctx *ctx.Context, rsaPassWord string) (password str... function readConfigFile (line 94) | func readConfigFile(rsaConfig *httpx.RSAConfig) (privateBuf, publicBuf [... FILE: center/center.go function Initialize (line 44) | func Initialize(configDir string, cryptoKey string) (func(), error) { function InitSiteUrl (line 171) | func InitSiteUrl(ctx *ctx.Context, serverIP string, serverPort int) { FILE: center/cstats/stats.go constant namespace (line 10) | namespace = "n9e" constant subsystem (line 11) | subsystem = "center" function init (line 46) | func init() { function recordUptime (line 58) | func recordUptime() { FILE: center/integration/init.go constant SYSTEM (line 20) | SYSTEM = "system" type BuiltinPayloadInFileType (line 24) | type BuiltinPayloadInFileType struct method AddBuiltinPayload (line 317) | func (b *BuiltinPayloadInFileType) AddBuiltinPayload(bp *models.Builti... method GetComponentIdentByCate (line 334) | func (b *BuiltinPayloadInFileType) GetComponentIdentByCate(typ, cate s... method GetBuiltinPayload (line 358) | func (b *BuiltinPayloadInFileType) GetBuiltinPayload(typ, cate, query ... method GetBuiltinPayloadCates (line 393) | func (b *BuiltinPayloadInFileType) GetBuiltinPayloadCates(typ string, ... method BuiltinMetricGets (line 427) | func (b *BuiltinPayloadInFileType) BuiltinMetricGets(metricsInDB []*mo... method BuiltinMetricTypes (line 503) | func (b *BuiltinPayloadInFileType) BuiltinMetricTypes(lang, collector,... method BuiltinMetricCollectors (line 516) | func (b *BuiltinPayloadInFileType) BuiltinMetricCollectors(lang, typ, ... function Init (line 31) | func Init(ctx *ctx.Context, builtinIntegrationsDir string) { type BuiltinBoard (line 289) | type BuiltinBoard struct function NewBuiltinPayloadInFileType (line 309) | func NewBuiltinPayloadInFileType() *BuiltinPayloadInFileType { function filterByQuery (line 412) | func filterByQuery(payloads []*models.BuiltinPayload, query string) []*m... function applyFilter (line 528) | func applyFilter(metric *models.BuiltinMetric, collector, typ, query, un... function containsUnit (line 548) | func containsUnit(unit, metricUnit string) bool { function applyQueryFilter (line 558) | func applyQueryFilter(metric *models.BuiltinMetric, query string) bool { function getTranslationWithLanguage (line 575) | func getTranslationWithLanguage(bm *models.BuiltinMetric, lang string) (... function convertBuiltinMetricByDB (line 594) | func convertBuiltinMetricByDB(metricsInDB []*models.BuiltinMetric) map[s... function getDefaultTranslation (line 640) | func getDefaultTranslation(bm *models.BuiltinMetric) []models.Translation { FILE: center/metas/metas.go type Set (line 16) | type Set struct method Init (line 32) | func (s *Set) Init() { method MSet (line 36) | func (s *Set) MSet(items map[string]models.HostMeta) { method Set (line 44) | func (s *Set) Set(ident string, meta models.HostMeta) { method LoopPersist (line 50) | func (s *Set) LoopPersist() { method persist (line 57) | func (s *Set) persist() { method updateMeta (line 73) | func (s *Set) updateMeta(items map[string]models.HostMeta) { method updateTargets (line 94) | func (s *Set) updateTargets(m map[string]models.HostMeta) error { function New (line 22) | func New(redis storage.Redis) *Set { FILE: center/router/router.go type Router (line 36) | type Router struct method configNoRoute (line 127) | func (rt *Router) configNoRoute(r *gin.Engine, fs *http.FileSystem) { method Config (line 163) | func (rt *Router) Config(r *gin.Engine) { function New (line 61) | func New(httpConfig httpx.Config, center cconf.Center, alert aconf.Alert... function stat (line 91) | func stat() gin.HandlerFunc { function languageDetector (line 104) | func languageDetector(i18NHeaderKey string) gin.HandlerFunc { function Render (line 743) | func Render(c *gin.Context, data, msg interface{}) { function Dangerous (line 754) | func Dangerous(c *gin.Context, v interface{}, code ...int) { FILE: center/router/router_alert_aggr_view.go method alertAggrViewGets (line 13) | func (rt *Router) alertAggrViewGets(c *gin.Context) { method alertAggrViewAdd (line 19) | func (rt *Router) alertAggrViewAdd(c *gin.Context) { method alertAggrViewDel (line 37) | func (rt *Router) alertAggrViewDel(c *gin.Context) { method alertAggrViewPut (line 51) | func (rt *Router) alertAggrViewPut(c *gin.Context) { FILE: center/router/router_alert_cur_event.go function getUserGroupIds (line 19) | func getUserGroupIds(ctx *gin.Context, rt *Router, myGroups bool) ([]int... method alertCurEventsCard (line 27) | func (rt *Router) alertCurEventsCard(c *gin.Context) { type AlertCard (line 123) | type AlertCard struct method alertCurEventsCardDetails (line 130) | func (rt *Router) alertCurEventsCardDetails(c *gin.Context) { method alertCurEventsGetByRid (line 146) | func (rt *Router) alertCurEventsGetByRid(c *gin.Context) { method alertCurEventsList (line 153) | func (rt *Router) alertCurEventsList(c *gin.Context) { method alertCurEventDel (line 205) | func (rt *Router) alertCurEventDel(c *gin.Context) { method checkCurEventBusiGroupRWPermission (line 215) | func (rt *Router) checkCurEventBusiGroupRWPermission(c *gin.Context, ids... method alertCurEventGet (line 234) | func (rt *Router) alertCurEventGet(c *gin.Context) { function GetCurEventDetail (line 248) | func GetCurEventDetail(ctx *ctx.Context, eid int64) (*models.AlertCurEve... function GetEventNotifyRuleNames (line 271) | func GetEventNotifyRuleNames(ctx *ctx.Context, notifyRuleIds []int64) ([... function GetEventNotifyVersion (line 287) | func GetEventNotifyVersion(ctx *ctx.Context, ruleId int64, notifyRuleIds... method alertCurEventsStatistics (line 300) | func (rt *Router) alertCurEventsStatistics(c *gin.Context) { method alertCurEventDelByHash (line 305) | func (rt *Router) alertCurEventDelByHash(c *gin.Context) { method eventTagKeys (line 310) | func (rt *Router) eventTagKeys(c *gin.Context) { method eventTagValues (line 360) | func (rt *Router) eventTagValues(c *gin.Context) { FILE: center/router/router_alert_eval_detail.go method alertEvalDetailPage (line 21) | func (rt *Router) alertEvalDetailPage(c *gin.Context) { method alertEvalDetailJSON (line 47) | func (rt *Router) alertEvalDetailJSON(c *gin.Context) { method getAlertEvalLogs (line 63) | func (rt *Router) getAlertEvalLogs(id string) ([]string, string, error) { method forwardAlertEvalDetail (line 132) | func (rt *Router) forwardAlertEvalDetail(node, id string) ([]string, str... FILE: center/router/router_alert_his_event.go function getTimeRange (line 18) | func getTimeRange(c *gin.Context) (stime, etime int64) { method alertHisEventsList (line 34) | func (rt *Router) alertHisEventsList(c *gin.Context) { type alertHisEventsDeleteForm (line 83) | type alertHisEventsDeleteForm struct method alertHisEventsDelete (line 88) | func (rt *Router) alertHisEventsDelete(c *gin.Context) { function init (line 123) | func init() { function transferEventToCur (line 127) | func transferEventToCur(ctx *ctx.Context, event *models.AlertHisEvent) *... method alertHisEventGet (line 132) | func (rt *Router) alertHisEventGet(c *gin.Context) { function GetBusinessGroupIds (line 159) | func GetBusinessGroupIds(c *gin.Context, ctx *ctx.Context, onlySelfGroup... FILE: center/router/router_alert_rule.go type AlertRuleModifyHookFunc (line 28) | type AlertRuleModifyHookFunc method alertRuleGets (line 31) | func (rt *Router) alertRuleGets(c *gin.Context) { function GetAlertCueEventTimeRange (line 44) | func GetAlertCueEventTimeRange(c *gin.Context) (stime, etime int64) { method alertRuleGetsByGids (line 56) | func (rt *Router) alertRuleGetsByGids(c *gin.Context) { method alertRulesGetByService (line 103) | func (rt *Router) alertRulesGetByService(c *gin.Context) { method alertRuleAddByFE (line 136) | func (rt *Router) alertRuleAddByFE(c *gin.Context) { type AlertRuleTryRunForm (line 153) | type AlertRuleTryRunForm struct method alertRuleNotifyTryRun (line 158) | func (rt *Router) alertRuleNotifyTryRun(c *gin.Context) { method alertRuleEnableTryRun (line 237) | func (rt *Router) alertRuleEnableTryRun(c *gin.Context) { method alertRuleAddByImport (line 267) | func (rt *Router) alertRuleAddByImport(c *gin.Context) { type promRuleForm (line 301) | type promRuleForm struct method alertRuleAddByImportPromRule (line 307) | func (rt *Router) alertRuleAddByImportPromRule(c *gin.Context) { method alertRuleAddByService (line 362) | func (rt *Router) alertRuleAddByService(c *gin.Context) { method alertRuleAddOneByService (line 374) | func (rt *Router) alertRuleAddOneByService(c *gin.Context) { method alertRuleAddForService (line 385) | func (rt *Router) alertRuleAddForService(lst []models.AlertRule, usernam... method alertRuleAdd (line 410) | func (rt *Router) alertRuleAdd(lst []models.AlertRule, username string, ... method alertRuleDel (line 436) | func (rt *Router) alertRuleDel(c *gin.Context) { method alertRuleDelByService (line 445) | func (rt *Router) alertRuleDelByService(c *gin.Context) { method alertRulePutByFE (line 452) | func (rt *Router) alertRulePutByFE(c *gin.Context) { method alertRulePutByService (line 471) | func (rt *Router) alertRulePutByService(c *gin.Context) { type alertRuleFieldForm (line 486) | type alertRuleFieldForm struct method alertRulePutFields (line 493) | func (rt *Router) alertRulePutFields(c *gin.Context) { method alertRuleGet (line 596) | func (rt *Router) alertRuleGet(c *gin.Context) { method alertRulePureGet (line 618) | func (rt *Router) alertRulePureGet(c *gin.Context) { method alertRuleValidation (line 633) | func (rt *Router) alertRuleValidation(c *gin.Context) { method alertRuleCallbacks (line 683) | func (rt *Router) alertRuleCallbacks(c *gin.Context) { type alertRuleTestForm (line 705) | type alertRuleTestForm struct method relabelTest (line 710) | func (rt *Router) relabelTest(c *gin.Context) { type identListForm (line 752) | type identListForm struct function containsIdentOperator (line 757) | func containsIdentOperator(s string) bool { method cloneToMachine (line 766) | func (rt *Router) cloneToMachine(c *gin.Context) { type alertBatchCloneForm (line 840) | type alertBatchCloneForm struct method batchAlertRuleClone (line 846) | func (rt *Router) batchAlertRuleClone(c *gin.Context) { method timezonesGet (line 886) | func (rt *Router) timezonesGet(c *gin.Context) { FILE: center/router/router_alert_subscribe.go method alertSubscribeGets (line 19) | func (rt *Router) alertSubscribeGets(c *gin.Context) { method alertSubscribeGetsByGids (line 38) | func (rt *Router) alertSubscribeGetsByGids(c *gin.Context) { method alertSubscribeGet (line 75) | func (rt *Router) alertSubscribeGet(c *gin.Context) { method alertSubscribeAdd (line 97) | func (rt *Router) alertSubscribeAdd(c *gin.Context) { type SubscribeTryRunForm (line 113) | type SubscribeTryRunForm struct method alertSubscribeTryRun (line 118) | func (rt *Router) alertSubscribeTryRun(c *gin.Context) { method alertSubscribePut (line 255) | func (rt *Router) alertSubscribePut(c *gin.Context) { method alertSubscribeDel (line 300) | func (rt *Router) alertSubscribeDel(c *gin.Context) { method alertSubscribeGetsByService (line 308) | func (rt *Router) alertSubscribeGetsByService(c *gin.Context) { FILE: center/router/router_board.go type boardForm (line 16) | type boardForm struct method boardAdd (line 27) | func (rt *Router) boardAdd(c *gin.Context) { method boardGet (line 54) | func (rt *Router) boardGet(c *gin.Context) { method boardGetsByBids (line 105) | func (rt *Router) boardGetsByBids(c *gin.Context) { method boardPureGet (line 112) | func (rt *Router) boardPureGet(c *gin.Context) { method boardDel (line 128) | func (rt *Router) boardDel(c *gin.Context) { method Board (line 155) | func (rt *Router) Board(id int64) *models.Board { method boardPut (line 167) | func (rt *Router) boardPut(c *gin.Context) { method boardPutConfigs (line 198) | func (rt *Router) boardPutConfigs(c *gin.Context) { method boardPutPublic (line 228) | func (rt *Router) boardPutPublic(c *gin.Context) { method boardGets (line 258) | func (rt *Router) boardGets(c *gin.Context) { method publicBoardGets (line 269) | func (rt *Router) publicBoardGets(c *gin.Context) { method boardGetsByGids (line 285) | func (rt *Router) boardGetsByGids(c *gin.Context) { method boardClone (line 326) | func (rt *Router) boardClone(c *gin.Context) { type boardsForm (line 345) | type boardsForm struct method boardBatchClone (line 350) | func (rt *Router) boardBatchClone(c *gin.Context) { FILE: center/router/router_builtin.go method builtinCateFavoriteAdd (line 20) | func (rt *Router) builtinCateFavoriteAdd(c *gin.Context) { method builtinCateFavoriteDel (line 35) | func (rt *Router) builtinCateFavoriteDel(c *gin.Context) { type Payload (line 42) | type Payload struct type BoardCate (line 50) | type BoardCate struct method builtinBoardDetailGets (line 57) | func (rt *Router) builtinBoardDetailGets(c *gin.Context) { method builtinBoardCateGets (line 74) | func (rt *Router) builtinBoardCateGets(c *gin.Context) { method builtinBoardGets (line 134) | func (rt *Router) builtinBoardGets(c *gin.Context) { type AlertCate (line 162) | type AlertCate struct method builtinAlertCateGets (line 169) | func (rt *Router) builtinAlertCateGets(c *gin.Context) { type builtinAlertRulesList (line 222) | type builtinAlertRulesList struct method builtinAlertRules (line 229) | func (rt *Router) builtinAlertRules(c *gin.Context) { method builtinBoardGet (line 287) | func (rt *Router) builtinBoardGet(c *gin.Context) { method builtinIcon (line 308) | func (rt *Router) builtinIcon(c *gin.Context) { method builtinMarkdown (line 319) | func (rt *Router) builtinMarkdown(c *gin.Context) { FILE: center/router/router_builtin_component.go constant SYSTEM (line 14) | SYSTEM = "system" method builtinComponentsAdd (line 16) | func (rt *Router) builtinComponentsAdd(c *gin.Context) { method builtinComponentsGets (line 37) | func (rt *Router) builtinComponentsGets(c *gin.Context) { method builtinComponentsPut (line 47) | func (rt *Router) builtinComponentsPut(c *gin.Context) { method builtinComponentsDel (line 86) | func (rt *Router) builtinComponentsDel(c *gin.Context) { FILE: center/router/router_builtin_metric_filter.go method metricFilterGets (line 10) | func (rt *Router) metricFilterGets(c *gin.Context) { method metricFilterAdd (line 35) | func (rt *Router) metricFilterAdd(c *gin.Context) { method metricFilterDel (line 46) | func (rt *Router) metricFilterDel(c *gin.Context) { method metricFilterPut (line 71) | func (rt *Router) metricFilterPut(c *gin.Context) { type metricPromqlReq (line 93) | type metricPromqlReq struct method getMetricPromql (line 98) | func (rt *Router) getMetricPromql(c *gin.Context) { function HasPerm (line 106) | func HasPerm(gids []int64, gps []models.GroupPerm, checkWrite bool) bool { FILE: center/router/router_builtin_metrics.go method builtinMetricsAdd (line 17) | func (rt *Router) builtinMetricsAdd(c *gin.Context) { method builtinMetricsGets (line 42) | func (rt *Router) builtinMetricsGets(c *gin.Context) { method builtinMetricsPut (line 65) | func (rt *Router) builtinMetricsPut(c *gin.Context) { method builtinMetricsDel (line 81) | func (rt *Router) builtinMetricsDel(c *gin.Context) { method builtinMetricsDefaultTypes (line 89) | func (rt *Router) builtinMetricsDefaultTypes(c *gin.Context) { method builtinMetricsTypes (line 101) | func (rt *Router) builtinMetricsTypes(c *gin.Context) { method builtinMetricsCollectors (line 128) | func (rt *Router) builtinMetricsCollectors(c *gin.Context) { FILE: center/router/router_builtin_payload.go type Board (line 17) | type Board struct method builtinPayloadsAdd (line 25) | func (rt *Router) builtinPayloadsAdd(c *gin.Context) { method builtinPayloadsGets (line 197) | func (rt *Router) builtinPayloadsGets(c *gin.Context) { method builtinPayloadcatesGet (line 221) | func (rt *Router) builtinPayloadcatesGet(c *gin.Context) { method builtinPayloadsPut (line 253) | func (rt *Router) builtinPayloadsPut(c *gin.Context) { method builtinPayloadsDel (line 295) | func (rt *Router) builtinPayloadsDel(c *gin.Context) { method builtinPayloadsGetByUUID (line 304) | func (rt *Router) builtinPayloadsGetByUUID(c *gin.Context) { FILE: center/router/router_busi_group.go type busiGroupForm (line 14) | type busiGroupForm struct method busiGroupAdd (line 21) | func (rt *Router) busiGroupAdd(c *gin.Context) { method busiGroupPut (line 56) | func (rt *Router) busiGroupPut(c *gin.Context) { method busiGroupMemberAdd (line 65) | func (rt *Router) busiGroupMemberAdd(c *gin.Context) { method busiGroupMemberDel (line 81) | func (rt *Router) busiGroupMemberDel(c *gin.Context) { method busiGroupDel (line 97) | func (rt *Router) busiGroupDel(c *gin.Context) { method busiGroupGets (line 112) | func (rt *Router) busiGroupGets(c *gin.Context) { method busiGroupGetsByService (line 129) | func (rt *Router) busiGroupGetsByService(c *gin.Context) { method busiGroupAlertingsGets (line 135) | func (rt *Router) busiGroupAlertingsGets(c *gin.Context) { method busiGroupGet (line 141) | func (rt *Router) busiGroupGet(c *gin.Context) { method busiGroupsGetTags (line 147) | func (rt *Router) busiGroupsGetTags(c *gin.Context) { FILE: center/router/router_captcha.go type CaptchaRedisStore (line 14) | type CaptchaRedisStore struct method Set (line 18) | func (s *CaptchaRedisStore) Set(id string, value string) error { method Get (line 28) | func (s *CaptchaRedisStore) Get(id string, clear bool) string { method Verify (line 43) | func (s *CaptchaRedisStore) Verify(id, answer string, clear bool) bool { method newCaptchaRedisStore (line 49) | func (rt *Router) newCaptchaRedisStore() *CaptchaRedisStore { type CaptchaReqBody (line 58) | type CaptchaReqBody struct method generateCaptcha (line 64) | func (rt *Router) generateCaptcha(c *gin.Context) { method captchaVerify (line 82) | func (rt *Router) captchaVerify(c *gin.Context) { method ifShowCaptcha (line 96) | func (rt *Router) ifShowCaptcha(c *gin.Context) { function CaptchaVerify (line 111) | func CaptchaVerify(id string, value string) bool { FILE: center/router/router_chart_share.go method chartShareGets (line 13) | func (rt *Router) chartShareGets(c *gin.Context) { type chartShareForm (line 19) | type chartShareForm struct method chartShareAdd (line 24) | func (rt *Router) chartShareAdd(c *gin.Context) { FILE: center/router/router_config.go method notifyChannelsGets (line 12) | func (rt *Router) notifyChannelsGets(c *gin.Context) { method contactKeysGets (line 39) | func (rt *Router) contactKeysGets(c *gin.Context) { method siteInfo (line 66) | func (rt *Router) siteInfo(c *gin.Context) { FILE: center/router/router_configs.go constant EMBEDDEDDASHBOARD (line 12) | EMBEDDEDDASHBOARD = "embedded-dashboards" method configsGet (line 14) | func (rt *Router) configsGet(c *gin.Context) { method configGet (line 24) | func (rt *Router) configGet(c *gin.Context) { method configGetAll (line 30) | func (rt *Router) configGetAll(c *gin.Context) { method configGetByKey (line 35) | func (rt *Router) configGetByKey(c *gin.Context) { method configPutByKey (line 40) | func (rt *Router) configPutByKey(c *gin.Context) { method embeddedDashboardsGet (line 47) | func (rt *Router) embeddedDashboardsGet(c *gin.Context) { method embeddedDashboardsPut (line 52) | func (rt *Router) embeddedDashboardsPut(c *gin.Context) { method configsDel (line 59) | func (rt *Router) configsDel(c *gin.Context) { method configsPut (line 65) | func (rt *Router) configsPut(c *gin.Context) { //for APIForService method configsPost (line 82) | func (rt *Router) configsPost(c *gin.Context) { //for APIForService FILE: center/router/router_crypto.go type confPropCrypto (line 10) | type confPropCrypto struct method confPropEncrypt (line 15) | func (rt *Router) confPropEncrypt(c *gin.Context) { method confPropDecrypt (line 40) | func (rt *Router) confPropDecrypt(c *gin.Context) { FILE: center/router/router_dash_annotation.go function checkAnnotationPermission (line 15) | func checkAnnotationPermission(c *gin.Context, ctx *ctx.Context, dashboa... method dashAnnotationAdd (line 35) | func (rt *Router) dashAnnotationAdd(c *gin.Context) { method dashAnnotationGets (line 52) | func (rt *Router) dashAnnotationGets(c *gin.Context) { method dashAnnotationPut (line 62) | func (rt *Router) dashAnnotationPut(c *gin.Context) { method dashAnnotationDel (line 79) | func (rt *Router) dashAnnotationDel(c *gin.Context) { function getAnnotationById (line 90) | func getAnnotationById(ctx *ctx.Context, id int64) (*models.DashAnnotati... FILE: center/router/router_dashboard.go type ChartPure (line 3) | type ChartPure struct type ChartGroupPure (line 8) | type ChartGroupPure struct type DashboardPure (line 14) | type DashboardPure struct FILE: center/router/router_datasource.go method pluginList (line 24) | func (rt *Router) pluginList(c *gin.Context) { type listReq (line 28) | type listReq struct method datasourceList (line 34) | func (rt *Router) datasourceList(c *gin.Context) { method datasourceGetsByService (line 53) | func (rt *Router) datasourceGetsByService(c *gin.Context) { method datasourceRsaConfigGet (line 67) | func (rt *Router) datasourceRsaConfigGet(c *gin.Context) { method datasourceBriefs (line 91) | func (rt *Router) datasourceBriefs(c *gin.Context) { method datasourceUpsert (line 125) | func (rt *Router) datasourceUpsert(c *gin.Context) { function DatasourceCheck (line 285) | func DatasourceCheck(c *gin.Context, ds models.Datasource) error { method datasourceGet (line 384) | func (rt *Router) datasourceGet(c *gin.Context) { method datasourceUpdataStatus (line 396) | func (rt *Router) datasourceUpdataStatus(c *gin.Context) { method datasourceDel (line 410) | func (rt *Router) datasourceDel(c *gin.Context) { method getDatasourceIds (line 422) | func (rt *Router) getDatasourceIds(c *gin.Context) { type datasourceQueryForm (line 429) | type datasourceQueryForm struct type datasourceQueryResp (line 434) | type datasourceQueryResp struct method datasourceQuery (line 439) | func (rt *Router) datasourceQuery(c *gin.Context) { function getElasticsearchVersion (line 465) | func getElasticsearchVersion(ds models.Datasource, timeout time.Duration... FILE: center/router/router_datasource_db.go method ShowDatabases (line 15) | func (rt *Router) ShowDatabases(c *gin.Context) { method ShowTables (line 45) | func (rt *Router) ShowTables(c *gin.Context) { method DescribeTable (line 75) | func (rt *Router) DescribeTable(c *gin.Context) { FILE: center/router/router_embedded.go method embeddedProductGets (line 13) | func (rt *Router) embeddedProductGets(c *gin.Context) { method embeddedProductGet (line 50) | func (rt *Router) embeddedProductGet(c *gin.Context) { method embeddedProductAdd (line 70) | func (rt *Router) embeddedProductAdd(c *gin.Context) { method embeddedProductPut (line 85) | func (rt *Router) embeddedProductPut(c *gin.Context) { method embeddedProductDelete (line 110) | func (rt *Router) embeddedProductDelete(c *gin.Context) { function hasEmbeddedProductAccess (line 120) | func hasEmbeddedProductAccess(ctx *ctx.Context, user *models.User, ep *m... FILE: center/router/router_es.go type IndexReq (line 12) | type IndexReq struct type FieldValueReq (line 18) | type FieldValueReq struct type FieldObj (line 25) | type FieldObj struct method QueryIndices (line 31) | func (rt *Router) QueryIndices(c *gin.Context) { method QueryFields (line 47) | func (rt *Router) QueryFields(c *gin.Context) { method QueryESVariable (line 63) | func (rt *Router) QueryESVariable(c *gin.Context) { FILE: center/router/router_es_index_pattern.go method esIndexPatternAdd (line 13) | func (rt *Router) esIndexPatternAdd(c *gin.Context) { method esIndexPatternPut (line 29) | func (rt *Router) esIndexPatternPut(c *gin.Context) { method esIndexPatternDel (line 49) | func (rt *Router) esIndexPatternDel(c *gin.Context) { method esIndexPatternGetList (line 61) | func (rt *Router) esIndexPatternGetList(c *gin.Context) { method esIndexPatternGet (line 80) | func (rt *Router) esIndexPatternGet(c *gin.Context) { FILE: center/router/router_event_detail.go method eventDetailPage (line 20) | func (rt *Router) eventDetailPage(c *gin.Context) { method eventDetailJSON (line 46) | func (rt *Router) eventDetailJSON(c *gin.Context) { method getNodeForDatasource (line 65) | func (rt *Router) getNodeForDatasource(datasourceId int64, pk string) (s... method getEventLogs (line 89) | func (rt *Router) getEventLogs(hash string) ([]string, string, error) { method forwardEventDetail (line 113) | func (rt *Router) forwardEventDetail(node, hash string) ([]string, strin... FILE: center/router/router_event_pipeline.go method eventPipelinesList (line 20) | func (rt *Router) eventPipelinesList(c *gin.Context) { method getEventPipeline (line 79) | func (rt *Router) getEventPipeline(c *gin.Context) { method addEventPipeline (line 102) | func (rt *Router) addEventPipeline(c *gin.Context) { method updateEventPipeline (line 124) | func (rt *Router) updateEventPipeline(c *gin.Context) { method deleteEventPipelines (line 142) | func (rt *Router) deleteEventPipelines(c *gin.Context) { method tryRunEventPipeline (line 164) | func (rt *Router) tryRunEventPipeline(c *gin.Context) { method tryRunEventProcessor (line 211) | func (rt *Router) tryRunEventProcessor(c *gin.Context) { method tryRunEventProcessorByNotifyRule (line 244) | func (rt *Router) tryRunEventProcessorByNotifyRule(c *gin.Context) { method eventPipelinesListByService (line 298) | func (rt *Router) eventPipelinesListByService(c *gin.Context) { type EventPipelineRequest (line 303) | type EventPipelineRequest struct method executePipelineTrigger (line 313) | func (rt *Router) executePipelineTrigger(pipeline *models.EventPipeline,... method triggerEventPipelineByService (line 350) | func (rt *Router) triggerEventPipelineByService(c *gin.Context) { method triggerEventPipelineByAPI (line 373) | func (rt *Router) triggerEventPipelineByAPI(c *gin.Context) { method listAllEventPipelineExecutions (line 399) | func (rt *Router) listAllEventPipelineExecutions(c *gin.Context) { method listEventPipelineExecutions (line 423) | func (rt *Router) listEventPipelineExecutions(c *gin.Context) { method getEventPipelineExecution (line 446) | func (rt *Router) getEventPipelineExecution(c *gin.Context) { method getEventPipelineExecutionStats (line 457) | func (rt *Router) getEventPipelineExecutionStats(c *gin.Context) { method cleanEventPipelineExecutions (line 466) | func (rt *Router) cleanEventPipelineExecutions(c *gin.Context) { method streamEventPipeline (line 485) | func (rt *Router) streamEventPipeline(c *gin.Context) { method handleStreamResponse (line 530) | func (rt *Router) handleStreamResponse(c *gin.Context, result *models.Wo... method streamEventPipelineByService (line 583) | func (rt *Router) streamEventPipelineByService(c *gin.Context) { method eventPipelineExecutionAdd (line 627) | func (rt *Router) eventPipelineExecutionAdd(c *gin.Context) { FILE: center/router/router_funcs.go constant defaultLimit (line 15) | defaultLimit = 300 method statistic (line 17) | func (rt *Router) statistic(c *gin.Context) { function queryDatasourceIds (line 72) | func queryDatasourceIds(c *gin.Context) []int64 { function queryStrListField (line 84) | func queryStrListField(c *gin.Context, fieldName string, sep ...string) ... type idsForm (line 101) | type idsForm struct method Verify (line 106) | func (f idsForm) Verify() { function User (line 112) | func User(ctx *ctx.Context, id int64) *models.User { function UserGroup (line 123) | func UserGroup(ctx *ctx.Context, id int64) *models.UserGroup { function BusiGroup (line 140) | func BusiGroup(ctx *ctx.Context, id int64) *models.BusiGroup { function Dashboard (line 151) | func Dashboard(ctx *ctx.Context, id int64) *models.Dashboard { type DoneIdsReply (line 162) | type DoneIdsReply struct type TaskCreateReply (line 169) | type TaskCreateReply struct function Username (line 174) | func Username(c *gin.Context) string { function HasPermission (line 183) | func HasPermission(ctx *ctx.Context, c *gin.Context, sourceType, sourceI... function ValidateSourceToken (line 199) | func ValidateSourceToken(ctx *ctx.Context, sourceType, sourceId, token s... FILE: center/router/router_heartbeat.go type HeartbeatHookFunc (line 24) | type HeartbeatHookFunc method heartbeat (line 26) | func (rt *Router) heartbeat(c *gin.Context) { function HandleHeartbeat (line 34) | func HandleHeartbeat(c *gin.Context, ctx *ctx.Context, engineName string... FILE: center/router/router_login.go type loginForm (line 30) | type loginForm struct method loginPost (line 37) | func (rt *Router) loginPost(c *gin.Context) { method logoutPost (line 104) | func (rt *Router) logoutPost(c *gin.Context) { type refreshForm (line 144) | type refreshForm struct method refreshPost (line 148) | func (rt *Router) refreshPost(c *gin.Context) { method loginRedirect (line 242) | func (rt *Router) loginRedirect(c *gin.Context) { type CallbackOutput (line 271) | type CallbackOutput struct method loginCallback (line 278) | func (rt *Router) loginCallback(c *gin.Context) { type RedirectOutput (line 340) | type RedirectOutput struct method loginRedirectCas (line 345) | func (rt *Router) loginRedirectCas(c *gin.Context) { method loginCallbackCas (line 378) | func (rt *Router) loginCallbackCas(c *gin.Context) { method loginRedirectOAuth (line 426) | func (rt *Router) loginRedirectOAuth(c *gin.Context) { method loginRedirectDingTalk (line 455) | func (rt *Router) loginRedirectDingTalk(c *gin.Context) { method loginCallbackDingTalk (line 484) | func (rt *Router) loginCallbackDingTalk(c *gin.Context) { method loginRedirectFeiShu (line 531) | func (rt *Router) loginRedirectFeiShu(c *gin.Context) { method loginCallbackFeiShu (line 560) | func (rt *Router) loginCallbackFeiShu(c *gin.Context) { method loginCallbackOAuth (line 621) | func (rt *Router) loginCallbackOAuth(c *gin.Context) { type SsoConfigOutput (line 667) | type SsoConfigOutput struct method ssoConfigNameGet (line 675) | func (rt *Router) ssoConfigNameGet(c *gin.Context) { method ssoConfigGets (line 706) | func (rt *Router) ssoConfigGets(c *gin.Context) { method ssoConfigUpdate (line 753) | func (rt *Router) ssoConfigUpdate(c *gin.Context) { type RSAConfigOutput (line 844) | type RSAConfigOutput struct method rsaConfigGet (line 849) | func (rt *Router) rsaConfigGet(c *gin.Context) { FILE: center/router/router_message_template.go method messageTemplatesAdd (line 21) | func (rt *Router) messageTemplatesAdd(c *gin.Context) { method messageTemplatesDel (line 66) | func (rt *Router) messageTemplatesDel(c *gin.Context) { method messageTemplatePut (line 93) | func (rt *Router) messageTemplatePut(c *gin.Context) { method messageTemplateGet (line 122) | func (rt *Router) messageTemplateGet(c *gin.Context) { method messageTemplatesGet (line 140) | func (rt *Router) messageTemplatesGet(c *gin.Context) { type evtMsgReq (line 173) | type evtMsgReq struct method eventsMessage (line 180) | func (rt *Router) eventsMessage(c *gin.Context) { FILE: center/router/router_metric_desc.go method metricsDescGetFile (line 10) | func (rt *Router) metricsDescGetFile(c *gin.Context) { method metricsDescGetMap (line 15) | func (rt *Router) metricsDescGetMap(c *gin.Context) { FILE: center/router/router_metric_view.go method metricViewGets (line 13) | func (rt *Router) metricViewGets(c *gin.Context) { method metricViewAdd (line 19) | func (rt *Router) metricViewAdd(c *gin.Context) { method metricViewDel (line 38) | func (rt *Router) metricViewDel(c *gin.Context) { method metricViewPut (line 52) | func (rt *Router) metricViewPut(c *gin.Context) { FILE: center/router/router_mute.go method alertMuteGetsByBG (line 19) | func (rt *Router) alertMuteGetsByBG(c *gin.Context) { method alertMuteGetsByGids (line 32) | func (rt *Router) alertMuteGetsByGids(c *gin.Context) { method alertMuteGets (line 60) | func (rt *Router) alertMuteGets(c *gin.Context) { method activeAlertMuteGets (line 74) | func (rt *Router) activeAlertMuteGets(c *gin.Context) { method alertMuteAdd (line 79) | func (rt *Router) alertMuteAdd(c *gin.Context) { type MuteTestForm (line 93) | type MuteTestForm struct method alertMuteTryRun (line 99) | func (rt *Router) alertMuteTryRun(c *gin.Context) { method alertMutePreview (line 144) | func (rt *Router) alertMutePreview(c *gin.Context) { method alertMuteAddByService (line 165) | func (rt *Router) alertMuteAddByService(c *gin.Context) { method alertMuteDel (line 173) | func (rt *Router) alertMuteDel(c *gin.Context) { method alertMuteGet (line 182) | func (rt *Router) alertMuteGet(c *gin.Context) { method alertMutePutByFE (line 189) | func (rt *Router) alertMutePutByFE(c *gin.Context) { type alertMuteFieldForm (line 208) | type alertMuteFieldForm struct method alertMutePutFields (line 213) | func (rt *Router) alertMutePutFields(c *gin.Context) { FILE: center/router/router_mw.go constant DefaultTokenKey (line 22) | DefaultTokenKey = "X-User-Token" type AccessDetails (line 25) | type AccessDetails struct method handleProxyUser (line 30) | func (rt *Router) handleProxyUser(c *gin.Context) *models.User { method proxyAuth (line 61) | func (rt *Router) proxyAuth() gin.HandlerFunc { method tokenAuth (line 72) | func (rt *Router) tokenAuth() gin.HandlerFunc { method Auth (line 121) | func (rt *Router) Auth() gin.HandlerFunc { method auth (line 125) | func (rt *Router) auth() gin.HandlerFunc { method jwtMock (line 134) | func (rt *Router) jwtMock() gin.HandlerFunc { method User (line 153) | func (rt *Router) User() gin.HandlerFunc { method user (line 157) | func (rt *Router) user() gin.HandlerFunc { method userGroupWrite (line 178) | func (rt *Router) userGroupWrite() gin.HandlerFunc { method bgro (line 195) | func (rt *Router) bgro() gin.HandlerFunc { method Bgrw (line 213) | func (rt *Router) Bgrw() gin.HandlerFunc { method bgrw (line 217) | func (rt *Router) bgrw() gin.HandlerFunc { method bgrwCheck (line 235) | func (rt *Router) bgrwCheck(c *gin.Context, bgid int64) { method bgrwChecks (line 249) | func (rt *Router) bgrwChecks(c *gin.Context, bgids []int64) { method bgroCheck (line 262) | func (rt *Router) bgroCheck(c *gin.Context, bgid int64) { method Perm (line 276) | func (rt *Router) Perm(operation string) gin.HandlerFunc { method perm (line 280) | func (rt *Router) perm(operation string) gin.HandlerFunc { method admin (line 295) | func (rt *Router) admin() gin.HandlerFunc { method extractTokenMetadata (line 326) | func (rt *Router) extractTokenMetadata(r *http.Request) (*AccessDetails,... method extractToken (line 354) | func (rt *Router) extractToken(r *http.Request) string { method createAuth (line 364) | func (rt *Router) createAuth(ctx context.Context, userIdentity string, t... method fetchAuth (line 411) | func (rt *Router) fetchAuth(ctx context.Context, givenUuid string) (stri... method deleteAuth (line 423) | func (rt *Router) deleteAuth(ctx context.Context, givenUuid string) error { method deleteTokens (line 433) | func (rt *Router) deleteTokens(ctx context.Context, authD *AccessDetails... method wrapJwtKey (line 452) | func (rt *Router) wrapJwtKey(key string) string { method wrapIdTokenKey (line 456) | func (rt *Router) wrapIdTokenKey(userId int64) string { method saveIdToken (line 461) | func (rt *Router) saveIdToken(ctx context.Context, userId int64, idToken... method fetchIdToken (line 471) | func (rt *Router) fetchIdToken(ctx context.Context, userId int64) (strin... method deleteIdToken (line 476) | func (rt *Router) deleteIdToken(ctx context.Context, userId int64) error { type TokenDetails (line 480) | type TokenDetails struct method createTokens (line 489) | func (rt *Router) createTokens(signingKey, userIdentity string) (*TokenD... method verifyToken (line 524) | func (rt *Router) verifyToken(signingKey, tokenString string) (*jwt.Toke... FILE: center/router/router_notification_record.go type NotificationResponse (line 15) | type NotificationResponse struct type SubRule (line 20) | type SubRule struct type Record (line 26) | type Record struct method notificationRecordAdd (line 35) | func (rt *Router) notificationRecordAdd(c *gin.Context) { method notificationRecordList (line 44) | func (rt *Router) notificationRecordList(c *gin.Context) { function buildNotificationResponse (line 53) | func buildNotificationResponse(ctx *ctx.Context, nl []*models.Notificati... function checkChannel (line 163) | func checkChannel(channel string) bool { function replaceLastEightChars (line 171) | func replaceLastEightChars(s string) string { function fillUserNames (line 178) | func fillUserNames(ctx *ctx.Context, groupIdSet map[int64]struct{}) map[... FILE: center/router/router_notify_channel.go method notifyChannelsAdd (line 18) | func (rt *Router) notifyChannelsAdd(c *gin.Context) { method notifyChannelsDel (line 54) | func (rt *Router) notifyChannelsDel(c *gin.Context) { method notifyChannelPut (line 72) | func (rt *Router) notifyChannelPut(c *gin.Context) { method notifyChannelGet (line 94) | func (rt *Router) notifyChannelGet(c *gin.Context) { method notifyChannelGetBy (line 105) | func (rt *Router) notifyChannelGetBy(c *gin.Context) { method notifyChannelsGet (line 119) | func (rt *Router) notifyChannelsGet(c *gin.Context) { method notifyChannelsGetForNormalUser (line 127) | func (rt *Router) notifyChannelsGetForNormalUser(c *gin.Context) { method notifyChannelIdentsGet (line 145) | func (rt *Router) notifyChannelIdentsGet(c *gin.Context) { method flashDutyNotifyChannelsGet (line 168) | func (rt *Router) flashDutyNotifyChannelsGet(c *gin.Context) { type flushDutyChannelsResponse (line 193) | type flushDutyChannelsResponse struct type FlashDutyChannel (line 204) | type FlashDutyChannel struct function getFlashDutyChannels (line 211) | func getFlashDutyChannels(integrationUrl string, jsonData []byte, timeou... function parseIntegrationUrl (line 257) | func parseIntegrationUrl(urlStr string) (baseUrl string, integrationKey ... method pagerDutyNotifyServicesGet (line 273) | func (rt *Router) pagerDutyNotifyServicesGet(c *gin.Context) { method pagerDutyIntegrationKeyGet (line 302) | func (rt *Router) pagerDutyIntegrationKeyGet(c *gin.Context) { type PagerDutyIntegration (line 323) | type PagerDutyIntegration struct type PagerDutyService (line 330) | type PagerDutyService struct function getPagerDutyServices (line 337) | func getPagerDutyServices(apiKey string, timeout time.Duration) ([]Pager... function getPagerDutyIntegrationKey (line 387) | func getPagerDutyIntegrationKey(integrationUrl, apiKey string, timeout t... FILE: center/router/router_notify_channel_test.go function TestGetFlashDutyChannels (line 8) | func TestGetFlashDutyChannels(t *testing.T) { FILE: center/router/router_notify_config.go method webhookGets (line 20) | func (rt *Router) webhookGets(c *gin.Context) { method webhookPuts (line 33) | func (rt *Router) webhookPuts(c *gin.Context) { method notifyScriptGet (line 52) | func (rt *Router) notifyScriptGet(c *gin.Context) { method notifyScriptPut (line 66) | func (rt *Router) notifyScriptPut(c *gin.Context) { method notifyChannelGets (line 76) | func (rt *Router) notifyChannelGets(c *gin.Context) { method notifyChannelPuts (line 89) | func (rt *Router) notifyChannelPuts(c *gin.Context) { method notifyContactGets (line 113) | func (rt *Router) notifyContactGets(c *gin.Context) { method notifyContactPuts (line 127) | func (rt *Router) notifyContactPuts(c *gin.Context) { method notifyConfigGet (line 137) | func (rt *Router) notifyConfigGet(c *gin.Context) { method notifyConfigPut (line 151) | func (rt *Router) notifyConfigPut(c *gin.Context) { function SmtpValidate (line 177) | func SmtpValidate(text string) (aconf.SMTPConfig, error) { type form (line 191) | type form struct method attemptSendEmail (line 197) | func (rt *Router) attemptSendEmail(c *gin.Context) { method notifyChannelConfigGets (line 217) | func (rt *Router) notifyChannelConfigGets(c *gin.Context) { FILE: center/router/router_notify_rule.go method notifyRulesAdd (line 19) | func (rt *Router) notifyRulesAdd(c *gin.Context) { method notifyRulesDel (line 49) | func (rt *Router) notifyRulesDel(c *gin.Context) { method notifyRulePut (line 70) | func (rt *Router) notifyRulePut(c *gin.Context) { method notifyRuleGet (line 91) | func (rt *Router) notifyRuleGet(c *gin.Context) { method notifyRulesGetByService (line 110) | func (rt *Router) notifyRulesGetByService(c *gin.Context) { method notifyRulesGet (line 114) | func (rt *Router) notifyRulesGet(c *gin.Context) { type NotifyTestForm (line 136) | type NotifyTestForm struct method notifyTest (line 141) | func (rt *Router) notifyTest(c *gin.Context) { function SendNotifyChannelMessage (line 171) | func SendNotifyChannelMessage(ctx *ctx.Context, userCache *memsto.UserCa... type paramList (line 292) | type paramList struct method notifyRuleCustomParamsGet (line 298) | func (rt *Router) notifyRuleCustomParamsGet(c *gin.Context) { FILE: center/router/router_notify_tpl.go method notifyTplGets (line 20) | func (rt *Router) notifyTplGets(c *gin.Context) { method notifyTplUpdateContent (line 40) | func (rt *Router) notifyTplUpdateContent(c *gin.Context) { method notifyTplUpdate (line 60) | func (rt *Router) notifyTplUpdate(c *gin.Context) { function templateValidate (line 87) | func templateValidate(f models.NotifyTpl) error { method notifyTplPreview (line 121) | func (rt *Router) notifyTplPreview(c *gin.Context) { method notifyTplAdd (line 164) | func (rt *Router) notifyTplAdd(c *gin.Context) { method notifyTplDel (line 185) | func (rt *Router) notifyTplDel(c *gin.Context) { method messageTemplateGets (line 200) | func (rt *Router) messageTemplateGets(c *gin.Context) { FILE: center/router/router_opensearch.go method QueryOSIndices (line 12) | func (rt *Router) QueryOSIndices(c *gin.Context) { method QueryOSFields (line 28) | func (rt *Router) QueryOSFields(c *gin.Context) { method QueryOSVariable (line 44) | func (rt *Router) QueryOSVariable(c *gin.Context) { FILE: center/router/router_proxy.go type QueryFormItem (line 26) | type QueryFormItem struct type BatchQueryForm (line 33) | type BatchQueryForm struct method promBatchQueryRange (line 38) | func (rt *Router) promBatchQueryRange(c *gin.Context) { function PromBatchQueryRange (line 46) | func PromBatchQueryRange(ctx context.Context, pc *prom.PromClientMap, f ... type BatchInstantForm (line 73) | type BatchInstantForm struct type InstantFormItem (line 78) | type InstantFormItem struct method promBatchQueryInstant (line 83) | func (rt *Router) promBatchQueryInstant(c *gin.Context) { function PromBatchQueryInstant (line 91) | func PromBatchQueryInstant(ctx context.Context, pc *prom.PromClientMap, ... method dsProxy (line 112) | func (rt *Router) dsProxy(c *gin.Context) { function transportGet (line 220) | func transportGet(dsid, newUpdatedAt int64) (http.RoundTripper, bool) { function transportPut (line 248) | func transportPut(dsid, updatedat int64, tran http.RoundTripper) { constant DatasourceTypePrometheus (line 256) | DatasourceTypePrometheus = "Prometheus" constant DatasourceTypeVictoriaMetrics (line 257) | DatasourceTypeVictoriaMetrics = "VictoriaMetrics" type deleteDatasourceSeriesForm (line 260) | type deleteDatasourceSeriesForm struct method deleteDatasourceSeries (line 267) | func (rt *Router) deleteDatasourceSeries(c *gin.Context) { FILE: center/router/router_query.go type CheckDsPermFunc (line 16) | type CheckDsPermFunc type QueryFrom (line 23) | type QueryFrom struct type Query (line 28) | type Query struct type Exp (line 35) | type Exp struct type LogResp (line 40) | type LogResp struct function QueryLogBatchConcurrently (line 45) | func QueryLogBatchConcurrently(anonymousAccess bool, ctx *gin.Context, f... method QueryLogBatch (line 108) | func (rt *Router) QueryLogBatch(c *gin.Context) { function QueryDataConcurrently (line 120) | func QueryDataConcurrently(anonymousAccess bool, ctx *gin.Context, f mod... method QueryData (line 179) | func (rt *Router) QueryData(c *gin.Context) { function QueryLogConcurrently (line 192) | func QueryLogConcurrently(anonymousAccess bool, ctx *gin.Context, f mode... method QueryLogV2 (line 245) | func (rt *Router) QueryLogV2(c *gin.Context) { method QueryLog (line 253) | func (rt *Router) QueryLog(c *gin.Context) { FILE: center/router/router_recording_rule.go method recordingRuleGets (line 15) | func (rt *Router) recordingRuleGets(c *gin.Context) { method recordingRuleGetsByGids (line 24) | func (rt *Router) recordingRuleGetsByGids(c *gin.Context) { method recordingRuleGetsByService (line 51) | func (rt *Router) recordingRuleGetsByService(c *gin.Context) { method recordingRuleGet (line 56) | func (rt *Router) recordingRuleGet(c *gin.Context) { method recordingRuleAddByFE (line 70) | func (rt *Router) recordingRuleAddByFE(c *gin.Context) { method recordingRulePutByFE (line 107) | func (rt *Router) recordingRulePutByFE(c *gin.Context) { method recordingRuleDel (line 128) | func (rt *Router) recordingRuleDel(c *gin.Context) { type recordRuleFieldForm (line 137) | type recordRuleFieldForm struct method recordingRulePutFields (line 142) | func (rt *Router) recordingRulePutFields(c *gin.Context) { FILE: center/router/router_role.go method rolesGets (line 14) | func (rt *Router) rolesGets(c *gin.Context) { method permsGets (line 19) | func (rt *Router) permsGets(c *gin.Context) { method roleAdd (line 37) | func (rt *Router) roleAdd(c *gin.Context) { method rolePut (line 46) | func (rt *Router) rolePut(c *gin.Context) { method roleDel (line 76) | func (rt *Router) roleDel(c *gin.Context) { method roleGets (line 94) | func (rt *Router) roleGets(c *gin.Context) { method allPerms (line 99) | func (rt *Router) allPerms(c *gin.Context) { FILE: center/router/router_role_operation.go method operationOfRole (line 13) | func (rt *Router) operationOfRole(c *gin.Context) { method roleBindOperation (line 42) | func (rt *Router) roleBindOperation(c *gin.Context) { method operations (line 60) | func (rt *Router) operations(c *gin.Context) { FILE: center/router/router_saved_view.go method savedViewGets (line 13) | func (rt *Router) savedViewGets(c *gin.Context) { method savedViewAdd (line 62) | func (rt *Router) savedViewAdd(c *gin.Context) { method savedViewPut (line 75) | func (rt *Router) savedViewPut(c *gin.Context) { method savedViewDel (line 107) | func (rt *Router) savedViewDel(c *gin.Context) { method savedViewFavoriteAdd (line 131) | func (rt *Router) savedViewFavoriteAdd(c *gin.Context) { method savedViewFavoriteDel (line 139) | func (rt *Router) savedViewFavoriteDel(c *gin.Context) { FILE: center/router/router_self.go method selfProfileGet (line 15) | func (rt *Router) selfProfileGet(c *gin.Context) { type selfProfileForm (line 23) | type selfProfileForm struct method selfProfilePut (line 31) | func (rt *Router) selfProfilePut(c *gin.Context) { type selfPasswordForm (line 55) | type selfPasswordForm struct method selfPasswordPut (line 60) | func (rt *Router) selfPasswordPut(c *gin.Context) { type tokenForm (line 87) | type tokenForm struct method getToken (line 92) | func (rt *Router) getToken(c *gin.Context) { method addToken (line 98) | func (rt *Router) addToken(c *gin.Context) { method deleteToken (line 118) | func (rt *Router) deleteToken(c *gin.Context) { FILE: center/router/router_server.go method serversGet (line 12) | func (rt *Router) serversGet(c *gin.Context) { method serverClustersGet (line 17) | func (rt *Router) serverClustersGet(c *gin.Context) { method serverHeartbeat (line 22) | func (rt *Router) serverHeartbeat(c *gin.Context) { method serversActive (line 29) | func (rt *Router) serversActive(c *gin.Context) { FILE: center/router/router_source_token.go method sourceTokenAdd (line 15) | func (rt *Router) sourceTokenAdd(c *gin.Context) { FILE: center/router/router_target.go type TargetQuery (line 23) | type TargetQuery struct method targetGetsByHostFilter (line 29) | func (rt *Router) targetGetsByHostFilter(c *gin.Context) { method targetGets (line 57) | func (rt *Router) targetGets(c *gin.Context) { method downtimeFilter (line 183) | func (rt *Router) downtimeFilter(downtime int64) (option models.BuildTar... method targetExtendInfoByIdent (line 215) | func (rt *Router) targetExtendInfoByIdent(c *gin.Context) { method targetGetsByService (line 236) | func (rt *Router) targetGetsByService(c *gin.Context) { method targetGetTags (line 241) | func (rt *Router) targetGetTags(c *gin.Context) { type targetTagsForm (line 249) | type targetTagsForm struct method targetBindTagsByFE (line 255) | func (rt *Router) targetBindTagsByFE(c *gin.Context) { method targetBindTagsByService (line 275) | func (rt *Router) targetBindTagsByService(c *gin.Context) { method targetBindTags (line 293) | func (rt *Router) targetBindTags(f targetTagsForm, failedIdents map[stri... method validateTags (line 315) | func (rt *Router) validateTags(tags []string) error { method addTagsToTarget (line 347) | func (rt *Router) addTagsToTarget(target *models.Target, tags []string) ... method targetUnbindTagsByFE (line 358) | func (rt *Router) targetUnbindTagsByFE(c *gin.Context) { method targetUnbindTagsByService (line 378) | func (rt *Router) targetUnbindTagsByService(c *gin.Context) { method targetUnbindTags (line 396) | func (rt *Router) targetUnbindTags(f targetTagsForm, failedIdents map[st... type targetNoteForm (line 415) | type targetNoteForm struct method targetUpdateNote (line 421) | func (rt *Router) targetUpdateNote(c *gin.Context) { method targetUpdateNoteByService (line 442) | func (rt *Router) targetUpdateNoteByService(c *gin.Context) { type targetBgidForm (line 461) | type targetBgidForm struct type targetBgidsForm (line 467) | type targetBgidsForm struct function haveNeverGroupedIdent (line 475) | func haveNeverGroupedIdent(ctx *ctx.Context, idents []string) (bool, err... method targetBindBgids (line 490) | func (rt *Router) targetBindBgids(c *gin.Context) { method targetUpdateBgidByService (line 556) | func (rt *Router) targetUpdateBgidByService(c *gin.Context) { type identsForm (line 575) | type identsForm struct method targetDel (line 580) | func (rt *Router) targetDel(c *gin.Context) { method targetDelByService (line 599) | func (rt *Router) targetDelByService(c *gin.Context) { method checkTargetPerm (line 618) | func (rt *Router) checkTargetPerm(c *gin.Context, idents []string) { method targetsOfAlertRule (line 628) | func (rt *Router) targetsOfAlertRule(c *gin.Context) { method checkTargetsExistByIndent (line 646) | func (rt *Router) checkTargetsExistByIndent(idents []string) { method targetsOfHostQuery (line 655) | func (rt *Router) targetsOfHostQuery(c *gin.Context) { method targetStats (line 670) | func (rt *Router) targetStats(c *gin.Context) { function usageBucket (line 755) | func usageBucket(val float64) string { method targetUpdate (line 770) | func (rt *Router) targetUpdate(c *gin.Context) { FILE: center/router/router_task.go method taskGets (line 16) | func (rt *Router) taskGets(c *gin.Context) { method taskGetsByGids (line 43) | func (rt *Router) taskGetsByGids(c *gin.Context) { method taskRecordAdd (line 88) | func (rt *Router) taskRecordAdd(c *gin.Context) { method taskAdd (line 94) | func (rt *Router) taskAdd(c *gin.Context) { FILE: center/router/router_task_tpl.go method taskTplGets (line 18) | func (rt *Router) taskTplGets(c *gin.Context) { method taskTplGetsByGids (line 36) | func (rt *Router) taskTplGetsByGids(c *gin.Context) { method taskTplGet (line 72) | func (rt *Router) taskTplGet(c *gin.Context) { method taskTplGetByService (line 90) | func (rt *Router) taskTplGetByService(c *gin.Context) { method taskTplGetsByService (line 103) | func (rt *Router) taskTplGetsByService(c *gin.Context) { method taskTplStatistics (line 107) | func (rt *Router) taskTplStatistics(c *gin.Context) { type taskTplForm (line 111) | type taskTplForm struct method Verify (line 124) | func (f *taskTplForm) Verify() { method taskTplAdd (line 136) | func (rt *Router) taskTplAdd(c *gin.Context) { method taskTplPut (line 173) | func (rt *Router) taskTplPut(c *gin.Context) { method taskTplDel (line 209) | func (rt *Router) taskTplDel(c *gin.Context) { type tplTagsForm (line 230) | type tplTagsForm struct method Verify (line 235) | func (f *tplTagsForm) Verify() { method taskTplBindTags (line 264) | func (rt *Router) taskTplBindTags(c *gin.Context) { method taskTplUnbindTags (line 285) | func (rt *Router) taskTplUnbindTags(c *gin.Context) { FILE: center/router/router_tdengine.go type databasesQueryForm (line 15) | type databasesQueryForm struct method tdengineDatabases (line 20) | func (rt *Router) tdengineDatabases(c *gin.Context) { type tablesQueryForm (line 34) | type tablesQueryForm struct type Column (line 41) | type Column struct method tdengineTables (line 48) | func (rt *Router) tdengineTables(c *gin.Context) { type columnsQueryForm (line 67) | type columnsQueryForm struct method tdengineColumns (line 74) | func (rt *Router) tdengineColumns(c *gin.Context) { method QuerySqlTemplate (line 102) | func (rt *Router) QuerySqlTemplate(c *gin.Context) { FILE: center/router/router_trace_logs.go method traceLogsPage (line 19) | func (rt *Router) traceLogsPage(c *gin.Context) { method traceLogsJSON (line 45) | func (rt *Router) traceLogsJSON(c *gin.Context) { method getTraceLogs (line 62) | func (rt *Router) getTraceLogs(traceId string) ([]string, string, error) { method forwardTraceLogs (line 100) | func (rt *Router) forwardTraceLogs(node, traceId string) ([]string, stri... FILE: center/router/router_user.go method userBusiGroupsGets (line 19) | func (rt *Router) userBusiGroupsGets(c *gin.Context) { method userFindAll (line 41) | func (rt *Router) userFindAll(c *gin.Context) { method userGets (line 46) | func (rt *Router) userGets(c *gin.Context) { type userAddForm (line 84) | type userAddForm struct method userAddPost (line 95) | func (rt *Router) userAddPost(c *gin.Context) { method userProfileGet (line 136) | func (rt *Router) userProfileGet(c *gin.Context) { type userProfileForm (line 141) | type userProfileForm struct method userProfilePutByService (line 149) | func (rt *Router) userProfilePutByService(c *gin.Context) { method userProfilePut (line 173) | func (rt *Router) userProfilePut(c *gin.Context) { type userPasswordForm (line 201) | type userPasswordForm struct method userPasswordPut (line 205) | func (rt *Router) userPasswordPut(c *gin.Context) { method userDel (line 228) | func (rt *Router) userDel(c *gin.Context) { method installDateGet (line 251) | func (rt *Router) installDateGet(c *gin.Context) { method usersPhoneEncrypt (line 269) | func (rt *Router) usersPhoneEncrypt(c *gin.Context) { method usersPhoneDecryptRefresh (line 358) | func (rt *Router) usersPhoneDecryptRefresh(c *gin.Context) { method usersPhoneDecrypt (line 369) | func (rt *Router) usersPhoneDecrypt(c *gin.Context) { function isPhoneEncrypted (line 470) | func isPhoneEncrypted(phone string) bool { FILE: center/router/router_user_group.go method checkBusiGroupPerm (line 16) | func (rt *Router) checkBusiGroupPerm(c *gin.Context) { method userGroupGets (line 24) | func (rt *Router) userGroupGets(c *gin.Context) { method userGroupGetsByService (line 37) | func (rt *Router) userGroupGetsByService(c *gin.Context) { method userGroupMemberGetsByService (line 71) | func (rt *Router) userGroupMemberGetsByService(c *gin.Context) { type userGroupForm (line 76) | type userGroupForm struct method userGroupAdd (line 82) | func (rt *Router) userGroupAdd(c *gin.Context) { method userGroupPut (line 111) | func (rt *Router) userGroupPut(c *gin.Context) { method userGroupGet (line 143) | func (rt *Router) userGroupGet(c *gin.Context) { method userGroupDel (line 158) | func (rt *Router) userGroupDel(c *gin.Context) { method userGroupMemberAdd (line 174) | func (rt *Router) userGroupMemberAdd(c *gin.Context) { method userGroupMemberDel (line 200) | func (rt *Router) userGroupMemberDel(c *gin.Context) { FILE: center/router/router_user_variable_config.go method userVariableConfigGets (line 13) | func (rt *Router) userVariableConfigGets(context *gin.Context) { method userVariableConfigAdd (line 17) | func (rt *Router) userVariableConfigAdd(context *gin.Context) { method userVariableConfigPut (line 32) | func (rt *Router) userVariableConfigPut(context *gin.Context) { method userVariableConfigDel (line 49) | func (rt *Router) userVariableConfigDel(context *gin.Context) { method userVariableGetDecryptByService (line 67) | func (rt *Router) userVariableGetDecryptByService(context *gin.Context) { FILE: center/sso/init.go type SsoClient (line 25) | type SsoClient struct method reload (line 224) | func (s *SsoClient) reload(ctx *ctx.Context) error { method Reload (line 324) | func (s *SsoClient) Reload(ctx *ctx.Context) { constant LDAP (line 37) | LDAP = ` constant OAuth2 (line 64) | OAuth2 = ` constant CAS (line 88) | CAS = ` constant OIDC (line 105) | OIDC = ` function Init (line 124) | func Init(center cconf.Center, ctx *ctx.Context, configCache *memsto.Con... FILE: center/sso/sync.go method SyncSsoUsers (line 10) | func (s *SsoClient) SyncSsoUsers(ctx *ctx.Context) { method loopSyncSsoUsers (line 22) | func (s *SsoClient) loopSyncSsoUsers(ctx *ctx.Context) { FILE: cli/cli.go function Upgrade (line 7) | func Upgrade(configFile string) error { FILE: cli/upgrade/config.go type Config (line 13) | type Config struct type ClusterOptions (line 18) | type ClusterOptions struct function Parse (line 36) | func Parse(fpath string, configPtr *Config) error { FILE: cli/upgrade/upgrade.go function Upgrade (line 12) | func Upgrade(configFile string) error { FILE: cli/upgrade/upgrade.sql type `datasource` (line 55) | CREATE TABLE `datasource` type `builtin_cate` (line 79) | CREATE TABLE `builtin_cate` ( type `notify_tpl` (line 86) | CREATE TABLE `notify_tpl` ( type `sso_config` (line 95) | CREATE TABLE `sso_config` ( FILE: cmd/alert/main.go function main (line 24) | func main() { function printEnv (line 63) | func printEnv() { FILE: cmd/center/main.go function main (line 25) | func main() { function printEnv (line 66) | func printEnv() { FILE: cmd/cli/main.go function main (line 18) | func main() { FILE: cmd/edge/edge.go function Initialize (line 30) | func Initialize(configDir string, cryptoKey string) (func(), error) { FILE: cmd/edge/main.go function main (line 23) | func main() { function printEnv (line 62) | func printEnv() { FILE: cmd/pushgw/main.go function main (line 24) | func main() { function printEnv (line 63) | func printEnv() { FILE: conf/conf.go type ConfigType (line 19) | type ConfigType struct type CenterApi (line 33) | type CenterApi struct type GlobalConfig (line 40) | type GlobalConfig struct type Ibex (line 44) | type Ibex struct type Output (line 50) | type Output struct function InitConfig (line 55) | func InitConfig(configDir, cryptoKey string) (*ConfigType, error) { function GetOutboundIP (line 94) | func GetOutboundIP() net.IP { FILE: conf/crypto.go function decryptConfig (line 9) | func decryptConfig(config *ConfigType, cryptoKey string) error { FILE: cron/clean_notify_record.go function cleanNotifyRecord (line 13) | func cleanNotifyRecord(ctx *ctx.Context, day int) { function CleanNotifyRecord (line 23) | func CleanNotifyRecord(ctx *ctx.Context, day int) { FILE: cron/clean_pipeline_execution.go constant defaultBatchSize (line 14) | defaultBatchSize = 100 constant defaultSleepMs (line 15) | defaultSleepMs = 10 function cleanPipelineExecutionInBatches (line 19) | func cleanPipelineExecutionInBatches(ctx *ctx.Context, day int) { function CleanPipelineExecution (line 50) | func CleanPipelineExecution(ctx *ctx.Context, day int) { FILE: datasource/ck/clickhouse.go constant CKType (line 20) | CKType = "ck" constant TimeFieldFormatEpochMilli (line 22) | TimeFieldFormatEpochMilli = "epoch_millis" constant TimeFieldFormatEpochSecond (line 23) | TimeFieldFormatEpochSecond = "epoch_second" constant DefaultLimit (line 25) | DefaultLimit = 500 function init (line 53) | func init() { type CKShard (line 57) | type CKShard struct type QueryParam (line 65) | type QueryParam struct type Clickhouse (line 78) | type Clickhouse struct method Init (line 82) | func (c *Clickhouse) Init(settings map[string]interface{}) (datasource... method InitClient (line 88) | func (c *Clickhouse) InitClient() error { method Validate (line 92) | func (c *Clickhouse) Validate(ctx context.Context) error { method Equal (line 114) | func (c *Clickhouse) Equal(p datasource.Datasource) bool { method MakeLogQuery (line 150) | func (c *Clickhouse) MakeLogQuery(ctx context.Context, query interface... method MakeTSQuery (line 154) | func (c *Clickhouse) MakeTSQuery(ctx context.Context, query interface{... method QueryMapData (line 158) | func (c *Clickhouse) QueryMapData(ctx context.Context, query interface... method QueryData (line 162) | func (c *Clickhouse) QueryData(ctx context.Context, query interface{})... method QueryLog (line 198) | func (c *Clickhouse) QueryLog(ctx context.Context, query interface{}) ... function getLimit (line 228) | func getLimit(rowLen, pLimit int) int { FILE: datasource/commons/eslike/eslike.go type FixedField (line 23) | type FixedField constant FieldIndex (line 26) | FieldIndex FixedField = "_index" constant FieldId (line 27) | FieldId FixedField = "_id" constant LabelSeparator (line 32) | LabelSeparator = "\x1e" type Query (line 34) | type Query struct type SortField (line 57) | type SortField struct type SearchAfter (line 62) | type SearchAfter struct type MetricAggr (line 67) | type MetricAggr struct type GroupBy (line 73) | type GroupBy struct type SearchFunc (line 85) | type SearchFunc type QueryFieldsFunc (line 86) | type QueryFieldsFunc type GroupByCate (line 89) | type GroupByCate constant Filters (line 92) | Filters GroupByCate = "filters" constant Histogram (line 93) | Histogram GroupByCate = "histogram" constant Terms (line 94) | Terms GroupByCate = "terms" type Param (line 98) | type Param struct type MetricPtr (line 103) | type MetricPtr struct function IterGetMap (line 107) | func IterGetMap(m, ret map[string]interface{}, prefixKey string) { function TransferData (line 124) | func TransferData(metric, ref string, m map[string][][]float64) []models... function GetQueryString (line 157) | func GetQueryString(filter string, q *elastic.RangeQuery) *elastic.BoolQ... function getUnixTs (line 172) | func getUnixTs(timeStr string) int64 { function GetBuckets (line 186) | func GetBuckets(labelKey string, keys []string, arr []interface{}, metri... function MakeLogQuery (line 292) | func MakeLogQuery(ctx context.Context, query interface{}, eventTags []st... function MakeTSQuery (line 319) | func MakeTSQuery(ctx context.Context, query interface{}, eventTags []str... function SetEsIndexPatternCacheType (line 347) | func SetEsIndexPatternCacheType(c *memsto.EsIndexPatternCacheType) { function GetEsIndexPatternCacheType (line 351) | func GetEsIndexPatternCacheType() *memsto.EsIndexPatternCacheType { function QueryData (line 355) | func QueryData(ctx context.Context, queryParam interface{}, cliTimeout i... function checkShardFailures (line 628) | func checkShardFailures(ctx context.Context, shards *elastic.ShardsInfo,... function HitFilter (line 661) | func HitFilter(typ string) bool { function QueryLog (line 670) | func QueryLog(ctx context.Context, queryParam interface{}, timeout int64... FILE: datasource/datasource.go type DatasourceType (line 11) | type DatasourceType struct type Keys (line 18) | type Keys struct function init (line 27) | func init() { type NewDatasourceFn (line 79) | type NewDatasourceFn type Datasource (line 83) | type Datasource interface function RegisterDatasource (line 97) | func RegisterDatasource(typ string, p Datasource) { function GetDatasourceByType (line 104) | func GetDatasourceByType(typ string, settings map[string]interface{}) (D... type DatasourceInfo (line 119) | type DatasourceInfo struct FILE: datasource/doris/doris.go constant DorisType (line 22) | DorisType = "doris" function init (line 25) | func init() { type Doris (line 29) | type Doris struct method InitClient (line 48) | func (d *Doris) InitClient() error { method Init (line 58) | func (d *Doris) Init(settings map[string]interface{}) (datasource.Data... method Validate (line 64) | func (d *Doris) Validate(ctx context.Context) error { method Equal (line 77) | func (d *Doris) Equal(p datasource.Datasource) bool { method MakeLogQuery (line 99) | func (d *Doris) MakeLogQuery(ctx context.Context, query interface{}, e... method MakeTSQuery (line 103) | func (d *Doris) MakeTSQuery(ctx context.Context, query interface{}, ev... method QueryMapData (line 107) | func (d *Doris) QueryMapData(ctx context.Context, query interface{}) (... method QueryData (line 111) | func (d *Doris) QueryData(ctx context.Context, query interface{}) ([]m... method QueryLog (line 182) | func (d *Doris) QueryLog(ctx context.Context, query interface{}) ([]in... method DescribeTable (line 224) | func (d *Doris) DescribeTable(ctx context.Context, query interface{}) ... type QueryParam (line 33) | type QueryParam struct FILE: datasource/es/es.go constant ESType (line 27) | ESType = "elasticsearch" type Elasticsearch (line 30) | type Elasticsearch struct method Init (line 59) | func (e *Elasticsearch) Init(settings map[string]interface{}) (datasou... method InitClient (line 65) | func (e *Elasticsearch) InitClient() error { method Equal (line 117) | func (e *Elasticsearch) Equal(other datasource.Datasource) bool { method Validate (line 147) | func (e *Elasticsearch) Validate(ctx context.Context) (err error) { method MakeLogQuery (line 178) | func (e *Elasticsearch) MakeLogQuery(ctx context.Context, query interf... method MakeTSQuery (line 182) | func (e *Elasticsearch) MakeTSQuery(ctx context.Context, query interfa... method QueryData (line 186) | func (e *Elasticsearch) QueryData(ctx context.Context, queryParam inte... method QueryIndices (line 199) | func (e *Elasticsearch) QueryIndices() ([]string, error) { method QueryFields (line 205) | func (e *Elasticsearch) QueryFields(indexes []string) ([]string, error) { method QueryLog (line 251) | func (e *Elasticsearch) QueryLog(ctx context.Context, queryParam inter... method QueryFieldValue (line 277) | func (e *Elasticsearch) QueryFieldValue(indexes []string, field string... method Test (line 306) | func (e *Elasticsearch) Test(ctx context.Context) (err error) { method QueryMapData (line 359) | func (e *Elasticsearch) QueryMapData(ctx context.Context, query interf... type TLS (line 45) | type TLS struct type BasicAuth (line 49) | type BasicAuth struct function init (line 55) | func init() { function getFieldType (line 341) | func getFieldType(key string, m map[string]interface{}) string { FILE: datasource/mysql/mysql.go constant MySQLType (line 23) | MySQLType = "mysql" function init (line 26) | func init() { type MySQL (line 30) | type MySQL struct method InitClient (line 44) | func (m *MySQL) InitClient() error { method Init (line 54) | func (m *MySQL) Init(settings map[string]interface{}) (datasource.Data... method Validate (line 60) | func (m *MySQL) Validate(ctx context.Context) error { method Equal (line 73) | func (m *MySQL) Equal(p datasource.Datasource) bool { method MakeLogQuery (line 122) | func (m *MySQL) MakeLogQuery(ctx context.Context, query interface{}, e... method MakeTSQuery (line 126) | func (m *MySQL) MakeTSQuery(ctx context.Context, query interface{}, ev... method QueryMapData (line 130) | func (m *MySQL) QueryMapData(ctx context.Context, query interface{}) (... method QueryData (line 134) | func (m *MySQL) QueryData(ctx context.Context, query interface{}) ([]m... method QueryLog (line 185) | func (m *MySQL) QueryLog(ctx context.Context, query interface{}) ([]in... method DescribeTable (line 223) | func (m *MySQL) DescribeTable(ctx context.Context, query interface{}) ... type QueryParam (line 34) | type QueryParam struct FILE: datasource/opensearch/opensearch.go constant OpenSearchType (line 30) | OpenSearchType = "opensearch" type OpenSearch (line 33) | type OpenSearch struct method Init (line 61) | func (os *OpenSearch) Init(settings map[string]interface{}) (datasourc... method InitClient (line 67) | func (os *OpenSearch) InitClient() error { method Equal (line 115) | func (os *OpenSearch) Equal(other datasource.Datasource) bool { method Validate (line 146) | func (os *OpenSearch) Validate(ctx context.Context) (err error) { method MakeLogQuery (line 182) | func (os *OpenSearch) MakeLogQuery(ctx context.Context, query interfac... method MakeTSQuery (line 186) | func (os *OpenSearch) MakeTSQuery(ctx context.Context, query interface... method QueryData (line 233) | func (os *OpenSearch) QueryData(ctx context.Context, queryParam interf... method QueryIndices (line 242) | func (os *OpenSearch) QueryIndices() ([]string, error) { method QueryFields (line 276) | func (os *OpenSearch) QueryFields(indices []string) ([]string, error) { method QueryLog (line 363) | func (os *OpenSearch) QueryLog(ctx context.Context, queryParam interfa... method QueryFieldValue (line 372) | func (os *OpenSearch) QueryFieldValue(indexes []string, field string, ... method QueryMapData (line 399) | func (os *OpenSearch) QueryMapData(ctx context.Context, query interfac... type TLS (line 47) | type TLS struct type BasicAuth (line 51) | type BasicAuth struct function init (line 57) | func init() { function search (line 190) | func search(ctx context.Context, indices []string, source interface{}, t... function propertyMappingRange (line 332) | func propertyMappingRange(v interface{}, depth int) (fields []string) { FILE: datasource/postgresql/postgresql.go constant PostgreSQLType (line 24) | PostgreSQLType = "pgsql" function init (line 31) | func init() { type PostgreSQL (line 35) | type PostgreSQL struct method InitClient (line 49) | func (p *PostgreSQL) InitClient() error { method Init (line 62) | func (p *PostgreSQL) Init(settings map[string]interface{}) (datasource... method Validate (line 68) | func (p *PostgreSQL) Validate(ctx context.Context) error { method Equal (line 81) | func (p *PostgreSQL) Equal(d datasource.Datasource) bool { method ShowDatabases (line 130) | func (p *PostgreSQL) ShowDatabases(ctx context.Context) ([]string, err... method ShowTables (line 134) | func (p *PostgreSQL) ShowTables(ctx context.Context, database string) ... method MakeLogQuery (line 149) | func (p *PostgreSQL) MakeLogQuery(ctx context.Context, query interface... method MakeTSQuery (line 153) | func (p *PostgreSQL) MakeTSQuery(ctx context.Context, query interface{... method QueryMapData (line 157) | func (p *PostgreSQL) QueryMapData(ctx context.Context, query interface... method QueryData (line 161) | func (p *PostgreSQL) QueryData(ctx context.Context, query interface{})... method QueryLog (line 220) | func (p *PostgreSQL) QueryLog(ctx context.Context, query interface{}) ... method DescribeTable (line 265) | func (p *PostgreSQL) DescribeTable(ctx context.Context, query interfac... type QueryParam (line 39) | type QueryParam struct function parseDBName (line 281) | func parseDBName(sql string) (db string, err error) { function formatSQLDatabaseNameWithRegex (line 292) | func formatSQLDatabaseNameWithRegex(sql string) string { function extractColumns (line 300) | func extractColumns(sql string) ([]string, error) { function splitColumns (line 326) | func splitColumns(columnsString string) []string { FILE: datasource/prom/prom.go type Prometheus (line 3) | type Prometheus struct FILE: datasource/tdengine/tdengine.go constant TDEngineType (line 25) | TDEngineType = "tdengine" type TDengine (line 28) | type TDengine struct method Init (line 51) | func (td *TDengine) Init(settings map[string]interface{}) (datasource.... method InitClient (line 57) | func (td *TDengine) InitClient() error { method Equal (line 62) | func (td *TDengine) Equal(other datasource.Datasource) bool { method Validate (line 110) | func (td *TDengine) Validate(ctx context.Context) (err error) { method MakeLogQuery (line 114) | func (td *TDengine) MakeLogQuery(ctx context.Context, query interface{... method MakeTSQuery (line 118) | func (td *TDengine) MakeTSQuery(ctx context.Context, query interface{}... method QueryData (line 122) | func (td *TDengine) QueryData(ctx context.Context, queryParam interfac... method QueryLog (line 126) | func (td *TDengine) QueryLog(ctx context.Context, queryParam interface... method QueryMapData (line 171) | func (td *TDengine) QueryMapData(ctx context.Context, query interface{... method Query (line 175) | func (td *TDengine) Query(ctx context.Context, query interface{}, dela... type TdengineQuery (line 32) | type TdengineQuery struct type Keys (line 41) | type Keys struct function init (line 47) | func init() { function ConvertToTStData (line 222) | func ConvertToTStData(src td.APIResponse, key Keys, ref string) ([]model... function interfaceToFloat64 (line 357) | func interfaceToFloat64(input interface{}) (float64, error) { function parseTimeString (line 385) | func parseTimeString(ts string) (time.Time, error) { function ConvertToTable (line 451) | func ConvertToTable(src td.APIResponse) []interface{} { FILE: datasource/victorialogs/victorialogs.go constant VictoriaLogsType (line 20) | VictoriaLogsType = "victorialogs" type VictoriaLogs (line 24) | type VictoriaLogs struct method Init (line 49) | func (vl *VictoriaLogs) Init(settings map[string]interface{}) (datasou... method InitClient (line 56) | func (vl *VictoriaLogs) InitClient() error { method Validate (line 65) | func (vl *VictoriaLogs) Validate(ctx context.Context) error { method Equal (line 95) | func (vl *VictoriaLogs) Equal(other datasource.Datasource) bool { method QueryLog (line 110) | func (vl *VictoriaLogs) QueryLog(ctx context.Context, queryParam inter... method QueryData (line 138) | func (vl *VictoriaLogs) QueryData(ctx context.Context, queryParam inte... method queryDataInstant (line 152) | func (vl *VictoriaLogs) queryDataInstant(ctx context.Context, param *Q... method queryDataRange (line 170) | func (vl *VictoriaLogs) queryDataRange(ctx context.Context, param *Que... method MakeLogQuery (line 256) | func (vl *VictoriaLogs) MakeLogQuery(ctx context.Context, query interf... method MakeTSQuery (line 284) | func (vl *VictoriaLogs) MakeTSQuery(ctx context.Context, query interfa... method QueryMapData (line 307) | func (vl *VictoriaLogs) QueryMapData(ctx context.Context, query interf... type Query (line 29) | type Query struct method IsInstantQuery (line 40) | func (q *Query) IsInstantQuery() bool { function init (line 44) | func init() { function convertPrometheusInstantToDataResp (line 193) | func convertPrometheusInstantToDataResp(resp *victorialogs.PrometheusRes... function convertPrometheusRangeToDataResp (line 224) | func convertPrometheusRangeToDataResp(resp *victorialogs.PrometheusRespo... FILE: docker/compose-bridge/etc-nightingale/script/notify.bak.py class Sender (line 27) | class Sender(object): method send_email (line 29) | def send_email(cls, payload): method send_wecom (line 60) | def send_wecom(cls, payload): method send_dingtalk (line 91) | def send_dingtalk(cls, payload): method send_feishu (line 137) | def send_feishu(cls, payload): method send_sms (line 176) | def send_sms(cls, payload): method send_voice (line 186) | def send_voice(cls, payload): function main (line 195) | def main(): function hello (line 207) | def hello(): FILE: docker/compose-bridge/etc-nightingale/script/notify.py class Sender (line 6) | class Sender(object): method send_email (line 8) | def send_email(cls, payload): method send_wecom (line 13) | def send_wecom(cls, payload): method send_dingtalk (line 18) | def send_dingtalk(cls, payload): method send_feishu (line 23) | def send_feishu(cls, payload): method send_mm (line 28) | def send_mm(cls, payload): method send_sms (line 33) | def send_sms(cls, payload): method send_voice (line 43) | def send_voice(cls, payload): function main (line 52) | def main(): function hello (line 64) | def hello(): FILE: docker/compose-bridge/etc-nightingale/script/notify_feishu.py class Sender (line 7) | class Sender(object): method send_email (line 9) | def send_email(cls, payload): method send_wecom (line 14) | def send_wecom(cls, payload): method send_dingtalk (line 19) | def send_dingtalk(cls, payload): method send_ifeishu (line 24) | def send_ifeishu(cls, payload): method send_mm (line 59) | def send_mm(cls, payload): method send_sms (line 64) | def send_sms(cls, payload): method send_voice (line 68) | def send_voice(cls, payload): function main (line 71) | def main(): function hello (line 83) | def hello(): FILE: docker/compose-bridge/etc-nightingale/script/rule_converter.py function convert_interval (line 12) | def convert_interval(interval): function convert_alert (line 24) | def convert_alert(rule, interval): function convert_record (line 92) | def convert_record(rule, interval): function deal_group (line 127) | def deal_group(group): function deal_configmap (line 169) | def deal_configmap(rule_configmap): function main (line 184) | def main(): FILE: docker/compose-host-network-metric-log/etc-nightingale/script/notify.bak.py class Sender (line 27) | class Sender(object): method send_email (line 29) | def send_email(cls, payload): method send_wecom (line 60) | def send_wecom(cls, payload): method send_dingtalk (line 91) | def send_dingtalk(cls, payload): method send_feishu (line 137) | def send_feishu(cls, payload): method send_sms (line 176) | def send_sms(cls, payload): method send_voice (line 186) | def send_voice(cls, payload): function main (line 195) | def main(): function hello (line 207) | def hello(): FILE: docker/compose-host-network-metric-log/etc-nightingale/script/notify.py class Sender (line 6) | class Sender(object): method send_email (line 8) | def send_email(cls, payload): method send_wecom (line 13) | def send_wecom(cls, payload): method send_dingtalk (line 18) | def send_dingtalk(cls, payload): method send_feishu (line 23) | def send_feishu(cls, payload): method send_mm (line 28) | def send_mm(cls, payload): method send_sms (line 33) | def send_sms(cls, payload): method send_voice (line 43) | def send_voice(cls, payload): function main (line 52) | def main(): function hello (line 64) | def hello(): FILE: docker/compose-host-network-metric-log/etc-nightingale/script/notify_feishu.py class Sender (line 7) | class Sender(object): method send_email (line 9) | def send_email(cls, payload): method send_wecom (line 14) | def send_wecom(cls, payload): method send_dingtalk (line 19) | def send_dingtalk(cls, payload): method send_ifeishu (line 24) | def send_ifeishu(cls, payload): method send_mm (line 59) | def send_mm(cls, payload): method send_sms (line 64) | def send_sms(cls, payload): method send_voice (line 68) | def send_voice(cls, payload): function main (line 71) | def main(): function hello (line 83) | def hello(): FILE: docker/compose-host-network-metric-log/etc-nightingale/script/rule_converter.py function convert_interval (line 12) | def convert_interval(interval): function convert_alert (line 24) | def convert_alert(rule, interval): function convert_record (line 92) | def convert_record(rule, interval): function deal_group (line 127) | def deal_group(group): function deal_configmap (line 169) | def deal_configmap(rule_configmap): function main (line 184) | def main(): FILE: docker/compose-host-network/etc-nightingale/script/notify.bak.py class Sender (line 27) | class Sender(object): method send_email (line 29) | def send_email(cls, payload): method send_wecom (line 60) | def send_wecom(cls, payload): method send_dingtalk (line 91) | def send_dingtalk(cls, payload): method send_feishu (line 137) | def send_feishu(cls, payload): method send_sms (line 176) | def send_sms(cls, payload): method send_voice (line 186) | def send_voice(cls, payload): function main (line 195) | def main(): function hello (line 207) | def hello(): FILE: docker/compose-host-network/etc-nightingale/script/notify.py class Sender (line 6) | class Sender(object): method send_email (line 8) | def send_email(cls, payload): method send_wecom (line 13) | def send_wecom(cls, payload): method send_dingtalk (line 18) | def send_dingtalk(cls, payload): method send_feishu (line 23) | def send_feishu(cls, payload): method send_mm (line 28) | def send_mm(cls, payload): method send_sms (line 33) | def send_sms(cls, payload): method send_voice (line 43) | def send_voice(cls, payload): function main (line 52) | def main(): function hello (line 64) | def hello(): FILE: docker/compose-host-network/etc-nightingale/script/notify_feishu.py class Sender (line 7) | class Sender(object): method send_email (line 9) | def send_email(cls, payload): method send_wecom (line 14) | def send_wecom(cls, payload): method send_dingtalk (line 19) | def send_dingtalk(cls, payload): method send_ifeishu (line 24) | def send_ifeishu(cls, payload): method send_mm (line 59) | def send_mm(cls, payload): method send_sms (line 64) | def send_sms(cls, payload): method send_voice (line 68) | def send_voice(cls, payload): function main (line 71) | def main(): function hello (line 83) | def hello(): FILE: docker/compose-host-network/etc-nightingale/script/rule_converter.py function convert_interval (line 12) | def convert_interval(interval): function convert_alert (line 24) | def convert_alert(rule, interval): function convert_record (line 92) | def convert_record(rule, interval): function deal_group (line 127) | def deal_group(group): function deal_configmap (line 169) | def deal_configmap(rule_configmap): function main (line 184) | def main(): FILE: docker/compose-postgres/initsql_for_postgres/a-n9e-for-Postgres.sql type users (line 1) | CREATE TABLE users ( type user_group (line 32) | CREATE TABLE user_group ( type user_group_create_by_idx (line 42) | CREATE INDEX user_group_create_by_idx ON user_group (create_by) type user_group_update_at_idx (line 43) | CREATE INDEX user_group_update_at_idx ON user_group (update_at) type user_group_member (line 47) | CREATE TABLE user_group_member ( type user_group_member_group_id_idx (line 53) | CREATE INDEX user_group_member_group_id_idx ON user_group_member (group_id) type user_group_member_user_id_idx (line 54) | CREATE INDEX user_group_member_user_id_idx ON user_group_member (user_id) type configs (line 58) | CREATE TABLE configs ( type role (line 73) | CREATE TABLE role ( type role_operation (line 85) | CREATE TABLE role_operation( type role_operation_role_name_idx (line 91) | CREATE INDEX role_operation_role_name_idx ON role_operation (role_name) type role_operation_operation_idx (line 92) | CREATE INDEX role_operation_operation_idx ON role_operation (operation) type busi_group (line 165) | CREATE TABLE busi_group ( type busi_group_member (line 181) | CREATE TABLE busi_group_member ( type busi_group_member_busi_group_id_idx (line 188) | CREATE INDEX busi_group_member_busi_group_id_idx ON busi_group_member (b... type busi_group_member_user_group_id_idx (line 189) | CREATE INDEX busi_group_member_user_group_id_idx ON busi_group_member (u... type board (line 198) | CREATE TABLE board ( type board_ident_idx (line 216) | CREATE INDEX board_ident_idx ON board (ident) type board_payload (line 227) | CREATE TABLE board_payload ( type dashboard (line 235) | CREATE TABLE dashboard ( type chart_group (line 254) | CREATE TABLE chart_group ( type chart_group_dashboard_id_idx (line 261) | CREATE INDEX chart_group_dashboard_id_idx ON chart_group (dashboard_id) type chart (line 264) | CREATE TABLE chart ( type chart_group_id_idx (line 271) | CREATE INDEX chart_group_id_idx ON chart (group_id) type chart_share (line 275) | CREATE TABLE chart_share ( type chart_share_create_at_idx (line 284) | CREATE INDEX chart_share_create_at_idx ON chart_share (create_at) type alert_rule (line 287) | CREATE TABLE alert_rule ( type alert_rule_group_id_idx (line 327) | CREATE INDEX alert_rule_group_id_idx ON alert_rule (group_id) type alert_rule_update_at_idx (line 328) | CREATE INDEX alert_rule_update_at_idx ON alert_rule (update_at) type alert_mute (line 351) | CREATE TABLE alert_mute ( type alert_mute_group_id_idx (line 373) | CREATE INDEX alert_mute_group_id_idx ON alert_mute (group_id) type alert_mute_update_at_idx (line 374) | CREATE INDEX alert_mute_update_at_idx ON alert_mute (update_at) type alert_subscribe (line 383) | CREATE TABLE alert_subscribe ( type alert_subscribe (line 414) | CREATE INDEX ON alert_subscribe (update_at) type alert_subscribe (line 415) | CREATE INDEX ON alert_subscribe (group_id) type target (line 431) | CREATE TABLE target ( type target (line 447) | CREATE INDEX ON target (group_id) type idx_host_ip (line 448) | CREATE INDEX idx_host_ip ON target (host_ip) type idx_agent_version (line 449) | CREATE INDEX idx_agent_version ON target (agent_version) type idx_engine_name (line 450) | CREATE INDEX idx_engine_name ON target (engine_name) type idx_os (line 451) | CREATE INDEX idx_os ON target (os) type metric_view (line 463) | CREATE TABLE metric_view ( type metric_view_create_by_idx (line 473) | CREATE INDEX metric_view_create_by_idx ON metric_view (create_by) type recording_rule (line 480) | CREATE TABLE recording_rule ( type recording_rule_group_id_idx (line 498) | CREATE INDEX recording_rule_group_id_idx ON recording_rule (group_id) type recording_rule_update_at_idx (line 499) | CREATE INDEX recording_rule_update_at_idx ON recording_rule (update_at) type alert_aggr_view (line 511) | CREATE TABLE alert_aggr_view ( type alert_aggr_view_create_by_idx (line 521) | CREATE INDEX alert_aggr_view_create_by_idx ON alert_aggr_view (create_by) type alert_cur_event (line 529) | CREATE TABLE alert_cur_event ( type alert_cur_event_hash_idx (line 563) | CREATE INDEX alert_cur_event_hash_idx ON alert_cur_event (hash) type alert_cur_event_rule_id_idx (line 564) | CREATE INDEX alert_cur_event_rule_id_idx ON alert_cur_event (rule_id) type alert_cur_event_tg_idx (line 565) | CREATE INDEX alert_cur_event_tg_idx ON alert_cur_event (trigger_time, gr... type alert_cur_event_nrn_idx (line 566) | CREATE INDEX alert_cur_event_nrn_idx ON alert_cur_event (notify_repeat_n... type alert_his_event (line 589) | CREATE TABLE alert_his_event ( type alert_his_event_hash_idx (line 625) | CREATE INDEX alert_his_event_hash_idx ON alert_his_event (hash) type alert_his_event_rule_id_idx (line 626) | CREATE INDEX alert_his_event_rule_id_idx ON alert_his_event (rule_id) type alert_his_event_tg_idx (line 627) | CREATE INDEX alert_his_event_tg_idx ON alert_his_event (trigger_time, gr... type alert_his_event_nrn_idx (line 628) | CREATE INDEX alert_his_event_nrn_idx ON alert_his_event (last_eval_time) type task_tpl (line 649) | CREATE TABLE task_tpl type task_tpl_group_id_idx (line 668) | CREATE INDEX task_tpl_group_id_idx ON task_tpl (group_id) type task_tpl_host (line 673) | CREATE TABLE task_tpl_host type task_tpl_host_id_host_idx (line 680) | CREATE INDEX task_tpl_host_id_host_idx ON task_tpl_host (id, host) type task_record (line 685) | CREATE TABLE task_record type task_record_cg_idx (line 705) | CREATE INDEX task_record_cg_idx ON task_record (create_at, group_id) type task_record_create_by_idx (line 706) | CREATE INDEX task_record_create_by_idx ON task_record (create_by) type task_record_event_id_idx (line 707) | CREATE INDEX task_record_event_id_idx ON task_record (event_id) type alerting_engines (line 712) | CREATE TABLE alerting_engines type datasource (line 726) | CREATE TABLE datasource type builtin_cate (line 751) | CREATE TABLE builtin_cate ( type notify_tpl (line 758) | CREATE TABLE notify_tpl ( type sso_config (line 771) | CREATE TABLE sso_config ( type es_index_pattern (line 781) | CREATE TABLE es_index_pattern ( type builtin_metrics (line 800) | CREATE TABLE builtin_metrics ( type idx_collector (line 821) | CREATE INDEX idx_collector ON builtin_metrics (collector) type idx_typ (line 822) | CREATE INDEX idx_typ ON builtin_metrics (typ) type idx_name (line 823) | CREATE INDEX idx_name ON builtin_metrics (name) type idx_lang (line 824) | CREATE INDEX idx_lang ON builtin_metrics (lang) type metric_filter (line 843) | CREATE TABLE metric_filter ( type idx_metric_filter_name (line 854) | CREATE INDEX idx_metric_filter_name ON metric_filter (name) type board_busigroup (line 856) | CREATE TABLE board_busigroup ( type builtin_components (line 863) | CREATE TABLE builtin_components ( type idx_ident (line 875) | CREATE INDEX idx_ident ON builtin_components (ident) type builtin_payloads (line 877) | CREATE TABLE builtin_payloads ( type idx_component (line 893) | CREATE INDEX idx_component ON builtin_payloads (component) type idx_builtin_payloads_name (line 894) | CREATE INDEX idx_builtin_payloads_name ON builtin_payloads (name) type idx_cate (line 895) | CREATE INDEX idx_cate ON builtin_payloads (cate) type idx_type (line 896) | CREATE INDEX idx_type ON builtin_payloads (type) type dash_annotation (line 899) | CREATE TABLE dash_annotation ( type source_token (line 914) | CREATE TABLE source_token ( type idx_source_token_type_id_token (line 924) | CREATE INDEX idx_source_token_type_id_token ON source_token (source_type... type notification_record (line 926) | CREATE TABLE notification_record ( type idx_evt (line 938) | CREATE INDEX idx_evt ON notification_record (event_id) type target_busi_group (line 948) | CREATE TABLE target_busi_group ( type idx_target_group (line 955) | CREATE UNIQUE INDEX idx_target_group ON target_busi_group (target_ident,... type user_token (line 957) | CREATE TABLE user_token ( type notify_rule (line 966) | CREATE TABLE notify_rule ( type notify_channel (line 980) | CREATE TABLE notify_channel ( type message_template (line 996) | CREATE TABLE message_template ( type event_pipeline (line 1011) | CREATE TABLE event_pipeline ( type embedded_product (line 1026) | CREATE TABLE embedded_product ( FILE: docker/compose-postgres/initsql_for_postgres/b-ibex-for-Postgres.sql type task_meta (line 1) | CREATE TABLE task_meta type task_meta_creator_idx (line 17) | CREATE INDEX task_meta_creator_idx ON task_meta (creator) type task_meta_created_idx (line 18) | CREATE INDEX task_meta_created_idx ON task_meta (created) type task_action (line 21) | CREATE TABLE task_action type task_scheduler (line 29) | CREATE TABLE task_scheduler type task_scheduler_id_scheduler_idx (line 34) | CREATE INDEX task_scheduler_id_scheduler_idx ON task_scheduler (id, sche... type task_scheduler_health (line 37) | CREATE TABLE task_scheduler_health type task_scheduler_health_clock_idx (line 43) | CREATE INDEX task_scheduler_health_clock_idx ON task_scheduler_health (c... type task_host_doing (line 46) | CREATE TABLE task_host_doing type task_host_doing_id_idx (line 53) | CREATE INDEX task_host_doing_id_idx ON task_host_doing (id) type task_host_doing_host_idx (line 54) | CREATE INDEX task_host_doing_host_idx ON task_host_doing (host) type task_host_0 (line 57) | CREATE TABLE task_host_0 type task_host_1 (line 69) | CREATE TABLE task_host_1 type task_host_2 (line 81) | CREATE TABLE task_host_2 type task_host_3 (line 93) | CREATE TABLE task_host_3 type task_host_4 (line 105) | CREATE TABLE task_host_4 type task_host_5 (line 117) | CREATE TABLE task_host_5 type task_host_6 (line 129) | CREATE TABLE task_host_6 type task_host_7 (line 141) | CREATE TABLE task_host_7 type task_host_8 (line 153) | CREATE TABLE task_host_8 type task_host_9 (line 165) | CREATE TABLE task_host_9 type task_host_10 (line 177) | CREATE TABLE task_host_10 type task_host_11 (line 189) | CREATE TABLE task_host_11 type task_host_12 (line 201) | CREATE TABLE task_host_12 type task_host_13 (line 213) | CREATE TABLE task_host_13 type task_host_14 (line 225) | CREATE TABLE task_host_14 type task_host_15 (line 237) | CREATE TABLE task_host_15 type task_host_16 (line 249) | CREATE TABLE task_host_16 type task_host_17 (line 261) | CREATE TABLE task_host_17 type task_host_18 (line 273) | CREATE TABLE task_host_18 type task_host_19 (line 285) | CREATE TABLE task_host_19 type task_host_20 (line 297) | CREATE TABLE task_host_20 type task_host_21 (line 309) | CREATE TABLE task_host_21 type task_host_22 (line 321) | CREATE TABLE task_host_22 type task_host_23 (line 333) | CREATE TABLE task_host_23 type task_host_24 (line 345) | CREATE TABLE task_host_24 type task_host_25 (line 357) | CREATE TABLE task_host_25 type task_host_26 (line 369) | CREATE TABLE task_host_26 type task_host_27 (line 381) | CREATE TABLE task_host_27 type task_host_28 (line 393) | CREATE TABLE task_host_28 type task_host_29 (line 405) | CREATE TABLE task_host_29 type task_host_30 (line 417) | CREATE TABLE task_host_30 type task_host_31 (line 429) | CREATE TABLE task_host_31 type task_host_32 (line 441) | CREATE TABLE task_host_32 type task_host_33 (line 453) | CREATE TABLE task_host_33 type task_host_34 (line 465) | CREATE TABLE task_host_34 type task_host_35 (line 477) | CREATE TABLE task_host_35 type task_host_36 (line 489) | CREATE TABLE task_host_36 type task_host_37 (line 501) | CREATE TABLE task_host_37 type task_host_38 (line 513) | CREATE TABLE task_host_38 type task_host_39 (line 525) | CREATE TABLE task_host_39 type task_host_40 (line 537) | CREATE TABLE task_host_40 type task_host_41 (line 549) | CREATE TABLE task_host_41 type task_host_42 (line 561) | CREATE TABLE task_host_42 type task_host_43 (line 573) | CREATE TABLE task_host_43 type task_host_44 (line 585) | CREATE TABLE task_host_44 type task_host_45 (line 597) | CREATE TABLE task_host_45 type task_host_46 (line 609) | CREATE TABLE task_host_46 type task_host_47 (line 621) | CREATE TABLE task_host_47 type task_host_48 (line 633) | CREATE TABLE task_host_48 type task_host_49 (line 645) | CREATE TABLE task_host_49 type task_host_50 (line 657) | CREATE TABLE task_host_50 type task_host_51 (line 669) | CREATE TABLE task_host_51 type task_host_52 (line 681) | CREATE TABLE task_host_52 type task_host_53 (line 693) | CREATE TABLE task_host_53 type task_host_54 (line 705) | CREATE TABLE task_host_54 type task_host_55 (line 717) | CREATE TABLE task_host_55 type task_host_56 (line 729) | CREATE TABLE task_host_56 type task_host_57 (line 741) | CREATE TABLE task_host_57 type task_host_58 (line 753) | CREATE TABLE task_host_58 type task_host_59 (line 765) | CREATE TABLE task_host_59 type task_host_60 (line 777) | CREATE TABLE task_host_60 type task_host_61 (line 789) | CREATE TABLE task_host_61 type task_host_62 (line 801) | CREATE TABLE task_host_62 type task_host_63 (line 813) | CREATE TABLE task_host_63 type task_host_64 (line 825) | CREATE TABLE task_host_64 type task_host_65 (line 837) | CREATE TABLE task_host_65 type task_host_66 (line 849) | CREATE TABLE task_host_66 type task_host_67 (line 861) | CREATE TABLE task_host_67 type task_host_68 (line 873) | CREATE TABLE task_host_68 type task_host_69 (line 885) | CREATE TABLE task_host_69 type task_host_70 (line 897) | CREATE TABLE task_host_70 type task_host_71 (line 909) | CREATE TABLE task_host_71 type task_host_72 (line 921) | CREATE TABLE task_host_72 type task_host_73 (line 933) | CREATE TABLE task_host_73 type task_host_74 (line 945) | CREATE TABLE task_host_74 type task_host_75 (line 957) | CREATE TABLE task_host_75 type task_host_76 (line 969) | CREATE TABLE task_host_76 type task_host_77 (line 981) | CREATE TABLE task_host_77 type task_host_78 (line 993) | CREATE TABLE task_host_78 type task_host_79 (line 1005) | CREATE TABLE task_host_79 type task_host_80 (line 1017) | CREATE TABLE task_host_80 type task_host_81 (line 1029) | CREATE TABLE task_host_81 type task_host_82 (line 1041) | CREATE TABLE task_host_82 type task_host_83 (line 1053) | CREATE TABLE task_host_83 type task_host_84 (line 1065) | CREATE TABLE task_host_84 type task_host_85 (line 1077) | CREATE TABLE task_host_85 type task_host_86 (line 1089) | CREATE TABLE task_host_86 type task_host_87 (line 1101) | CREATE TABLE task_host_87 type task_host_88 (line 1113) | CREATE TABLE task_host_88 type task_host_89 (line 1125) | CREATE TABLE task_host_89 type task_host_90 (line 1137) | CREATE TABLE task_host_90 type task_host_91 (line 1149) | CREATE TABLE task_host_91 type task_host_92 (line 1161) | CREATE TABLE task_host_92 type task_host_93 (line 1173) | CREATE TABLE task_host_93 type task_host_94 (line 1185) | CREATE TABLE task_host_94 type task_host_95 (line 1197) | CREATE TABLE task_host_95 type task_host_96 (line 1209) | CREATE TABLE task_host_96 type task_host_97 (line 1221) | CREATE TABLE task_host_97 type task_host_98 (line 1233) | CREATE TABLE task_host_98 type task_host_99 (line 1245) | CREATE TABLE task_host_99 FILE: docker/initsql/a-n9e.sql type `users` (line 7) | CREATE TABLE `users` ( type `user_group` (line 30) | CREATE TABLE `user_group` ( type `user_group_member` (line 45) | CREATE TABLE `user_group_member` ( type `configs` (line 56) | CREATE TABLE `configs` ( type `role` (line 70) | CREATE TABLE `role` ( type `role_operation` (line 82) | CREATE TABLE `role_operation`( type `busi_group` (line 154) | CREATE TABLE `busi_group` ( type `busi_group_member` (line 169) | CREATE TABLE `busi_group_member` ( type `board` (line 182) | CREATE TABLE `board` ( type `board_payload` (line 203) | CREATE TABLE `board_payload` ( type `dashboard` (line 210) | CREATE TABLE `dashboard` ( type `chart_group` (line 226) | CREATE TABLE `chart_group` ( type `chart` (line 236) | CREATE TABLE `chart` ( type `chart_share` (line 245) | CREATE TABLE `chart_share` ( type `alert_rule` (line 256) | CREATE TABLE `alert_rule` ( type `alert_mute` (line 303) | CREATE TABLE `alert_mute` ( type `alert_subscribe` (line 328) | CREATE TABLE `alert_subscribe` ( type `target` (line 363) | CREATE TABLE `target` ( type `metric_view` (line 385) | CREATE TABLE `metric_view` ( type `recording_rule` (line 399) | CREATE TABLE `recording_rule` ( type `alert_aggr_view` (line 422) | CREATE TABLE `alert_aggr_view` ( type `alert_cur_event` (line 437) | CREATE TABLE `alert_cur_event` ( type `alert_his_event` (line 478) | CREATE TABLE `alert_his_event` ( type `board_busigroup` (line 521) | CREATE TABLE `board_busigroup` ( type `builtin_components` (line 527) | CREATE TABLE `builtin_components` ( type `builtin_payloads` (line 541) | CREATE TABLE `builtin_payloads` ( type notification_record (line 564) | CREATE TABLE notification_record ( type `task_tpl` (line 577) | CREATE TABLE `task_tpl` type `task_tpl_host` (line 598) | CREATE TABLE `task_tpl_host` type `task_record` (line 607) | CREATE TABLE `task_record` type `alerting_engines` (line 631) | CREATE TABLE `alerting_engines` type `datasource` (line 643) | CREATE TABLE `datasource` type `builtin_cate` (line 668) | CREATE TABLE `builtin_cate` ( type `notify_tpl` (line 675) | CREATE TABLE `notify_tpl` ( type `sso_config` (line 688) | CREATE TABLE `sso_config` ( type `es_index_pattern` (line 697) | CREATE TABLE `es_index_pattern` ( type `builtin_metrics` (line 715) | CREATE TABLE `builtin_metrics` ( type `metric_filter` (line 740) | CREATE TABLE `metric_filter` ( type `target_busi_group` (line 753) | CREATE TABLE `target_busi_group` ( type `dash_annotation` (line 763) | CREATE TABLE `dash_annotation` ( type `user_token` (line 780) | CREATE TABLE `user_token` ( type `notify_rule` (line 791) | CREATE TABLE `notify_rule` ( type `notify_channel` (line 806) | CREATE TABLE `notify_channel` ( type `message_template` (line 823) | CREATE TABLE `message_template` ( type `event_pipeline` (line 839) | CREATE TABLE `event_pipeline` ( type `embedded_product` (line 855) | CREATE TABLE `embedded_product` ( type `task_meta` (line 868) | CREATE TABLE `task_meta` type `task_action` (line 889) | CREATE TABLE `task_action` type `task_scheduler` (line 898) | CREATE TABLE `task_scheduler` type `task_scheduler_health` (line 906) | CREATE TABLE `task_scheduler_health` type `task_host_doing` (line 915) | CREATE TABLE `task_host_doing` type task_host_0 (line 926) | CREATE TABLE task_host_0 type task_host_1 (line 939) | CREATE TABLE task_host_1 type task_host_2 (line 952) | CREATE TABLE task_host_2 type task_host_3 (line 965) | CREATE TABLE task_host_3 type task_host_4 (line 978) | CREATE TABLE task_host_4 type task_host_5 (line 991) | CREATE TABLE task_host_5 type task_host_6 (line 1004) | CREATE TABLE task_host_6 type task_host_7 (line 1017) | CREATE TABLE task_host_7 type task_host_8 (line 1030) | CREATE TABLE task_host_8 type task_host_9 (line 1043) | CREATE TABLE task_host_9 type task_host_10 (line 1056) | CREATE TABLE task_host_10 type task_host_11 (line 1069) | CREATE TABLE task_host_11 type task_host_12 (line 1082) | CREATE TABLE task_host_12 type task_host_13 (line 1095) | CREATE TABLE task_host_13 type task_host_14 (line 1108) | CREATE TABLE task_host_14 type task_host_15 (line 1121) | CREATE TABLE task_host_15 type task_host_16 (line 1134) | CREATE TABLE task_host_16 type task_host_17 (line 1147) | CREATE TABLE task_host_17 type task_host_18 (line 1160) | CREATE TABLE task_host_18 type task_host_19 (line 1173) | CREATE TABLE task_host_19 type task_host_20 (line 1186) | CREATE TABLE task_host_20 type task_host_21 (line 1199) | CREATE TABLE task_host_21 type task_host_22 (line 1212) | CREATE TABLE task_host_22 type task_host_23 (line 1225) | CREATE TABLE task_host_23 type task_host_24 (line 1238) | CREATE TABLE task_host_24 type task_host_25 (line 1251) | CREATE TABLE task_host_25 type task_host_26 (line 1264) | CREATE TABLE task_host_26 type task_host_27 (line 1277) | CREATE TABLE task_host_27 type task_host_28 (line 1290) | CREATE TABLE task_host_28 type task_host_29 (line 1303) | CREATE TABLE task_host_29 type task_host_30 (line 1316) | CREATE TABLE task_host_30 type task_host_31 (line 1329) | CREATE TABLE task_host_31 type task_host_32 (line 1342) | CREATE TABLE task_host_32 type task_host_33 (line 1355) | CREATE TABLE task_host_33 type task_host_34 (line 1368) | CREATE TABLE task_host_34 type task_host_35 (line 1381) | CREATE TABLE task_host_35 type task_host_36 (line 1394) | CREATE TABLE task_host_36 type task_host_37 (line 1407) | CREATE TABLE task_host_37 type task_host_38 (line 1420) | CREATE TABLE task_host_38 type task_host_39 (line 1433) | CREATE TABLE task_host_39 type task_host_40 (line 1446) | CREATE TABLE task_host_40 type task_host_41 (line 1459) | CREATE TABLE task_host_41 type task_host_42 (line 1472) | CREATE TABLE task_host_42 type task_host_43 (line 1485) | CREATE TABLE task_host_43 type task_host_44 (line 1498) | CREATE TABLE task_host_44 type task_host_45 (line 1511) | CREATE TABLE task_host_45 type task_host_46 (line 1524) | CREATE TABLE task_host_46 type task_host_47 (line 1537) | CREATE TABLE task_host_47 type task_host_48 (line 1550) | CREATE TABLE task_host_48 type task_host_49 (line 1563) | CREATE TABLE task_host_49 type task_host_50 (line 1576) | CREATE TABLE task_host_50 type task_host_51 (line 1589) | CREATE TABLE task_host_51 type task_host_52 (line 1602) | CREATE TABLE task_host_52 type task_host_53 (line 1615) | CREATE TABLE task_host_53 type task_host_54 (line 1628) | CREATE TABLE task_host_54 type task_host_55 (line 1641) | CREATE TABLE task_host_55 type task_host_56 (line 1654) | CREATE TABLE task_host_56 type task_host_57 (line 1667) | CREATE TABLE task_host_57 type task_host_58 (line 1680) | CREATE TABLE task_host_58 type task_host_59 (line 1693) | CREATE TABLE task_host_59 type task_host_60 (line 1706) | CREATE TABLE task_host_60 type task_host_61 (line 1719) | CREATE TABLE task_host_61 type task_host_62 (line 1732) | CREATE TABLE task_host_62 type task_host_63 (line 1745) | CREATE TABLE task_host_63 type task_host_64 (line 1758) | CREATE TABLE task_host_64 type task_host_65 (line 1771) | CREATE TABLE task_host_65 type task_host_66 (line 1784) | CREATE TABLE task_host_66 type task_host_67 (line 1797) | CREATE TABLE task_host_67 type task_host_68 (line 1810) | CREATE TABLE task_host_68 type task_host_69 (line 1823) | CREATE TABLE task_host_69 type task_host_70 (line 1836) | CREATE TABLE task_host_70 type task_host_71 (line 1849) | CREATE TABLE task_host_71 type task_host_72 (line 1862) | CREATE TABLE task_host_72 type task_host_73 (line 1875) | CREATE TABLE task_host_73 type task_host_74 (line 1888) | CREATE TABLE task_host_74 type task_host_75 (line 1901) | CREATE TABLE task_host_75 type task_host_76 (line 1914) | CREATE TABLE task_host_76 type task_host_77 (line 1927) | CREATE TABLE task_host_77 type task_host_78 (line 1940) | CREATE TABLE task_host_78 type task_host_79 (line 1953) | CREATE TABLE task_host_79 type task_host_80 (line 1966) | CREATE TABLE task_host_80 type task_host_81 (line 1979) | CREATE TABLE task_host_81 type task_host_82 (line 1992) | CREATE TABLE task_host_82 type task_host_83 (line 2005) | CREATE TABLE task_host_83 type task_host_84 (line 2018) | CREATE TABLE task_host_84 type task_host_85 (line 2031) | CREATE TABLE task_host_85 type task_host_86 (line 2044) | CREATE TABLE task_host_86 type task_host_87 (line 2057) | CREATE TABLE task_host_87 type task_host_88 (line 2070) | CREATE TABLE task_host_88 type task_host_89 (line 2083) | CREATE TABLE task_host_89 type task_host_90 (line 2096) | CREATE TABLE task_host_90 type task_host_91 (line 2109) | CREATE TABLE task_host_91 type task_host_92 (line 2122) | CREATE TABLE task_host_92 type task_host_93 (line 2135) | CREATE TABLE task_host_93 type task_host_94 (line 2148) | CREATE TABLE task_host_94 type task_host_95 (line 2161) | CREATE TABLE task_host_95 type task_host_96 (line 2174) | CREATE TABLE task_host_96 type task_host_97 (line 2187) | CREATE TABLE task_host_97 type task_host_98 (line 2200) | CREATE TABLE task_host_98 type task_host_99 (line 2213) | CREATE TABLE task_host_99 type `source_token` (line 2226) | CREATE TABLE `source_token` ( FILE: docker/migratesql/migrate.sql type `builtin_metrics` (line 2) | CREATE TABLE `builtin_metrics` ( type `metric_filter` (line 22) | CREATE TABLE `metric_filter` ( type `board_busigroup` (line 36) | CREATE TABLE `board_busigroup` ( type `builtin_components` (line 43) | CREATE TABLE `builtin_components` ( type `builtin_payloads` (line 56) | CREATE TABLE `builtin_payloads` ( type notification_record (line 91) | CREATE TABLE notification_record ( type `target_busi_group` (line 111) | CREATE TABLE `target_busi_group` ( type `dash_annotation` (line 138) | CREATE TABLE `dash_annotation` ( type `user_token` (line 156) | CREATE TABLE `user_token` ( type `notify_rule` (line 167) | CREATE TABLE `notify_rule` ( type `notify_channel` (line 181) | CREATE TABLE `notify_channel` ( type `message_template` (line 197) | CREATE TABLE `message_template` ( type `event_pipeline` (line 232) | CREATE TABLE `event_pipeline` ( type `embedded_product` (line 248) | CREATE TABLE `embedded_product` ( type `source_token` (line 262) | CREATE TABLE `source_token` ( type `event_pipeline_execution` (line 307) | CREATE TABLE `event_pipeline_execution` ( type `saved_view` (line 336) | CREATE TABLE `saved_view` ( type `user_view_favorite` (line 352) | CREATE TABLE `user_view_favorite` ( FILE: docker/sqlite.sql type `users` (line 1) | CREATE TABLE `users` ( type idx_users_username (line 20) | CREATE UNIQUE INDEX idx_users_username ON `users` (username) type `user_group` (line 24) | CREATE TABLE `user_group` ( type `idx_user_group_create_by` (line 33) | CREATE INDEX `idx_user_group_create_by` ON `user_group` (`create_by` asc) type `idx_user_group_update_at` (line 34) | CREATE INDEX `idx_user_group_update_at` ON `user_group` (`update_at` asc) type `user_group_member` (line 38) | CREATE TABLE `user_group_member` ( type `idx_user_group_member_group_id` (line 43) | CREATE INDEX `idx_user_group_member_group_id` ON `user_group_member` (`g... type `idx_user_group_member_user_id` (line 44) | CREATE INDEX `idx_user_group_member_user_id` ON `user_group_member` (`us... type `configs` (line 48) | CREATE TABLE `configs` ( type `role` (line 61) | CREATE TABLE `role` ( type `role_operation` (line 72) | CREATE TABLE `role_operation`( type `idx_role_operation_role_name` (line 77) | CREATE INDEX `idx_role_operation_role_name` ON `role_operation` (`role_n... type `idx_role_operation_operation` (line 78) | CREATE INDEX `idx_role_operation_operation` ON `role_operation` (`operat... type `busi_group` (line 149) | CREATE TABLE `busi_group` ( type `busi_group_member` (line 162) | CREATE TABLE `busi_group_member` ( type `idx_busi_group_member_busi_group_id` (line 168) | CREATE INDEX `idx_busi_group_member_busi_group_id` ON `busi_group_member... type `idx_busi_group_member_user_group_id` (line 169) | CREATE INDEX `idx_busi_group_member_user_group_id` ON `busi_group_member... type `board` (line 174) | CREATE TABLE `board` ( type idx_board_group_id_name (line 190) | CREATE UNIQUE INDEX idx_board_group_id_name ON `board` (group_id, name) type `idx_board_ident` (line 191) | CREATE INDEX `idx_board_ident` ON `board` (`ident` asc) type `board_payload` (line 194) | CREATE TABLE `board_payload` ( type `chart` (line 199) | CREATE TABLE `chart` ( type idx_chart_group_id (line 206) | CREATE INDEX idx_chart_group_id ON `chart` (group_id) type `chart_share` (line 208) | CREATE TABLE `chart_share` ( type `idx_chart_share_create_at` (line 216) | CREATE INDEX `idx_chart_share_create_at` ON `chart_share` (`create_at` asc) type `alert_rule` (line 218) | CREATE TABLE `alert_rule` ( type `idx_alert_rule_group_id` (line 259) | CREATE INDEX `idx_alert_rule_group_id` ON `alert_rule` (`group_id` asc) type `idx_alert_rule_update_at` (line 260) | CREATE INDEX `idx_alert_rule_update_at` ON `alert_rule` (`update_at` asc) type `alert_mute` (line 262) | CREATE TABLE `alert_mute` ( type `idx_alert_mute_create_at` (line 283) | CREATE INDEX `idx_alert_mute_create_at` ON `alert_mute` (`create_at` asc) type `idx_alert_mute_group_id` (line 284) | CREATE INDEX `idx_alert_mute_group_id` ON `alert_mute` (`group_id` asc) type `alert_subscribe` (line 286) | CREATE TABLE `alert_subscribe` ( type `idx_alert_subscribe_update_at` (line 315) | CREATE INDEX `idx_alert_subscribe_update_at` ON `alert_subscribe` (`upda... type `idx_alert_subscribe_group_id` (line 316) | CREATE INDEX `idx_alert_subscribe_group_id` ON `alert_subscribe` (`group... type `target` (line 319) | CREATE TABLE `target` ( type `idx_target_group_id` (line 333) | CREATE INDEX `idx_target_group_id` ON `target` (`group_id` asc) type idx_target_ident (line 334) | CREATE UNIQUE INDEX idx_target_ident ON `target` (ident) type idx_host_ip (line 335) | CREATE INDEX idx_host_ip ON `target` (host_ip) type idx_agent_version (line 336) | CREATE INDEX idx_agent_version ON `target` (agent_version) type idx_engine_name (line 337) | CREATE INDEX idx_engine_name ON `target` (engine_name) type idx_os (line 338) | CREATE INDEX idx_os ON `target` (os) type `metric_view` (line 340) | CREATE TABLE `metric_view` ( type `idx_metric_view_create_by` (line 349) | CREATE INDEX `idx_metric_view_create_by` ON `metric_view` (`create_by` asc) type `recording_rule` (line 353) | CREATE TABLE `recording_rule` ( type `idx_recording_rule_group_id` (line 372) | CREATE INDEX `idx_recording_rule_group_id` ON `recording_rule` (`group_i... type `idx_recording_rule_update_at` (line 373) | CREATE INDEX `idx_recording_rule_update_at` ON `recording_rule` (`update... type `alert_aggr_view` (line 375) | CREATE TABLE `alert_aggr_view` ( type `idx_alert_aggr_view_create_by` (line 384) | CREATE INDEX `idx_alert_aggr_view_create_by` ON `alert_aggr_view` (`crea... type `alert_cur_event` (line 389) | CREATE TABLE `alert_cur_event` ( type `idx_alert_cur_event_hash` (line 422) | CREATE INDEX `idx_alert_cur_event_hash` ON `alert_cur_event` (`hash` asc) type `idx_alert_cur_event_rule_id` (line 423) | CREATE INDEX `idx_alert_cur_event_rule_id` ON `alert_cur_event` (`rule_i... type `idx_alert_cur_event_trigger_time_group_id` (line 424) | CREATE INDEX `idx_alert_cur_event_trigger_time_group_id` ON `alert_cur_e... type `idx_alert_cur_event_notify_repeat_next` (line 425) | CREATE INDEX `idx_alert_cur_event_notify_repeat_next` ON `alert_cur_even... type `alert_his_event` (line 427) | CREATE TABLE `alert_his_event` ( type `idx_alert_his_event_last_eval_time` (line 463) | CREATE INDEX `idx_alert_his_event_last_eval_time` ON `alert_his_event` (... type `idx_alert_his_event_hash` (line 464) | CREATE INDEX `idx_alert_his_event_hash` ON `alert_his_event` (`hash` asc) type `idx_alert_his_event_rule_id` (line 465) | CREATE INDEX `idx_alert_his_event_rule_id` ON `alert_his_event` (`rule_i... type `idx_alert_his_event_trigger_time_group_id` (line 466) | CREATE INDEX `idx_alert_his_event_trigger_time_group_id` ON `alert_his_e... type `board_busigroup` (line 468) | CREATE TABLE `board_busigroup` ( type `builtin_components` (line 474) | CREATE TABLE `builtin_components` ( type `idx_builtin_components_ident` (line 484) | CREATE INDEX `idx_builtin_components_ident` ON `builtin_components` (`id... type `builtin_payloads` (line 486) | CREATE TABLE `builtin_payloads` ( type `idx_builtin_payloads_component` (line 502) | CREATE INDEX `idx_builtin_payloads_component` ON `builtin_payloads` (`co... type `idx_builtin_payloads_name` (line 503) | CREATE INDEX `idx_builtin_payloads_name` ON `builtin_payloads` (`name` asc) type `idx_builtin_payloads_cate` (line 504) | CREATE INDEX `idx_builtin_payloads_cate` ON `builtin_payloads` (`cate` asc) type `idx_builtin_payloads_type` (line 505) | CREATE INDEX `idx_builtin_payloads_type` ON `builtin_payloads` (`type` asc) type idx_uuid (line 506) | CREATE INDEX idx_uuid ON `builtin_payloads` (uuid) type `notification_record` (line 509) | CREATE TABLE `notification_record` ( type idx_evt (line 519) | CREATE INDEX idx_evt ON notification_record (event_id) type `task_tpl` (line 521) | CREATE TABLE `task_tpl` ( type `idx_task_tpl_group_id` (line 538) | CREATE INDEX `idx_task_tpl_group_id` ON `task_tpl` (`group_id` asc) type `task_tpl_host` (line 540) | CREATE TABLE `task_tpl_host` ( type `idx_task_tpl_host_id_host` (line 545) | CREATE INDEX `idx_task_tpl_host_id_host` ON `task_tpl_host` (`id`, `host... type `task_record` (line 547) | CREATE TABLE `task_record` ( type `idx_task_record_create_at_group_id` (line 565) | CREATE INDEX `idx_task_record_create_at_group_id` ON `task_record` (`cre... type `idx_task_record_create_by` (line 566) | CREATE INDEX `idx_task_record_create_by` ON `task_record` (`create_by` asc) type `idx_task_record_event_id` (line 567) | CREATE INDEX `idx_task_record_event_id` ON `task_record` (`event_id` asc) type `alerting_engines` (line 570) | CREATE TABLE `alerting_engines` ( type `datasource` (line 578) | CREATE TABLE `datasource` type idx_datasource_name (line 600) | CREATE UNIQUE INDEX idx_datasource_name ON datasource (name) type `builtin_cate` (line 602) | CREATE TABLE `builtin_cate` ( type `notify_tpl` (line 608) | CREATE TABLE `notify_tpl` ( type idx_notify_tpl_channel (line 619) | CREATE UNIQUE INDEX idx_notify_tpl_channel ON notify_tpl (channel) type `sso_config` (line 621) | CREATE TABLE `sso_config` ( type idx_sso_config_name (line 628) | CREATE UNIQUE INDEX idx_sso_config_name ON sso_config (name) type `es_index_pattern` (line 630) | CREATE TABLE `es_index_pattern` ( type idx_es_index_pattern_datasource_id_name (line 645) | CREATE UNIQUE INDEX idx_es_index_pattern_datasource_id_name ON es_index_... type `builtin_metrics` (line 647) | CREATE TABLE `builtin_metrics` ( type idx_collector (line 666) | CREATE INDEX idx_collector ON builtin_metrics (collector) type idx_typ (line 667) | CREATE INDEX idx_typ ON builtin_metrics (typ) type idx_builtinmetric_name (line 668) | CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name) type idx_lang (line 669) | CREATE INDEX idx_lang ON builtin_metrics (lang) type `metric_filter` (line 672) | CREATE TABLE `metric_filter` ( type `idx_metric_filter_name` (line 682) | CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc) type `target_busi_group` (line 684) | CREATE TABLE `target_busi_group` ( type idx_target_busi_group (line 691) | CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_i... type `dash_annotation` (line 694) | CREATE TABLE `dash_annotation` ( type `task_meta` (line 709) | CREATE TABLE `task_meta` type `idx_task_meta_creator` (line 724) | CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc) type `idx_task_meta_created` (line 725) | CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc) type `task_action` (line 729) | CREATE TABLE `task_action` type `task_scheduler` (line 736) | CREATE TABLE `task_scheduler` type `idx_task_scheduler_id_scheduler` (line 741) | CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`... type `task_scheduler_health` (line 743) | CREATE TABLE `task_scheduler_health` type `idx_task_scheduler_health_clock` (line 748) | CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health... type `task_host_doing` (line 750) | CREATE TABLE `task_host_doing` type `idx_task_host_doing_id` (line 757) | CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc) type `idx_task_host_doing_host` (line 758) | CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc) type task_host_0 (line 760) | CREATE TABLE task_host_0 type task_host_1 (line 771) | CREATE TABLE task_host_1 type task_host_2 (line 782) | CREATE TABLE task_host_2 type task_host_3 (line 793) | CREATE TABLE task_host_3 type task_host_4 (line 804) | CREATE TABLE task_host_4 type task_host_5 (line 815) | CREATE TABLE task_host_5 type task_host_6 (line 826) | CREATE TABLE task_host_6 type task_host_7 (line 837) | CREATE TABLE task_host_7 type task_host_8 (line 848) | CREATE TABLE task_host_8 type task_host_9 (line 859) | CREATE TABLE task_host_9 type task_host_10 (line 870) | CREATE TABLE task_host_10 type task_host_11 (line 881) | CREATE TABLE task_host_11 type task_host_12 (line 892) | CREATE TABLE task_host_12 type task_host_13 (line 903) | CREATE TABLE task_host_13 type task_host_14 (line 914) | CREATE TABLE task_host_14 type task_host_15 (line 925) | CREATE TABLE task_host_15 type task_host_16 (line 936) | CREATE TABLE task_host_16 type task_host_17 (line 947) | CREATE TABLE task_host_17 type task_host_18 (line 958) | CREATE TABLE task_host_18 type task_host_19 (line 969) | CREATE TABLE task_host_19 type task_host_20 (line 980) | CREATE TABLE task_host_20 type task_host_21 (line 991) | CREATE TABLE task_host_21 type task_host_22 (line 1002) | CREATE TABLE task_host_22 type task_host_23 (line 1013) | CREATE TABLE task_host_23 type task_host_24 (line 1024) | CREATE TABLE task_host_24 type task_host_25 (line 1035) | CREATE TABLE task_host_25 type task_host_26 (line 1046) | CREATE TABLE task_host_26 type task_host_27 (line 1057) | CREATE TABLE task_host_27 type task_host_28 (line 1068) | CREATE TABLE task_host_28 type task_host_29 (line 1079) | CREATE TABLE task_host_29 type task_host_30 (line 1090) | CREATE TABLE task_host_30 type task_host_31 (line 1101) | CREATE TABLE task_host_31 type task_host_32 (line 1112) | CREATE TABLE task_host_32 type task_host_33 (line 1123) | CREATE TABLE task_host_33 type task_host_34 (line 1134) | CREATE TABLE task_host_34 type task_host_35 (line 1145) | CREATE TABLE task_host_35 type task_host_36 (line 1156) | CREATE TABLE task_host_36 type task_host_37 (line 1167) | CREATE TABLE task_host_37 type task_host_38 (line 1178) | CREATE TABLE task_host_38 type task_host_39 (line 1189) | CREATE TABLE task_host_39 type task_host_40 (line 1200) | CREATE TABLE task_host_40 type task_host_41 (line 1211) | CREATE TABLE task_host_41 type task_host_42 (line 1222) | CREATE TABLE task_host_42 type task_host_43 (line 1233) | CREATE TABLE task_host_43 type task_host_44 (line 1244) | CREATE TABLE task_host_44 type task_host_45 (line 1255) | CREATE TABLE task_host_45 type task_host_46 (line 1266) | CREATE TABLE task_host_46 type task_host_47 (line 1277) | CREATE TABLE task_host_47 type task_host_48 (line 1288) | CREATE TABLE task_host_48 type task_host_49 (line 1299) | CREATE TABLE task_host_49 type task_host_50 (line 1310) | CREATE TABLE task_host_50 type task_host_51 (line 1321) | CREATE TABLE task_host_51 type task_host_52 (line 1332) | CREATE TABLE task_host_52 type task_host_53 (line 1343) | CREATE TABLE task_host_53 type task_host_54 (line 1354) | CREATE TABLE task_host_54 type task_host_55 (line 1365) | CREATE TABLE task_host_55 type task_host_56 (line 1376) | CREATE TABLE task_host_56 type task_host_57 (line 1387) | CREATE TABLE task_host_57 type task_host_58 (line 1398) | CREATE TABLE task_host_58 type task_host_59 (line 1409) | CREATE TABLE task_host_59 type task_host_60 (line 1420) | CREATE TABLE task_host_60 type task_host_61 (line 1431) | CREATE TABLE task_host_61 type task_host_62 (line 1442) | CREATE TABLE task_host_62 type task_host_63 (line 1453) | CREATE TABLE task_host_63 type task_host_64 (line 1464) | CREATE TABLE task_host_64 type task_host_65 (line 1475) | CREATE TABLE task_host_65 type task_host_66 (line 1486) | CREATE TABLE task_host_66 type task_host_67 (line 1497) | CREATE TABLE task_host_67 type task_host_68 (line 1508) | CREATE TABLE task_host_68 type task_host_69 (line 1519) | CREATE TABLE task_host_69 type task_host_70 (line 1530) | CREATE TABLE task_host_70 type task_host_71 (line 1541) | CREATE TABLE task_host_71 type task_host_72 (line 1552) | CREATE TABLE task_host_72 type task_host_73 (line 1563) | CREATE TABLE task_host_73 type task_host_74 (line 1574) | CREATE TABLE task_host_74 type task_host_75 (line 1585) | CREATE TABLE task_host_75 type task_host_76 (line 1596) | CREATE TABLE task_host_76 type task_host_77 (line 1607) | CREATE TABLE task_host_77 type task_host_78 (line 1618) | CREATE TABLE task_host_78 type task_host_79 (line 1629) | CREATE TABLE task_host_79 type task_host_80 (line 1640) | CREATE TABLE task_host_80 type task_host_81 (line 1651) | CREATE TABLE task_host_81 type task_host_82 (line 1662) | CREATE TABLE task_host_82 type task_host_83 (line 1673) | CREATE TABLE task_host_83 type task_host_84 (line 1684) | CREATE TABLE task_host_84 type task_host_85 (line 1695) | CREATE TABLE task_host_85 type task_host_86 (line 1706) | CREATE TABLE task_host_86 type task_host_87 (line 1717) | CREATE TABLE task_host_87 type task_host_88 (line 1728) | CREATE TABLE task_host_88 type task_host_89 (line 1739) | CREATE TABLE task_host_89 type task_host_90 (line 1750) | CREATE TABLE task_host_90 type task_host_91 (line 1761) | CREATE TABLE task_host_91 type task_host_92 (line 1772) | CREATE TABLE task_host_92 type task_host_93 (line 1783) | CREATE TABLE task_host_93 type task_host_94 (line 1794) | CREATE TABLE task_host_94 type task_host_95 (line 1805) | CREATE TABLE task_host_95 type task_host_96 (line 1816) | CREATE TABLE task_host_96 type task_host_97 (line 1827) | CREATE TABLE task_host_97 type task_host_98 (line 1838) | CREATE TABLE task_host_98 type task_host_99 (line 1849) | CREATE TABLE task_host_99 FILE: dscache/cache.go type Cache (line 10) | type Cache struct method Put (line 20) | func (cs *Cache) Put(cate string, dsId int64, ds datasource.Datasource) { method Get (line 47) | func (cs *Cache) Get(cate string, dsId int64) (datasource.Datasource, ... method Delete (line 61) | func (cs *Cache) Delete(cate string, dsId int64) { method GetAllIds (line 73) | func (cs *Cache) GetAllIds() map[string][]int64 { FILE: dscache/sync.go function Init (line 30) | func Init(ctx *ctx.Context, fromAPI bool) { type ListInput (line 52) | type ListInput struct type DSReply (line 60) | type DSReply struct type DSReplyEncrypt (line 67) | type DSReplyEncrypt struct function getDatasourcesFromDBLoop (line 74) | func getDatasourcesFromDBLoop(ctx *ctx.Context, fromAPI bool) { function tdN9eToDatasourceInfo (line 141) | func tdN9eToDatasourceInfo(ds *datasource.DatasourceInfo, item models.Da... function esN9eToDatasourceInfo (line 155) | func esN9eToDatasourceInfo(ds *datasource.DatasourceInfo, item models.Da... function PutDatasources (line 176) | func PutDatasources(items []datasource.DatasourceInfo) { FILE: dskit/clickhouse/clickhouse.go constant ckDataSource (line 23) | ckDataSource = "clickhouse://%s:%s@%s?read_timeout=10s" constant DefaultLimit (line 25) | DefaultLimit = 500 type Clickhouse (line 28) | type Clickhouse struct method InitCli (line 47) | func (c *Clickhouse) InitCli() error { method QueryRows (line 207) | func (c *Clickhouse) QueryRows(ctx context.Context, query string) (*sq... method ShowDatabases (line 231) | func (c *Clickhouse) ShowDatabases(ctx context.Context) ([]string, err... method ShowTables (line 251) | func (c *Clickhouse) ShowTables(ctx context.Context, database string) ... method DescribeTable (line 272) | func (c *Clickhouse) DescribeTable(ctx context.Context, query interfac... method ExecQueryBySqlDB (line 299) | func (c *Clickhouse) ExecQueryBySqlDB(ctx context.Context, sql string)... method Query (line 340) | func (c *Clickhouse) Query(ctx context.Context, query interface{}) ([]... method CheckMaxQueryRows (line 375) | func (c *Clickhouse) CheckMaxQueryRows(ctx context.Context, sql string... constant ShowDatabases (line 202) | ShowDatabases = "SHOW DATABASES" constant ShowTables (line 203) | ShowTables = "SELECT name FROM system.tables WHERE database = '%s'" constant DescTable (line 204) | DescTable = "SELECT name,type FROM system.columns WHERE database='%s... FILE: dskit/clickhouse/clickhouse_test.go function Test_Timeseries (line 13) | func Test_Timeseries(t *testing.T) { FILE: dskit/clickhouse/timeseries.go constant TimeFieldFormatEpochMilli (line 12) | TimeFieldFormatEpochMilli = "epoch_millis" constant TimeFieldFormatEpochSecond (line 13) | TimeFieldFormatEpochSecond = "epoch_second" type QueryParam (line 17) | type QueryParam struct method QueryTimeseries (line 46) | func (c *Clickhouse) QueryTimeseries(ctx context.Context, query *QueryPa... FILE: dskit/doris/doris.go constant ShowIndexFieldIndexType (line 22) | ShowIndexFieldIndexType = "index_type" constant ShowIndexFieldColumnName (line 23) | ShowIndexFieldColumnName = "column_name" constant ShowIndexKeyName (line 24) | ShowIndexKeyName = "key_name" constant SQLShowIndex (line 26) | SQLShowIndex = "SHOW INDEX FROM " type Doris (line 30) | type Doris struct method NewConn (line 70) | func (d *Doris) NewConn(ctx context.Context, database string) (*sql.DB... method NewWriteConn (line 130) | func (d *Doris) NewWriteConn(ctx context.Context, database string) (*s... method createTimeoutContext (line 201) | func (d *Doris) createTimeoutContext(ctx context.Context) (context.Con... method ShowDatabases (line 210) | func (d *Doris) ShowDatabases(ctx context.Context) ([]string, error) { method ShowResources (line 237) | func (d *Doris) ShowResources(ctx context.Context, resourceType string... method ShowTables (line 297) | func (d *Doris) ShowTables(ctx context.Context, database string) ([]st... method DescTable (line 325) | func (d *Doris) DescTable(ctx context.Context, database, table string)... method ShowIndexes (line 406) | func (d *Doris) ShowIndexes(ctx context.Context, database, table strin... method SelectRows (line 482) | func (d *Doris) SelectRows(ctx context.Context, database, table, query... method ExecQuery (line 498) | func (d *Doris) ExecQuery(ctx context.Context, database string, sql st... method ExecContext (line 547) | func (d *Doris) ExecContext(ctx context.Context, database string, sql ... method ExecBatchSQL (line 561) | func (d *Doris) ExecBatchSQL(ctx context.Context, database string, sql... function NewDorisWithSettings (line 48) | func NewDorisWithSettings(ctx context.Context, settings interface{}) (*D... type TableIndexInfo (line 399) | type TableIndexInfo struct function SplitSQLStatements (line 594) | func SplitSQLStatements(sqlBatch string) []string { function isWhitespace (line 707) | func isWhitespace(c byte) bool { FILE: dskit/doris/logs.go constant TimeseriesAggregationTimestamp (line 10) | TimeseriesAggregationTimestamp = "__ts__" method QueryLogs (line 14) | func (d *Doris) QueryLogs(ctx context.Context, query *QueryParam) ([]map... method QueryHistogram (line 20) | func (d *Doris) QueryHistogram(ctx context.Context, query *QueryParam) (... FILE: dskit/doris/sql_analyzer.go type SQLAnalyzeResult (line 24) | type SQLAnalyzeResult struct function AnalyzeSQL (line 31) | func AnalyzeSQL(sql string) (*SQLAnalyzeResult, error) { function analyzeSelectStmt (line 62) | func analyzeSelectStmt(sel *ast.SelectStmt, result *SQLAnalyzeResult) { function selectHasAggregate (line 92) | func selectHasAggregate(node ast.Node) bool { function analyzeSetOprStmt (line 121) | func analyzeSetOprStmt(setOpr *ast.SetOprStmt, result *SQLAnalyzeResult) { function hasAggregateFunc (line 156) | func hasAggregateFunc(expr ast.ExprNode) bool { type aggregateChecker (line 163) | type aggregateChecker struct method Enter (line 167) | func (c *aggregateChecker) Enter(n ast.Node) (ast.Node, bool) { method Leave (line 189) | func (c *aggregateChecker) Leave(n ast.Node) (ast.Node, bool) { function isDorisAggregateFunc (line 194) | func isDorisAggregateFunc(funcName string) bool { function extractConstValue (line 264) | func extractConstValue(expr ast.ExprNode) (int64, bool) { function preprocessDorisSQL (line 282) | func preprocessDorisSQL(sql string) string { function NeedsRowCountCheck (line 300) | func NeedsRowCountCheck(sql string, maxQueryRows int) (bool, bool, strin... FILE: dskit/doris/sql_analyzer_test.go function TestAnalyzeSQL_AggregateQueries (line 7) | func TestAnalyzeSQL_AggregateQueries(t *testing.T) { function TestAnalyzeSQL_SubqueryWithAggregate (line 173) | func TestAnalyzeSQL_SubqueryWithAggregate(t *testing.T) { function TestAnalyzeSQL_LimitQueries (line 210) | func TestAnalyzeSQL_LimitQueries(t *testing.T) { function TestAnalyzeSQL_UnionQueries (line 285) | func TestAnalyzeSQL_UnionQueries(t *testing.T) { function TestAnalyzeSQL_NonSelectStatements (line 348) | func TestAnalyzeSQL_NonSelectStatements(t *testing.T) { function TestNeedsRowCountCheck (line 385) | func TestNeedsRowCountCheck(t *testing.T) { function TestNeedsRowCountCheck_DorisSpecificFunctions (line 486) | func TestNeedsRowCountCheck_DorisSpecificFunctions(t *testing.T) { function TestNeedsRowCountCheck_ComplexQueries (line 544) | func TestNeedsRowCountCheck_ComplexQueries(t *testing.T) { function TestNeedsRowCountCheck_EdgeCases (line 604) | func TestNeedsRowCountCheck_EdgeCases(t *testing.T) { function TestNeedsRowCountCheck_DifferentMaxRows (line 664) | func TestNeedsRowCountCheck_DifferentMaxRows(t *testing.T) { function TestSummary_SkipProbeCheck (line 716) | func TestSummary_SkipProbeCheck(t *testing.T) { function ptr (line 782) | func ptr(v int64) *int64 { FILE: dskit/doris/timeseries.go constant TimeFieldFormatEpochMilli (line 13) | TimeFieldFormatEpochMilli = "epoch_millis" constant TimeFieldFormatEpochSecond (line 14) | TimeFieldFormatEpochSecond = "epoch_second" constant TimeFieldFormatDateTime (line 15) | TimeFieldFormatDateTime = "datetime" type QueryParam (line 19) | type QueryParam struct method Query (line 42) | func (d *Doris) Query(ctx context.Context, query *QueryParam) ([]map[str... method QueryTimeseries (line 65) | func (d *Doris) QueryTimeseries(ctx context.Context, query *QueryParam) ... method CheckMaxQueryRows (line 78) | func (d *Doris) CheckMaxQueryRows(ctx context.Context, database, sql str... method probeRowCount (line 99) | func (d *Doris) probeRowCount(ctx context.Context, database, sql string,... FILE: dskit/mysql/mysql.go type MySQL (line 23) | type MySQL struct method NewConn (line 62) | func (m *MySQL) NewConn(ctx context.Context, database string) (*gorm.D... method ShowDatabases (line 128) | func (m *MySQL) ShowDatabases(ctx context.Context) ([]string, error) { method ShowTables (line 137) | func (m *MySQL) ShowTables(ctx context.Context, database string) ([]st... method DescTable (line 146) | func (m *MySQL) DescTable(ctx context.Context, database, table string)... method SelectRows (line 156) | func (m *MySQL) SelectRows(ctx context.Context, database, table, query... method ExecQuery (line 165) | func (m *MySQL) ExecQuery(ctx context.Context, database string, sql st... type Shard (line 27) | type Shard struct function NewMySQLWithSettings (line 39) | func NewMySQLWithSettings(ctx context.Context, settings interface{}) (*M... FILE: dskit/mysql/mysql_test.go function TestNewMySQLWithSettings (line 12) | func TestNewMySQLWithSettings(t *testing.T) { function TestNewConn (line 41) | func TestNewConn(t *testing.T) { function TestShowDatabases (line 70) | func TestShowDatabases(t *testing.T) { function TestShowTables (line 81) | func TestShowTables(t *testing.T) { function TestDescTable (line 92) | func TestDescTable(t *testing.T) { function TestExecQuery (line 105) | func TestExecQuery(t *testing.T) { function TestSelectRows (line 118) | func TestSelectRows(t *testing.T) { FILE: dskit/mysql/timeseries.go method Query (line 15) | func (m *MySQL) Query(ctx context.Context, query *sqlbase.QueryParam) ([... method QueryTimeseries (line 30) | func (m *MySQL) QueryTimeseries(ctx context.Context, query *sqlbase.Quer... method CheckMaxQueryRows (line 44) | func (m *MySQL) CheckMaxQueryRows(db *gorm.DB, ctx context.Context, quer... FILE: dskit/mysql/timeseries_test.go function TestQuery (line 15) | func TestQuery(t *testing.T) { function TestQueryTimeseries (line 38) | func TestQueryTimeseries(t *testing.T) { FILE: dskit/pool/pool.go function PoolGetBytesBuffer (line 26) | func PoolGetBytesBuffer() *bytes.Buffer { function PoolPutBytesBuffer (line 32) | func PoolPutBytesBuffer(buf *bytes.Buffer) { FILE: dskit/postgres/postgres.go type PostgreSQL (line 24) | type PostgreSQL struct method NewConn (line 74) | func (p *PostgreSQL) NewConn(ctx context.Context, database string) (*g... method ShowDatabases (line 145) | func (p *PostgreSQL) ShowDatabases(ctx context.Context, searchKeyword ... method ShowTables (line 156) | func (p *PostgreSQL) ShowTables(ctx context.Context, searchKeyword str... method DescTable (line 178) | func (p *PostgreSQL) DescTable(ctx context.Context, scheme, table stri... method SelectRows (line 192) | func (p *PostgreSQL) SelectRows(ctx context.Context, table, where stri... method ExecQuery (line 202) | func (p *PostgreSQL) ExecQuery(ctx context.Context, sql string) ([]map... type Shard (line 28) | type Shard struct function NewPostgreSQLWithSettings (line 41) | func NewPostgreSQLWithSettings(ctx context.Context, settings interface{}... FILE: dskit/postgres/timeseries.go method Query (line 14) | func (p *PostgreSQL) Query(ctx context.Context, query *sqlbase.QueryPara... method QueryTimeseries (line 29) | func (p *PostgreSQL) QueryTimeseries(ctx context.Context, query *sqlbase... method CheckMaxQueryRows (line 43) | func (p *PostgreSQL) CheckMaxQueryRows(db *gorm.DB, ctx context.Context,... FILE: dskit/sqlbase/base.go function NewDB (line 18) | func NewDB(ctx context.Context, dialector gorm.Dialector, maxIdleConns, ... function CloseDB (line 38) | func CloseDB(db *gorm.DB) error { function ShowTables (line 50) | func ShowTables(ctx context.Context, db *gorm.DB, query string) ([]strin... function ShowDatabases (line 71) | func ShowDatabases(ctx context.Context, db *gorm.DB, query string) ([]st... function DescTable (line 92) | func DescTable(ctx context.Context, db *gorm.DB, query string) ([]*types... function ExecQuery (line 138) | func ExecQuery(ctx context.Context, db *gorm.DB, sql string) ([]map[stri... function SelectRows (line 179) | func SelectRows(ctx context.Context, db *gorm.DB, table, query string) (... function ConvertDBType (line 189) | func ConvertDBType(dialect, dbType string) (string, bool) { FILE: dskit/sqlbase/timeseries.go type QueryParam (line 23) | type QueryParam struct function Query (line 44) | func Query(ctx context.Context, db *gorm.DB, query *QueryParam) ([]map[s... function QueryTimeseries (line 57) | func QueryTimeseries(ctx context.Context, db *gorm.DB, query *QueryParam... function FormatMetricValues (line 66) | func FormatMetricValues(keys types.Keys, rows []map[string]interface{}, ... function ParseFloat64Value (line 190) | func ParseFloat64Value(val interface{}) (float64, error) { function ParseTime (line 220) | func ParseTime(val interface{}, format string) (time.Time, error) { function parseTimeFromString (line 249) | func parseTimeFromString(str, format string) (time.Time, error) { FILE: dskit/sqlbase/timeseries_test.go function TestFormatMetricValues (line 13) | func TestFormatMetricValues(t *testing.T) { function TestParseFloat64Value (line 114) | func TestParseFloat64Value(t *testing.T) { function TestParseTime (line 155) | func TestParseTime(t *testing.T) { FILE: dskit/tdengine/tdengine.go type Tdengine (line 19) | type Tdengine struct method InitCli (line 53) | func (tc *Tdengine) InitCli() { method QueryTable (line 87) | func (tc *Tdengine) QueryTable(query string) (APIResponse, error) { method ShowDatabases (line 124) | func (tc *Tdengine) ShowDatabases(context.Context) ([]string, error) { method ShowTables (line 137) | func (tc *Tdengine) ShowTables(ctx context.Context, database string) (... method DescribeTable (line 151) | func (tc *Tdengine) DescribeTable(ctx context.Context, query interface... type TDengineBasicAuth (line 35) | type TDengineBasicAuth struct type APIResponse (line 41) | type APIResponse struct type QueryParam (line 48) | type QueryParam struct FILE: dskit/types/timeseries.go type MetricValues (line 12) | type MetricValues struct method String (line 29) | func (m *MetricValues) String() string { type HistogramValues (line 17) | type HistogramValues struct type AggregateValues (line 23) | type AggregateValues struct type Keys (line 46) | type Keys struct FILE: dskit/types/types.go constant LogExtractValueTypeLong (line 4) | LogExtractValueTypeLong = "long" constant LogExtractValueTypeFloat (line 5) | LogExtractValueTypeFloat = "float" constant LogExtractValueTypeText (line 6) | LogExtractValueTypeText = "text" constant LogExtractValueTypeDate (line 7) | LogExtractValueTypeDate = "date" constant LogExtractValueTypeBool (line 8) | LogExtractValueTypeBool = "bool" constant LogExtractValueTypeObject (line 9) | LogExtractValueTypeObject = "object" constant LogExtractValueTypeArray (line 10) | LogExtractValueTypeArray = "array" constant LogExtractValueTypeJSON (line 11) | LogExtractValueTypeJSON = "json" type ColumnProperty (line 14) | type ColumnProperty struct FILE: dskit/victorialogs/victorialogs.go type VictoriaLogs (line 17) | type VictoriaLogs struct method InitHTTPClient (line 66) | func (vl *VictoriaLogs) InitHTTPClient() error { method Query (line 91) | func (vl *VictoriaLogs) Query(ctx context.Context, query string, start... method StatsQuery (line 147) | func (vl *VictoriaLogs) StatsQuery(ctx context.Context, query string, ... method StatsQueryRange (line 186) | func (vl *VictoriaLogs) StatsQueryRange(ctx context.Context, query str... method HitsLogs (line 231) | func (vl *VictoriaLogs) HitsLogs(ctx context.Context, query string, st... method doRequest (line 272) | func (vl *VictoriaLogs) doRequest(ctx context.Context, method, endpoin... type LogEntry (line 36) | type LogEntry type PrometheusResponse (line 39) | type PrometheusResponse struct type PrometheusData (line 46) | type PrometheusData struct type PrometheusItem (line 52) | type PrometheusItem struct type HitsResult (line 59) | type HitsResult struct FILE: dskit/victorialogs/victorialogs_test.go function TestVictoriaLogs_InitHTTPClient (line 15) | func TestVictoriaLogs_InitHTTPClient(t *testing.T) { function TestVictoriaLogs_Query (line 24) | func TestVictoriaLogs_Query(t *testing.T) { function TestVictoriaLogs_StatsQuery (line 45) | func TestVictoriaLogs_StatsQuery(t *testing.T) { function TestVictoriaLogs_StatsQueryRange (line 63) | func TestVictoriaLogs_StatsQueryRange(t *testing.T) { function TestVictoriaLogs_HitsLogs (line 84) | func TestVictoriaLogs_HitsLogs(t *testing.T) { function TestVictoriaLogs_QueryWithFilter (line 102) | func TestVictoriaLogs_QueryWithFilter(t *testing.T) { function TestVictoriaLogs_StatsQueryByField (line 120) | func TestVictoriaLogs_StatsQueryByField(t *testing.T) { FILE: dumper/dumper.go function ConfigRouter (line 6) | func ConfigRouter(r *gin.Engine) { FILE: dumper/sync.go type SyncRecord (line 12) | type SyncRecord struct method String (line 19) | func (sr *SyncRecord) String() string { type SyncRecords (line 33) | type SyncRecords struct type SyncDumper (line 38) | type SyncDumper struct method Put (line 51) | func (sd *SyncDumper) Put(key string, timestamp, mills int64, count in... method Sprint (line 74) | func (sd *SyncDumper) Sprint() string { method ConfigRouter (line 97) | func (sd *SyncDumper) ConfigRouter(r *gin.Engine) { function NewSyncDumper (line 43) | func NewSyncDumper() *SyncDumper { function PutSyncRecord (line 108) | func PutSyncRecord(key string, timestamp, mills int64, count int, messag... FILE: etc/script/notify.bak.py class Sender (line 27) | class Sender(object): method send_email (line 29) | def send_email(cls, payload): method send_wecom (line 60) | def send_wecom(cls, payload): method send_dingtalk (line 91) | def send_dingtalk(cls, payload): method send_feishu (line 137) | def send_feishu(cls, payload): method send_sms (line 176) | def send_sms(cls, payload): method send_voice (line 186) | def send_voice(cls, payload): function main (line 195) | def main(): function hello (line 207) | def hello(): FILE: etc/script/notify.py class Sender (line 6) | class Sender(object): method send_email (line 8) | def send_email(cls, payload): method send_wecom (line 13) | def send_wecom(cls, payload): method send_dingtalk (line 18) | def send_dingtalk(cls, payload): method send_feishu (line 23) | def send_feishu(cls, payload): method send_mm (line 28) | def send_mm(cls, payload): method send_sms (line 33) | def send_sms(cls, payload): method send_voice (line 43) | def send_voice(cls, payload): function main (line 52) | def main(): function hello (line 64) | def hello(): FILE: etc/script/notify_feishu.py class Sender (line 7) | class Sender(object): method send_email (line 9) | def send_email(cls, payload): method send_wecom (line 14) | def send_wecom(cls, payload): method send_dingtalk (line 19) | def send_dingtalk(cls, payload): method send_ifeishu (line 24) | def send_ifeishu(cls, payload): method send_mm (line 59) | def send_mm(cls, payload): method send_sms (line 64) | def send_sms(cls, payload): method send_voice (line 68) | def send_voice(cls, payload): function main (line 71) | def main(): function hello (line 83) | def hello(): FILE: etc/script/rule_converter.py function convert_interval (line 12) | def convert_interval(interval): function convert_alert (line 24) | def convert_alert(rule, interval): function convert_record (line 92) | def convert_record(rule, interval): function deal_group (line 127) | def deal_group(group): function deal_configmap (line 169) | def deal_configmap(rule_configmap): function main (line 184) | def main(): FILE: memsto/alert_mute_cache.go type AlertMuteCacheType (line 16) | type AlertMuteCacheType struct method Reset (line 38) | func (amc *AlertMuteCacheType) Reset() { method StatChanged (line 47) | func (amc *AlertMuteCacheType) StatChanged(total, lastUpdated int64) b... method Set (line 55) | func (amc *AlertMuteCacheType) Set(ms map[int64][]*models.AlertMute, t... method Gets (line 65) | func (amc *AlertMuteCacheType) Gets(bgid int64) ([]*models.AlertMute, ... method GetAllStructs (line 72) | func (amc *AlertMuteCacheType) GetAllStructs() map[int64][]models.Aler... method SyncAlertMutes (line 87) | func (amc *AlertMuteCacheType) SyncAlertMutes() { method loopSyncAlertMutes (line 97) | func (amc *AlertMuteCacheType) loopSyncAlertMutes() { method syncAlertMutes (line 107) | func (amc *AlertMuteCacheType) syncAlertMutes() error { function NewAlertMuteCache (line 26) | func NewAlertMuteCache(ctx *ctx.Context, stats *Stats) *AlertMuteCacheTy... FILE: memsto/alert_rule_cache.go type AlertRuleCacheType (line 16) | type AlertRuleCacheType struct method Reset (line 38) | func (arc *AlertRuleCacheType) Reset() { method StatChanged (line 47) | func (arc *AlertRuleCacheType) StatChanged(total, lastUpdated int64) b... method Set (line 55) | func (arc *AlertRuleCacheType) Set(m map[int64]*models.AlertRule, tota... method Get (line 65) | func (arc *AlertRuleCacheType) Get(ruleId int64) *models.AlertRule { method GetRuleIds (line 71) | func (arc *AlertRuleCacheType) GetRuleIds() []int64 { method SyncAlertRules (line 84) | func (arc *AlertRuleCacheType) SyncAlertRules() { method loopSyncAlertRules (line 94) | func (arc *AlertRuleCacheType) loopSyncAlertRules() { method syncAlertRules (line 104) | func (arc *AlertRuleCacheType) syncAlertRules() error { function NewAlertRuleCache (line 26) | func NewAlertRuleCache(ctx *ctx.Context, stats *Stats) *AlertRuleCacheTy... FILE: memsto/alert_subscribe_cache.go type AlertSubscribeCacheType (line 16) | type AlertSubscribeCacheType struct method Reset (line 38) | func (c *AlertSubscribeCacheType) Reset() { method StatChanged (line 47) | func (c *AlertSubscribeCacheType) StatChanged(total, lastUpdated int64... method Set (line 55) | func (c *AlertSubscribeCacheType) Set(m map[int64][]*models.AlertSubsc... method Get (line 65) | func (c *AlertSubscribeCacheType) Get(ruleId int64) ([]*models.AlertSu... method GetAll (line 73) | func (c *AlertSubscribeCacheType) GetAll() []*models.AlertSubscribe { method GetStructs (line 83) | func (c *AlertSubscribeCacheType) GetStructs(ruleId int64) []models.Al... method SyncAlertSubscribes (line 100) | func (c *AlertSubscribeCacheType) SyncAlertSubscribes() { method loopSyncAlertSubscribes (line 110) | func (c *AlertSubscribeCacheType) loopSyncAlertSubscribes() { method syncAlertSubscribes (line 120) | func (c *AlertSubscribeCacheType) syncAlertSubscribes() error { function NewAlertSubscribeCache (line 26) | func NewAlertSubscribeCache(ctx *ctx.Context, stats *Stats) *AlertSubscr... FILE: memsto/busi_group_cache.go type BusiGroupCacheType (line 16) | type BusiGroupCacheType struct method StatChanged (line 39) | func (c *BusiGroupCacheType) StatChanged(total, lastUpdated int64) bool { method Set (line 47) | func (c *BusiGroupCacheType) Set(ugs map[int64]*models.BusiGroup, tota... method GetByBusiGroupId (line 57) | func (c *BusiGroupCacheType) GetByBusiGroupId(id int64) *models.BusiGr... method GetNamesByBusiGroupIds (line 63) | func (c *BusiGroupCacheType) GetNamesByBusiGroupIds(ids []int64) []str... method SyncBusiGroups (line 75) | func (c *BusiGroupCacheType) SyncBusiGroups() { method loopSyncBusiGroups (line 84) | func (c *BusiGroupCacheType) loopSyncBusiGroups() { method syncBusiGroups (line 94) | func (c *BusiGroupCacheType) syncBusiGroups() error { method GetNameByBusiGroupId (line 126) | func (c *BusiGroupCacheType) GetNameByBusiGroupId(id int64) string { function NewBusiGroupCache (line 26) | func NewBusiGroupCache(ctx *ctx.Context, stats *Stats) *BusiGroupCacheTy... FILE: memsto/config_cache.go type ConfigCache (line 16) | type ConfigCache struct method initSyncConfigs (line 42) | func (c *ConfigCache) initSyncConfigs() { method loopSyncConfigs (line 52) | func (c *ConfigCache) loopSyncConfigs() { method syncConfigs (line 62) | func (c *ConfigCache) syncConfigs() error { method statChanged (line 94) | func (c *ConfigCache) statChanged(total int64, updated int64) bool { method Set (line 101) | func (c *ConfigCache) Set(decryptMap map[string]string, total int64, u... method Get (line 109) | func (c *ConfigCache) Get() map[string]string { method GetLastUpdateTime (line 119) | func (c *ConfigCache) GetLastUpdateTime() int64 { function NewConfigCache (line 28) | func NewConfigCache(ctx *ctx.Context, status *Stats, privateKey []byte, ... FILE: memsto/config_cval_cache.go type CvalCache (line 17) | type CvalCache struct method initSyncConfigs (line 39) | func (c *CvalCache) initSyncConfigs() { method loopSyncConfigs (line 53) | func (c *CvalCache) loopSyncConfigs() { method syncConfigs (line 63) | func (c *CvalCache) syncConfigs() error { method statChanged (line 95) | func (c *CvalCache) statChanged(total int64, updated int64) bool { method Set (line 102) | func (c *CvalCache) Set(cvals []*models.Configs, total int64, updated ... method Get (line 112) | func (c *CvalCache) Get(ckey string) string { method GetLastUpdateTime (line 118) | func (c *CvalCache) GetLastUpdateTime() int64 { method GetSiteInfo (line 131) | func (c *CvalCache) GetSiteInfo() *SiteInfo { method PrintBodyPaths (line 144) | func (c *CvalCache) PrintBodyPaths() map[string]struct{} { method PrintAccessLog (line 153) | func (c *CvalCache) PrintAccessLog() bool { function NewCvalCache (line 27) | func NewCvalCache(ctx *ctx.Context, stats *Stats) *CvalCache { type SiteInfo (line 124) | type SiteInfo struct FILE: memsto/datasource_cache.go type DatasourceCacheType (line 17) | type DatasourceCacheType struct method GetIDsByDsCateAndQueries (line 47) | func (d *DatasourceCacheType) GetIDsByDsCateAndQueries(cate string, da... method StatChanged (line 53) | func (d *DatasourceCacheType) StatChanged(total, lastUpdated int64) bo... method Set (line 61) | func (d *DatasourceCacheType) Set(ds map[int64]*models.Datasource, tot... method GetById (line 85) | func (d *DatasourceCacheType) GetById(id int64) *models.Datasource { method SyncDatasources (line 91) | func (d *DatasourceCacheType) SyncDatasources() { method loopSyncDatasources (line 100) | func (d *DatasourceCacheType) loopSyncDatasources() { method syncDatasources (line 110) | func (d *DatasourceCacheType) syncDatasources() error { function NewDatasourceCache (line 31) | func NewDatasourceCache(ctx *ctx.Context, stats *Stats) *DatasourceCache... FILE: memsto/drop_ident.go type Item (line 8) | type Item struct type IdentCountCacheType (line 13) | type IdentCountCacheType struct method Set (line 27) | func (c *IdentCountCacheType) Set(ident string, count int, ts int64) { method Increment (line 37) | func (c *IdentCountCacheType) Increment(ident string, num int) { method Exists (line 55) | func (c *IdentCountCacheType) Exists(ident string) bool { method Get (line 62) | func (c *IdentCountCacheType) Get(ident string) int { method GetsAndFlush (line 72) | func (c *IdentCountCacheType) GetsAndFlush() map[string]Item { method CronDeleteExpired (line 83) | func (c *IdentCountCacheType) CronDeleteExpired() { method deleteExpired (line 91) | func (c *IdentCountCacheType) deleteExpired() { function NewIdentCountCache (line 18) | func NewIdentCountCache() *IdentCountCacheType { FILE: memsto/es_index_pattern.go type EsIndexPatternCacheType (line 13) | type EsIndexPatternCacheType struct method Reset (line 30) | func (p *EsIndexPatternCacheType) Reset() { method Set (line 37) | func (p *EsIndexPatternCacheType) Set(m map[int64]*models.EsIndexPatte... method Get (line 43) | func (p *EsIndexPatternCacheType) Get(id int64) (*models.EsIndexPatter... method SyncEsIndexPattern (line 51) | func (p *EsIndexPatternCacheType) SyncEsIndexPattern() { method loopSyncEsIndexPattern (line 60) | func (p *EsIndexPatternCacheType) loopSyncEsIndexPattern() { method syncEsIndexPattern (line 70) | func (p *EsIndexPatternCacheType) syncEsIndexPattern() error { function NewEsIndexPatternCacheType (line 20) | func NewEsIndexPatternCacheType(ctx *ctx.Context) *EsIndexPatternCacheTy... FILE: memsto/event_processor_cache.go type EventProcessorCacheType (line 16) | type EventProcessorCacheType struct method Reset (line 38) | func (epc *EventProcessorCacheType) Reset() { method StatChanged (line 47) | func (epc *EventProcessorCacheType) StatChanged(total, lastUpdated int... method Set (line 55) | func (epc *EventProcessorCacheType) Set(m map[int64]*models.EventPipel... method Get (line 65) | func (epc *EventProcessorCacheType) Get(processorId int64) *models.Eve... method GetProcessorIds (line 71) | func (epc *EventProcessorCacheType) GetProcessorIds() []int64 { method SyncEventProcessors (line 84) | func (epc *EventProcessorCacheType) SyncEventProcessors() { method loopSyncEventProcessors (line 94) | func (epc *EventProcessorCacheType) loopSyncEventProcessors() { method syncEventProcessors (line 104) | func (epc *EventProcessorCacheType) syncEventProcessors() error { function NewEventProcessorCache (line 26) | func NewEventProcessorCache(ctx *ctx.Context, stats *Stats) *EventProces... FILE: memsto/host_alert_rule_targets.go type TargetsOfAlertRuleCacheType (line 13) | type TargetsOfAlertRuleCacheType struct method Reset (line 38) | func (tc *TargetsOfAlertRuleCacheType) Reset() { method Set (line 47) | func (tc *TargetsOfAlertRuleCacheType) Set(m map[string]map[int64][]st... method Get (line 57) | func (tc *TargetsOfAlertRuleCacheType) Get(engineName string, rid int6... method SyncTargets (line 69) | func (tc *TargetsOfAlertRuleCacheType) SyncTargets() { method loopSyncTargets (line 78) | func (tc *TargetsOfAlertRuleCacheType) loopSyncTargets() { method syncTargets (line 88) | func (tc *TargetsOfAlertRuleCacheType) syncTargets() error { function NewTargetOfAlertRuleCache (line 24) | func NewTargetOfAlertRuleCache(ctx *ctx.Context, engineName string, stat... FILE: memsto/memsto.go function exit (line 10) | func exit(code int) { FILE: memsto/message_template_cache.go type MessageTemplateCacheType (line 16) | type MessageTemplateCacheType struct method Reset (line 38) | func (mtc *MessageTemplateCacheType) Reset() { method StatChanged (line 47) | func (mtc *MessageTemplateCacheType) StatChanged(total, lastUpdated in... method Set (line 55) | func (mtc *MessageTemplateCacheType) Set(m map[int64]*models.MessageTe... method Get (line 65) | func (mtc *MessageTemplateCacheType) Get(templateId int64) *models.Mes... method GetTemplateIds (line 71) | func (mtc *MessageTemplateCacheType) GetTemplateIds() []int64 { method SyncMessageTemplates (line 84) | func (mtc *MessageTemplateCacheType) SyncMessageTemplates() { method loopSyncMessageTemplates (line 94) | func (mtc *MessageTemplateCacheType) loopSyncMessageTemplates() { method syncMessageTemplates (line 104) | func (mtc *MessageTemplateCacheType) syncMessageTemplates() error { function NewMessageTemplateCache (line 26) | func NewMessageTemplateCache(ctx *ctx.Context, stats *Stats) *MessageTem... FILE: memsto/notify_channel_cache.go type NotifyTask (line 24) | type NotifyTask struct type NotifyRecordFunc (line 34) | type NotifyRecordFunc type NotifyChannelCacheType (line 36) | type NotifyChannelCacheType struct method SetNotifyRecordFunc (line 76) | func (ncc *NotifyChannelCacheType) SetNotifyRecordFunc(fn NotifyRecord... method StatChanged (line 80) | func (ncc *NotifyChannelCacheType) StatChanged(total, lastUpdated int6... method Set (line 88) | func (ncc *NotifyChannelCacheType) Set(m map[int64]*models.NotifyChann... method removeDeletedChannels (line 104) | func (ncc *NotifyChannelCacheType) removeDeletedChannels(newChannels m... method addOrUpdateChannels (line 135) | func (ncc *NotifyChannelCacheType) addOrUpdateChannels(newChannels map... method channelConfigChanged (line 192) | func (ncc *NotifyChannelCacheType) channelConfigChanged(oldChannel, ne... method stopChannelResources (line 206) | func (ncc *NotifyChannelCacheType) stopChannelResources(chID int64) { method startHttpChannel (line 223) | func (ncc *NotifyChannelCacheType) startHttpChannel(chID int64, channe... method startNotifyConsumer (line 247) | func (ncc *NotifyChannelCacheType) startNotifyConsumer(channelID int64... method processNotifyTask (line 277) | func (ncc *NotifyChannelCacheType) processNotifyTask(task *NotifyTask) { method needBatchContacts (line 312) | func (ncc *NotifyChannelCacheType) needBatchContacts(requestConfig *mo... method getSendTarget (line 321) | func (ncc *NotifyChannelCacheType) getSendTarget(customParams map[stri... method Get (line 340) | func (ncc *NotifyChannelCacheType) Get(channelId int64) *models.Notify... method GetHttpClient (line 346) | func (ncc *NotifyChannelCacheType) GetHttpClient(channelId int64) *htt... method GetSmtpClient (line 352) | func (ncc *NotifyChannelCacheType) GetSmtpClient(channelId int64) chan... method GetChannelIds (line 358) | func (ncc *NotifyChannelCacheType) GetChannelIds() []int64 { method EnqueueNotifyTask (line 372) | func (ncc *NotifyChannelCacheType) EnqueueNotifyTask(task *NotifyTask)... method SyncNotifyChannels (line 390) | func (ncc *NotifyChannelCacheType) SyncNotifyChannels() { method loopSyncNotifyChannels (line 399) | func (ncc *NotifyChannelCacheType) loopSyncNotifyChannels() { method syncNotifyChannels (line 409) | func (ncc *NotifyChannelCacheType) syncNotifyChannels() error { method startEmailSender (line 446) | func (ncc *NotifyChannelCacheType) startEmailSender(chID int64, smtp *... method dialSmtp (line 534) | func (ncc *NotifyChannelCacheType) dialSmtp(quitCh chan struct{}, d *g... function NewNotifyChannelCache (line 57) | func NewNotifyChannelCache(ctx *ctx.Context, stats *Stats) *NotifyChanne... FILE: memsto/notify_config.go type NotifyConfigCacheType (line 22) | type NotifyConfigCacheType struct method SyncNotifyConfigs (line 59) | func (w *NotifyConfigCacheType) SyncNotifyConfigs() { method loopSyncNotifyConfigs (line 68) | func (w *NotifyConfigCacheType) loopSyncNotifyConfigs() { method syncNotifyConfigs (line 78) | func (w *NotifyConfigCacheType) syncNotifyConfigs() error { method GetWebhooks (line 189) | func (w *NotifyConfigCacheType) GetWebhooks() map[string]*models.Webho... method GetSMTP (line 195) | func (w *NotifyConfigCacheType) GetSMTP() aconf.SMTPConfig { method GetNotifyScript (line 201) | func (w *NotifyConfigCacheType) GetNotifyScript() models.NotifyScript { constant DefaultSMTP (line 32) | DefaultSMTP = ` constant DefaultIbex (line 42) | DefaultIbex = ` function NewNotifyConfigCache (line 49) | func NewNotifyConfigCache(ctx *ctx.Context, configCache *ConfigCache) *N... FILE: memsto/notify_rule_cache.go type NotifyRuleCacheType (line 16) | type NotifyRuleCacheType struct method Reset (line 38) | func (nrc *NotifyRuleCacheType) Reset() { method StatChanged (line 47) | func (nrc *NotifyRuleCacheType) StatChanged(total, lastUpdated int64) ... method Set (line 55) | func (nrc *NotifyRuleCacheType) Set(m map[int64]*models.NotifyRule, to... method Get (line 65) | func (nrc *NotifyRuleCacheType) Get(ruleId int64) *models.NotifyRule { method GetRuleIds (line 71) | func (nrc *NotifyRuleCacheType) GetRuleIds() []int64 { method SyncNotifyRules (line 84) | func (nrc *NotifyRuleCacheType) SyncNotifyRules() { method loopSyncNotifyRules (line 94) | func (nrc *NotifyRuleCacheType) loopSyncNotifyRules() { method syncNotifyRules (line 104) | func (nrc *NotifyRuleCacheType) syncNotifyRules() error { function NewNotifyRuleCache (line 26) | func NewNotifyRuleCache(ctx *ctx.Context, stats *Stats) *NotifyRuleCache... FILE: memsto/recording_rule_cache.go type RecordingRuleCacheType (line 16) | type RecordingRuleCacheType struct method Reset (line 38) | func (rrc *RecordingRuleCacheType) Reset() { method StatChanged (line 47) | func (rrc *RecordingRuleCacheType) StatChanged(total, lastUpdated int6... method Set (line 55) | func (rrc *RecordingRuleCacheType) Set(m map[int64]*models.RecordingRu... method Get (line 65) | func (rrc *RecordingRuleCacheType) Get(ruleId int64) *models.Recording... method GetRuleIds (line 71) | func (rrc *RecordingRuleCacheType) GetRuleIds() []int64 { method SyncRecordingRules (line 84) | func (rrc *RecordingRuleCacheType) SyncRecordingRules() { method loopSyncRecordingRules (line 94) | func (rrc *RecordingRuleCacheType) loopSyncRecordingRules() { method syncRecordingRules (line 104) | func (rrc *RecordingRuleCacheType) syncRecordingRules() error { function NewRecordingRuleCache (line 26) | func NewRecordingRuleCache(ctx *ctx.Context, stats *Stats) *RecordingRul... FILE: memsto/stat.go type Stats (line 5) | type Stats struct function NewSyncStats (line 10) | func NewSyncStats() *Stats { FILE: memsto/target_cache.go type TargetCacheType (line 22) | type TargetCacheType struct method Reset (line 50) | func (tc *TargetCacheType) Reset() { method StatChanged (line 60) | func (tc *TargetCacheType) StatChanged(total, lastUpdated int64) bool { method Set (line 68) | func (tc *TargetCacheType) Set(m map[string]*models.Target, total, las... method Get (line 87) | func (tc *TargetCacheType) Get(ident string) (*models.Target, bool) { method GetByIp (line 94) | func (tc *TargetCacheType) GetByIp(ip string) ([]*models.Target, bool) { method GetAll (line 110) | func (tc *TargetCacheType) GetAll() []*models.Target { method GetAllBeatTime (line 121) | func (tc *TargetCacheType) GetAllBeatTime() map[string]int64 { method refreshBeatTime (line 132) | func (tc *TargetCacheType) refreshBeatTime() { method refreshHostMetas (line 164) | func (tc *TargetCacheType) refreshHostMetas() { method Gets (line 195) | func (tc *TargetCacheType) Gets(idents []string) []*models.Target { method GetOffsetHost (line 207) | func (tc *TargetCacheType) GetOffsetHost(targets []*models.Target, now... method SyncTargets (line 235) | func (tc *TargetCacheType) SyncTargets() { method loopSyncTargets (line 244) | func (tc *TargetCacheType) loopSyncTargets() { method syncTargets (line 254) | func (tc *TargetCacheType) syncTargets() error { method GetHostUpdateTime (line 313) | func (tc *TargetCacheType) GetHostUpdateTime(targets []string) map[str... method GetHostMetas (line 333) | func (tc *TargetCacheType) GetHostMetas(targets []*models.Target) map[... function NewTargetCache (line 35) | func NewTargetCache(ctx *ctx.Context, stats *Stats, redis storage.Redis)... FILE: memsto/task_tpl_cache.go type TaskTplCache (line 16) | type TaskTplCache struct method Set (line 36) | func (ttc *TaskTplCache) Set(tpls map[int64]*models.TaskTpl, total, la... method Get (line 45) | func (ttc *TaskTplCache) Get(id int64) *models.TaskTpl { method SyncTaskTpl (line 52) | func (ttc *TaskTplCache) SyncTaskTpl() { method syncTaskTpl (line 60) | func (ttc *TaskTplCache) syncTaskTpl() error { method loopSyncTaskTpl (line 92) | func (ttc *TaskTplCache) loopSyncTaskTpl() { method StatChange (line 102) | func (ttc *TaskTplCache) StatChange(total int64, lastUpdated int64) bo... function NewTaskTplCache (line 24) | func NewTaskTplCache(ctx *ctx.Context) *TaskTplCache { FILE: memsto/user_cache.go type UserCacheType (line 18) | type UserCacheType struct method StatChanged (line 42) | func (uc *UserCacheType) StatChanged(total, lastUpdated, configsTotal,... method Set (line 50) | func (uc *UserCacheType) Set(m map[int64]*models.User, total, lastUpda... method GetByUserId (line 62) | func (uc *UserCacheType) GetByUserId(id int64) *models.User { method GetByUsername (line 68) | func (uc *UserCacheType) GetByUsername(name string) *models.User { method GetByUserIds (line 79) | func (uc *UserCacheType) GetByUserIds(ids []int64) []*models.User { method GetMaintainerUsers (line 106) | func (uc *UserCacheType) GetMaintainerUsers() []*models.User { method SyncUsers (line 124) | func (uc *UserCacheType) SyncUsers() { method loopSyncUsers (line 135) | func (uc *UserCacheType) loopSyncUsers() { method syncUsers (line 145) | func (uc *UserCacheType) syncUsers() error { method SetLastActiveTime (line 197) | func (uc *UserCacheType) SetLastActiveTime(userId int64, lastActiveTim... method loopUpdateLastActiveTime (line 205) | func (uc *UserCacheType) loopUpdateLastActiveTime() { method UpdateUsersLastActiveTime (line 222) | func (uc *UserCacheType) UpdateUsersLastActiveTime() error { function NewUserCache (line 30) | func NewUserCache(ctx *ctx.Context, stats *Stats) *UserCacheType { FILE: memsto/user_group_cache.go type UserGroupCacheType (line 16) | type UserGroupCacheType struct method StatChanged (line 38) | func (ugc *UserGroupCacheType) StatChanged(total, lastUpdated int64) b... method Set (line 46) | func (ugc *UserGroupCacheType) Set(ugs map[int64]*models.UserGroup, to... method GetByUserGroupId (line 56) | func (ugc *UserGroupCacheType) GetByUserGroupId(id int64) *models.User... method GetByUserGroupIds (line 62) | func (ugc *UserGroupCacheType) GetByUserGroupIds(ids []int64) []*model... method SyncUserGroups (line 89) | func (ugc *UserGroupCacheType) SyncUserGroups() { method loopSyncUserGroups (line 99) | func (ugc *UserGroupCacheType) loopSyncUserGroups() { method syncUserGroups (line 109) | func (ugc *UserGroupCacheType) syncUserGroups() error { function NewUserGroupCache (line 26) | func NewUserGroupCache(ctx *ctx.Context, stats *Stats) *UserGroupCacheTy... FILE: memsto/user_token_cache.go type UserTokenCacheType (line 16) | type UserTokenCacheType struct method StatChanged (line 38) | func (utc *UserTokenCacheType) StatChanged(total int64) bool { method Set (line 45) | func (utc *UserTokenCacheType) Set(tokenUsers map[string]*models.User,... method GetByToken (line 53) | func (utc *UserTokenCacheType) GetByToken(token string) *models.User { method SyncUserTokens (line 61) | func (utc *UserTokenCacheType) SyncUserTokens() { method loopUpdateUserTokenLastUsedTime (line 72) | func (utc *UserTokenCacheType) loopUpdateUserTokenLastUsedTime() { method loopSyncUserTokens (line 82) | func (utc *UserTokenCacheType) loopSyncUserTokens() { method updateUserTokenLastUsedTime (line 92) | func (utc *UserTokenCacheType) updateUserTokenLastUsedTime() error { method syncUserTokens (line 123) | func (utc *UserTokenCacheType) syncUserTokens() error { function NewUserTokenCache (line 26) | func NewUserTokenCache(ctx *ctx.Context, stats *Stats) *UserTokenCacheTy... FILE: models/alert_aggr_view.go type AlertAggrView (line 15) | type AlertAggrView struct method TableName (line 25) | func (v *AlertAggrView) TableName() string { method Verify (line 29) | func (v *AlertAggrView) Verify() error { method Add (line 76) | func (v *AlertAggrView) Add(ctx *ctx.Context) error { method Update (line 88) | func (v *AlertAggrView) Update(ctx *ctx.Context) error { function AlertAggrViewDel (line 98) | func AlertAggrViewDel(ctx *ctx.Context, ids []int64, createBy ...interfa... function AlertAggrViewGets (line 110) | func AlertAggrViewGets(ctx *ctx.Context, createBy interface{}) ([]AlertA... function AlertAggrViewGet (line 129) | func AlertAggrViewGet(ctx *ctx.Context, where string, args ...interface{... function GetAlertAggrViewByViewID (line 143) | func GetAlertAggrViewByViewID(ctx *ctx.Context, viewID int64) (*AlertAgg... FILE: models/alert_cur_event.go type AlertCurEvent (line 23) | type AlertCurEvent struct method SetTagsMap (line 94) | func (e *AlertCurEvent) SetTagsMap() { method JsonTagsAndValue (line 111) | func (e *AlertCurEvent) JsonTagsAndValue() map[string]string { method TableName (line 173) | func (e *AlertCurEvent) TableName() string { method Add (line 177) | func (e *AlertCurEvent) Add(ctx *ctx.Context) error { method ParseRule (line 186) | func (e *AlertCurEvent) ParseRule(field string) error { method ParseURL (line 276) | func (e *AlertCurEvent) ParseURL(url string) (string, error) { method GenCardTitle (line 331) | func (e *AlertCurEvent) GenCardTitle(rule string) (string, error) { method GetTagValue (line 367) | func (e *AlertCurEvent) GetTagValue(tagkey string) string { method GetField (line 377) | func (e *AlertCurEvent) GetField(field string) string { method ToHis (line 408) | func (e *AlertCurEvent) ToHis(ctx *ctx.Context) *AlertHisEvent { method DB2FE (line 456) | func (e *AlertCurEvent) DB2FE() error { method FE2DB (line 487) | func (e *AlertCurEvent) FE2DB() { method FillTagsMap (line 501) | func (e *AlertCurEvent) FillTagsMap() { method DB2Mem (line 518) | func (e *AlertCurEvent) DB2Mem() { method OverrideGlobalWebhook (line 545) | func (e *AlertCurEvent) OverrideGlobalWebhook() bool { method FillNotifyGroups (line 583) | func (e *AlertCurEvent) FillNotifyGroups(ctx *ctx.Context, cache map[i... method UpdateFieldsMap (line 869) | func (e *AlertCurEvent) UpdateFieldsMap(ctx *ctx.Context, fields map[s... method DeepCopy (line 971) | func (e *AlertCurEvent) DeepCopy() *AlertCurEvent { type EventNotifyRule (line 89) | type EventNotifyRule struct type EventTriggerValues (line 169) | type EventTriggerValues struct type AggrRule (line 181) | type AggrRule struct function parseAggrRules (line 305) | func parseAggrRules(rule string) []*AggrRule { function FillRuleConfigTplName (line 554) | func FillRuleConfigTplName(ctx *ctx.Context, ruleConfig string) (interfa... function AlertCurEventTotal (line 617) | func AlertCurEventTotal(ctx *ctx.Context, prods []string, bgids []int64,... function AlertCurEventsGet (line 661) | func AlertCurEventsGet(ctx *ctx.Context, prods []string, bgids []int64, ... function AlertCurEventCountByRuleId (line 717) | func AlertCurEventCountByRuleId(ctx *ctx.Context, rids []int64, stime, e... function AlertCurEventDel (line 737) | func AlertCurEventDel(ctx *ctx.Context, ids []int64) error { function AlertCurEventDelByHash (line 745) | func AlertCurEventDelByHash(ctx *ctx.Context, hash string) error { function AlertCurEventExists (line 754) | func AlertCurEventExists(ctx *ctx.Context, where string, args ...interfa... function AlertCurEventGet (line 758) | func AlertCurEventGet(ctx *ctx.Context, where string, args ...interface{... function AlertCurEventGetById (line 775) | func AlertCurEventGetById(ctx *ctx.Context, id int64) (*AlertCurEvent, e... type AlertNumber (line 779) | type AlertNumber struct function AlertNumbers (line 785) | func AlertNumbers(ctx *ctx.Context, bgids []int64) (map[int64]int64, err... function AlertCurEventGetByIds (line 804) | func AlertCurEventGetByIds(ctx *ctx.Context, ids []int64) ([]*AlertCurEv... function AlertCurEventGetByRuleIdAndDsId (line 821) | func AlertCurEventGetByRuleIdAndDsId(ctx *ctx.Context, ruleId int64, dat... function AlertCurEventGetMap (line 842) | func AlertCurEventGetMap(ctx *ctx.Context, cluster string) (map[int64]ma... function AlertCurEventUpgradeToV6 (line 873) | func AlertCurEventUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasourc... function AlertCurEventGetsFromAlertMute (line 921) | func AlertCurEventGetsFromAlertMute(ctx *ctx.Context, alertMute *AlertMu... function AlertCurEventStatistics (line 937) | func AlertCurEventStatistics(ctx *ctx.Context, stime time.Time) map[stri... FILE: models/alert_his_event.go type AlertHisEvent (line 14) | type AlertHisEvent struct method TableName (line 64) | func (e *AlertHisEvent) TableName() string { method Add (line 68) | func (e *AlertHisEvent) Add(ctx *ctx.Context) error { method DB2FE (line 72) | func (e *AlertHisEvent) DB2FE() { method FillNotifyGroups (line 90) | func (e *AlertHisEvent) FillNotifyGroups(ctx *ctx.Context, cache map[i... method UpdateFieldsMap (line 275) | func (m *AlertHisEvent) UpdateFieldsMap(ctx *ctx.Context, fields map[s... method ToCur (line 395) | func (e *AlertHisEvent) ToCur() *AlertCurEvent { function AlertHisEventTotal (line 128) | func AlertHisEventTotal( function AlertHisEventGets (line 176) | func AlertHisEventGets(ctx *ctx.Context, prods []string, bgids []int64, ... function AlertHisEventGet (line 233) | func AlertHisEventGet(ctx *ctx.Context, where string, args ...interface{... function AlertHisEventGetById (line 250) | func AlertHisEventGetById(ctx *ctx.Context, id int64) (*AlertHisEvent, e... function AlertHisEventGetByHash (line 254) | func AlertHisEventGetByHash(ctx *ctx.Context, hash string) (*AlertHisEve... function AlertHisEventBatchDelete (line 266) | func AlertHisEventBatchDelete(ctx *ctx.Context, timestamp int64, severit... function AlertHisEventUpgradeToV6 (line 279) | func AlertHisEventUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasourc... function EventPersist (line 325) | func EventPersist(ctx *ctx.Context, event *AlertCurEvent) error { function AlertHisEventGetByIds (line 378) | func AlertHisEventGetByIds(ctx *ctx.Context, ids []int64) ([]*AlertHisEv... FILE: models/alert_mute.go type TagFilter (line 19) | type TagFilter struct method Verify (line 28) | func (t *TagFilter) Verify() error { function ParseTagFilter (line 45) | func ParseTagFilter(bFilters []TagFilter) ([]TagFilter, error) { function GetTagFilters (line 108) | func GetTagFilters(jsonArr ormx.JSONArr) ([]TagFilter, error) { constant TimeRange (line 175) | TimeRange int = 0 constant Periodic (line 176) | Periodic int = 1 type AlertMute (line 178) | type AlertMute struct method TableName (line 212) | func (m *AlertMute) TableName() string { method Verify (line 298) | func (m *AlertMute) Verify() error { method Parse (line 318) | func (m *AlertMute) Parse() error { method Add (line 328) | func (m *AlertMute) Add(ctx *ctx.Context) error { method Update (line 343) | func (m *AlertMute) Update(ctx *ctx.Context, arm AlertMute) error { method FE2DB (line 363) | func (m *AlertMute) FE2DB() error { method DB2FE (line 387) | func (m *AlertMute) DB2FE() error { method UpdateFieldsMap (line 428) | func (m *AlertMute) UpdateFieldsMap(ctx *ctx.Context, fields map[strin... method IsWithinTimeRange (line 432) | func (m *AlertMute) IsWithinTimeRange(checkTime int64) bool { method IsWithinPeriodicMute (line 439) | func (m *AlertMute) IsWithinPeriodicMute(checkTime int64) bool { type PeriodicMute (line 206) | type PeriodicMute struct function AlertMuteGetById (line 216) | func AlertMuteGetById(ctx *ctx.Context, id int64) (*AlertMute, error) { function AlertMuteGet (line 220) | func AlertMuteGet(ctx *ctx.Context, where string, args ...interface{}) (... function AlertMuteGets (line 234) | func AlertMuteGets(ctx *ctx.Context, prods []string, bgid int64, disable... function AlertMuteGetsByBG (line 277) | func AlertMuteGetsByBG(ctx *ctx.Context, groupId int64) (lst []AlertMute... function AlertMuteGetsByBGIds (line 285) | func AlertMuteGetsByBGIds(ctx *ctx.Context, bgids []int64) (lst []AlertM... function AlertMuteDel (line 463) | func AlertMuteDel(ctx *ctx.Context, ids []int64) error { function AlertMuteStatistics (line 470) | func AlertMuteStatistics(ctx *ctx.Context) (*Statistics, error) { function AlertMuteGetsAll (line 487) | func AlertMuteGetsAll(ctx *ctx.Context) ([]*AlertMute, error) { function AlertMuteUpgradeToV6 (line 519) | func AlertMuteUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasource) e... FILE: models/alert_rule.go constant METRIC (line 23) | METRIC = "metric" constant LOG (line 24) | LOG = "logging" constant HOST (line 25) | HOST = "host" constant LOKI (line 26) | LOKI = "loki" constant PROMETHEUS (line 28) | PROMETHEUS = "prometheus" constant TDENGINE (line 29) | TDENGINE = "tdengine" constant ELASTICSEARCH (line 30) | ELASTICSEARCH = "elasticsearch" constant MYSQL (line 31) | MYSQL = "mysql" constant POSTGRESQL (line 32) | POSTGRESQL = "pgsql" constant DORIS (line 33) | DORIS = "doris" constant OPENSEARCH (line 34) | OPENSEARCH = "opensearch" constant CLICKHOUSE (line 36) | CLICKHOUSE = "ck" constant VICTORIALOGS (line 37) | VICTORIALOGS = "victorialogs" constant AlertRuleEnabled (line 41) | AlertRuleEnabled = 0 constant AlertRuleDisabled (line 42) | AlertRuleDisabled = 1 constant AlertRuleEnableInGlobalBG (line 44) | AlertRuleEnableInGlobalBG = 0 constant AlertRuleEnableInOneBG (line 45) | AlertRuleEnableInOneBG = 1 constant AlertRuleNotNotifyRecovered (line 47) | AlertRuleNotNotifyRecovered = 0 constant AlertRuleNotifyRecovered (line 48) | AlertRuleNotifyRecovered = 1 constant AlertRuleNotifyRepeatStep60Min (line 50) | AlertRuleNotifyRepeatStep60Min = 60 constant AlertRuleRecoverDuration0Sec (line 52) | AlertRuleRecoverDuration0Sec = 0 constant SeverityEmergency (line 56) | SeverityEmergency = 1 constant SeverityWarning (line 57) | SeverityWarning = 2 constant SeverityNotice (line 58) | SeverityNotice = 3 constant SeverityLowest (line 59) | SeverityLowest = 4 type AlertRule (line 62) | type AlertRule struct method TableName (line 468) | func (ar *AlertRule) TableName() string { method Verify (line 472) | func (ar *AlertRule) Verify() error { method validateCronPattern (line 561) | func (ar *AlertRule) validateCronPattern() error { method Add (line 578) | func (ar *AlertRule) Add(ctx *ctx.Context) error { method Update (line 599) | func (ar *AlertRule) Update(ctx *ctx.Context, arf AlertRule) error { method UpdateColumn (line 629) | func (ar *AlertRule) UpdateColumn(ctx *ctx.Context, column string, val... method UpdateFieldsMap (line 765) | func (ar *AlertRule) UpdateFieldsMap(ctx *ctx.Context, fields map[stri... method FillDatasourceQueries (line 769) | func (ar *AlertRule) FillDatasourceQueries() error { method FillSeverities (line 797) | func (ar *AlertRule) FillSeverities() error { method FillNotifyGroups (line 831) | func (ar *AlertRule) FillNotifyGroups(ctx *ctx.Context, cache map[int6... method FE2DB (line 875) | func (ar *AlertRule) FE2DB() error { method DB2FE (line 959) | func (ar *AlertRule) DB2FE() error { method IsPrometheusRule (line 1213) | func (ar *AlertRule) IsPrometheusRule() bool { method IsLokiRule (line 1217) | func (ar *AlertRule) IsLokiRule() bool { method IsTdengineRule (line 1221) | func (ar *AlertRule) IsTdengineRule() bool { method IsHostRule (line 1225) | func (ar *AlertRule) IsHostRule() bool { method IsInnerRule (line 1229) | func (ar *AlertRule) IsInnerRule() bool { method GetRuleType (line 1241) | func (ar *AlertRule) GetRuleType() string { method IsClickHouseRule (line 1249) | func (ar *AlertRule) IsClickHouseRule() bool { method IsElasticSearch (line 1253) | func (ar *AlertRule) IsElasticSearch() bool { method GenerateNewEvent (line 1257) | func (ar *AlertRule) GenerateNewEvent(ctx *ctx.Context) *AlertCurEvent { method UpdateEvent (line 1263) | func (ar *AlertRule) UpdateEvent(event *AlertCurEvent) { method Copy (line 1412) | func (ar *AlertRule) Copy(ctx *ctx.Context) (*AlertRule, error) { method Hash (line 1428) | func (ar *AlertRule) Hash() string { method Clone (line 1433) | func (ar *AlertRule) Clone(operatorName string, newBgid int64) *AlertR... type ChildVarConfig (line 128) | type ChildVarConfig struct type ParamQuery (line 133) | type ParamQuery struct type VarConfig (line 138) | type VarConfig struct type ParamQueryForFirst (line 144) | type ParamQueryForFirst struct type Tpl (line 150) | type Tpl struct type RuleConfig (line 156) | type RuleConfig struct type PromRuleConfig (line 169) | type PromRuleConfig struct type RecoverJudge (line 177) | type RecoverJudge constant Origin (line 180) | Origin RecoverJudge = 0 constant NotRecoverWhenNoData (line 181) | NotRecoverWhenNoData RecoverJudge = 1 constant RecoverOnCondition (line 182) | RecoverOnCondition RecoverJudge = 2 type RecoverConfig (line 185) | type RecoverConfig struct type HostRuleConfig (line 190) | type HostRuleConfig struct type PromQuery (line 196) | type PromQuery struct type HostTrigger (line 205) | type HostTrigger struct type RuleQuery (line 212) | type RuleQuery struct type NodataTrigger (line 223) | type NodataTrigger struct type Trigger (line 230) | type Trigger struct type Join (line 244) | type Join struct type DatasourceQuery (line 256) | type DatasourceQuery struct function GetDatasourceIDsByDatasourceQueries (line 266) | func GetDatasourceIDsByDatasourceQueries[T any](datasourceQueries []Data... function GetHostsQuery (line 376) | func GetHostsQuery(queries []HostQuery) []map[string]interface{} { function ParseInt64 (line 446) | func ParseInt64(values []interface{}) []int64 { type HostQuery (line 453) | type HostQuery struct function Str2Int (line 459) | func Str2Int(arr []string) []int64 { function AlertRuleDels (line 1010) | func AlertRuleDels(ctx *ctx.Context, ids []int64, bgid ...int64) error { function AlertRuleExists (line 1030) | func AlertRuleExists(ctx *ctx.Context, id, groupId int64, name string) (... function GetAlertRuleIdsByTaskId (line 1042) | func GetAlertRuleIdsByTaskId(ctx *ctx.Context, taskId int64) ([]int64, e... function AlertRuleGets (line 1061) | func AlertRuleGets(ctx *ctx.Context, groupId int64) ([]AlertRule, error) { function AlertRuleGetsByBGIds (line 1075) | func AlertRuleGetsByBGIds(ctx *ctx.Context, bgids []int64) ([]AlertRule,... function AlertRuleGetsAll (line 1092) | func AlertRuleGetsAll(ctx *ctx.Context) ([]*AlertRule, error) { function AlertRulesGetsBy (line 1122) | func AlertRulesGetsBy(ctx *ctx.Context, prods []string, query, algorithm... function AlertRuleGet (line 1165) | func AlertRuleGet(ctx *ctx.Context, where string, args ...interface{}) (... function AlertRuleGetById (line 1181) | func AlertRuleGetById(ctx *ctx.Context, id int64) (*AlertRule, error) { function AlertRuleGetsByIds (line 1185) | func AlertRuleGetsByIds(ctx *ctx.Context, ids []int64) ([]AlertRule, err... function AlertRuleStatistics (line 1196) | func AlertRuleStatistics(ctx *ctx.Context) (*Statistics, error) { function AlertRuleUpgradeToV6 (line 1286) | func AlertRuleUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasource) e... function GetTargetsOfHostAlertRule (line 1362) | func GetTargetsOfHostAlertRule(ctx *ctx.Context, engineName string) (map... function InsertAlertRule (line 1421) | func InsertAlertRule(ctx *ctx.Context, ars []*AlertRule) error { FILE: models/alert_subscribe.go type AlertSubscribe (line 16) | type AlertSubscribe struct method TableName (line 58) | func (s *AlertSubscribe) TableName() string { method IsDisabled (line 103) | func (s *AlertSubscribe) IsDisabled() bool { method Verify (line 107) | func (s *AlertSubscribe) Verify() error { method FE2DB (line 154) | func (s *AlertSubscribe) FE2DB() error { method DB2FE (line 176) | func (s *AlertSubscribe) DB2FE() error { method Parse (line 204) | func (s *AlertSubscribe) Parse() error { method Add (line 214) | func (s *AlertSubscribe) Add(ctx *ctx.Context) error { method CompatibleWithOldRuleId (line 229) | func (s *AlertSubscribe) CompatibleWithOldRuleId() { method FillRuleNames (line 235) | func (s *AlertSubscribe) FillRuleNames(ctx *ctx.Context, cache map[int... method FillDatasourceIds (line 279) | func (s *AlertSubscribe) FillDatasourceIds(ctx *ctx.Context) error { method FillUserGroups (line 287) | func (s *AlertSubscribe) FillUserGroups(ctx *ctx.Context, cache map[in... method Update (line 332) | func (s *AlertSubscribe) Update(ctx *ctx.Context, selectField interfac... method MatchProd (line 388) | func (s *AlertSubscribe) MatchProd(prod string) bool { method MatchCate (line 396) | func (s *AlertSubscribe) MatchCate(cate string) bool { method MatchCluster (line 407) | func (s *AlertSubscribe) MatchCluster(dsId int64) bool { method ModifyEvent (line 422) | func (s *AlertSubscribe) ModifyEvent(event *AlertCurEvent) { method UpdateFieldsMap (line 451) | func (s *AlertSubscribe) UpdateFieldsMap(ctx *ctx.Context, fields map[... function AlertSubscribeGets (line 62) | func AlertSubscribeGets(ctx *ctx.Context, groupId int64) (lst []AlertSub... function AlertSubscribeGetsByBGIds (line 67) | func AlertSubscribeGetsByBGIds(ctx *ctx.Context, bgids []int64) (lst []A... function AlertSubscribeGetsByService (line 77) | func AlertSubscribeGetsByService(ctx *ctx.Context) (lst []AlertSubscribe... function AlertSubscribeGet (line 89) | func AlertSubscribeGet(ctx *ctx.Context, where string, args ...interface... function AlertSubscribeDel (line 344) | func AlertSubscribeDel(ctx *ctx.Context, ids []int64) error { function AlertSubscribeStatistics (line 351) | func AlertSubscribeStatistics(ctx *ctx.Context) (*Statistics, error) { function AlertSubscribeGetsAll (line 368) | func AlertSubscribeGetsAll(ctx *ctx.Context) ([]*AlertSubscribe, error) { function AlertSubscribeUpgradeToV6 (line 455) | func AlertSubscribeUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasour... FILE: models/alerting_engine.go type AlertingEngines (line 11) | type AlertingEngines struct method TableName (line 19) | func (e *AlertingEngines) TableName() string { method UpdateDatasourceId (line 24) | func (e *AlertingEngines) UpdateDatasourceId(ctx *ctx.Context, id int6... function AlertingEngineAdd (line 38) | func AlertingEngineAdd(ctx *ctx.Context, instance string, datasourceId i... function AlertingEngineDel (line 57) | func AlertingEngineDel(ctx *ctx.Context, ids []int64) error { function AlertingEngineGetDatasourceIds (line 64) | func AlertingEngineGetDatasourceIds(ctx *ctx.Context, instance string) (... function AlertingEngineGets (line 83) | func AlertingEngineGets(ctx *ctx.Context, where string, args ...interfac... function AlertingEngineGet (line 95) | func AlertingEngineGet(ctx *ctx.Context, where string, args ...interface... function AlertingEngineGetsClusters (line 108) | func AlertingEngineGetsClusters(ctx *ctx.Context, where string, args ...... function AlertingEngineGetsInstances (line 120) | func AlertingEngineGetsInstances(ctx *ctx.Context, where string, args ..... type HeartbeatInfo (line 132) | type HeartbeatInfo struct function AlertingEngineHeartbeatWithCluster (line 138) | func AlertingEngineHeartbeatWithCluster(ctx *ctx.Context, instance, clus... FILE: models/anomaly_point.go type AnomalyPoint (line 12) | type AnomalyPoint struct method ReadableValue (line 48) | func (v *AnomalyPoint) ReadableValue() string { type TriggerType (line 26) | type TriggerType constant TriggerTypeNormal (line 29) | TriggerTypeNormal TriggerType = "normal" constant TriggerTypeNodata (line 30) | TriggerTypeNodata TriggerType = "nodata" function NewAnomalyPoint (line 33) | func NewAnomalyPoint(key string, labels map[string]string, ts int64, val... function ConvertAnomalyPoints (line 60) | func ConvertAnomalyPoints(value model.Value) (lst []AnomalyPoint) { FILE: models/board.go constant PublicAnonymous (line 16) | PublicAnonymous = 0 constant PublicLogin (line 17) | PublicLogin = 1 constant PublicBusi (line 18) | PublicBusi = 2 type Board (line 21) | type Board struct method TableName (line 41) | func (b *Board) TableName() string { method Verify (line 45) | func (b *Board) Verify() error { method Clone (line 57) | func (b *Board) Clone(operatorName string, newBgid int64, suffix strin... method CanRenameIdent (line 78) | func (b *Board) CanRenameIdent(ctx *ctx.Context, ident string) (bool, ... method Add (line 91) | func (b *Board) Add(ctx *ctx.Context) error { method AtomicAdd (line 124) | func (b *Board) AtomicAdd(c *ctx.Context, payload string) error { method Update (line 143) | func (b *Board) Update(ctx *ctx.Context, selectField interface{}, sele... method Del (line 151) | func (b *Board) Del(ctx *ctx.Context) error { function BoardGetByID (line 165) | func BoardGetByID(ctx *ctx.Context, id int64) (*Board, error) { function BoardGet (line 180) | func BoardGet(ctx *ctx.Context, where string, args ...interface{}) (*Boa... function BoardCount (line 201) | func BoardCount(ctx *ctx.Context, where string, args ...interface{}) (nu... function BoardExists (line 205) | func BoardExists(ctx *ctx.Context, where string, args ...interface{}) (b... function BoardGetsByGroupId (line 211) | func BoardGetsByGroupId(ctx *ctx.Context, groupId int64, query string) (... function BoardGetsByBGIds (line 232) | func BoardGetsByBGIds(ctx *ctx.Context, gids []int64, query string) ([]B... function BoardGets (line 256) | func BoardGets(ctx *ctx.Context, query, where string, args ...interface{... function BoardSetHide (line 280) | func BoardSetHide(ctx *ctx.Context, ids []int64) error { function BoardGetsByBids (line 293) | func BoardGetsByBids(ctx *ctx.Context, bids []int64) ([]map[string]inter... FILE: models/board_busi.go type BoardBusigroup (line 8) | type BoardBusigroup struct method TableName (line 13) | func (BoardBusigroup) TableName() string { function BoardBusigroupAdd (line 17) | func BoardBusigroupAdd(tx *gorm.DB, boardId int64, busiGroupIds []int64)... function BoardBusigroupUpdate (line 36) | func BoardBusigroupUpdate(ctx *ctx.Context, boardId int64, busiGroupIds ... function BoardBusigroupDelByBoardId (line 49) | func BoardBusigroupDelByBoardId(ctx *ctx.Context, boardId int64) error { function BoardBusigroupCheck (line 54) | func BoardBusigroupCheck(ctx *ctx.Context, boardId int64, busiGroupIds [... function BoardBusigroupGets (line 59) | func BoardBusigroupGets(ctx *ctx.Context) ([]BoardBusigroup, error) { function BoardIdsByBusiGroupIds (line 66) | func BoardIdsByBusiGroupIds(ctx *ctx.Context, busiGroupIds []int64) ([]i... FILE: models/board_payload.go type BoardPayload (line 9) | type BoardPayload struct method TableName (line 14) | func (p *BoardPayload) TableName() string { method Update (line 18) | func (p *BoardPayload) Update(ctx *ctx.Context, selectField interface{... function BoardPayloadGets (line 22) | func BoardPayloadGets(ctx *ctx.Context, ids []int64) ([]*BoardPayload, e... function BoardPayloadGet (line 32) | func BoardPayloadGet(ctx *ctx.Context, id int64) (string, error) { function BoardPayloadSave (line 45) | func BoardPayloadSave(ctx *ctx.Context, id int64, payload string) error { FILE: models/builtin_cate.go type BuiltinCate (line 7) | type BuiltinCate struct method TableName (line 13) | func (b *BuiltinCate) TableName() string { method Create (line 18) | func (b *BuiltinCate) Create(c *ctx.Context) error { function BuiltinCateDelete (line 23) | func BuiltinCateDelete(c *ctx.Context, name string, userId int64) error { function BuiltinCateGetByUserId (line 28) | func BuiltinCateGetByUserId(c *ctx.Context, userId int64) (map[string]Bu... FILE: models/builtin_component.go constant SYSTEM (line 11) | SYSTEM = "system" type BuiltinComponent (line 14) | type BuiltinComponent struct method TableName (line 42) | func (bc *BuiltinComponent) TableName() string { method Verify (line 46) | func (bc *BuiltinComponent) Verify() error { method Add (line 64) | func (bc *BuiltinComponent) Add(ctx *ctx.Context, username string) err... method Update (line 83) | func (bc *BuiltinComponent) Update(ctx *ctx.Context, req BuiltinCompon... type PostgresBuiltinComponent (line 26) | type PostgresBuiltinComponent struct method TableName (line 38) | func (bc *PostgresBuiltinComponent) TableName() string { function BuiltinComponentExists (line 55) | func BuiltinComponentExists(ctx *ctx.Context, bc *BuiltinComponent) (boo... function BuiltinComponentDels (line 102) | func BuiltinComponentDels(ctx *ctx.Context, ids []int64) error { function BuiltinComponentGets (line 109) | func BuiltinComponentGets(ctx *ctx.Context, query string, disabled int) ... function BuiltinComponentGet (line 126) | func BuiltinComponentGet(ctx *ctx.Context, where string, args ...interfa... FILE: models/builtin_metrics.go type BuiltinMetric (line 15) | type BuiltinMetric struct method TableName (line 41) | func (bm *BuiltinMetric) TableName() string { method TableOptions (line 45) | func (bm *BuiltinMetric) TableOptions() string { method Verify (line 49) | func (bm *BuiltinMetric) Verify() error { method Add (line 76) | func (bm *BuiltinMetric) Add(ctx *ctx.Context, username string) error { method Update (line 96) | func (bm *BuiltinMetric) Update(ctx *ctx.Context, req BuiltinMetric) e... type Translation (line 35) | type Translation struct function BuiltinMetricExists (line 67) | func BuiltinMetricExists(ctx *ctx.Context, bm *BuiltinMetric) (bool, err... function BuiltinMetricDels (line 109) | func BuiltinMetricDels(ctx *ctx.Context, ids []int64) error { function BuiltinMetricGets (line 117) | func BuiltinMetricGets(ctx *ctx.Context, lang, collector, typ, query, un... function builtinMetricQueryBuild (line 127) | func builtinMetricQueryBuild(lang, collector string, session *gorm.DB, t... function BuiltinMetricGet (line 164) | func BuiltinMetricGet(ctx *ctx.Context, where string, args ...interface{... function BuiltinMetricTypes (line 178) | func BuiltinMetricTypes(ctx *ctx.Context, lang, collector, query string)... function BuiltinMetricCollectors (line 197) | func BuiltinMetricCollectors(ctx *ctx.Context, lang, typ, query string) ... function BuiltinMetricBatchUpdateColumn (line 216) | func BuiltinMetricBatchUpdateColumn(ctx *ctx.Context, col, old, new, upd... FILE: models/builtin_metrics_filter.go type MetricFilter (line 11) | type MetricFilter struct method TableName (line 28) | func (f *MetricFilter) TableName() string { method Verify (line 32) | func (f *MetricFilter) Verify() error { method Add (line 44) | func (f *MetricFilter) Add(ctx *ctx.Context) error { method Update (line 54) | func (f *MetricFilter) Update(ctx *ctx.Context) error { type GroupPerm (line 23) | type GroupPerm struct function MetricFilterDel (line 62) | func MetricFilterDel(ctx *ctx.Context, ids []int64) error { function MetricFilterGets (line 70) | func MetricFilterGets(ctx *ctx.Context, where string, args ...interface{... function MetricFilterGet (line 77) | func MetricFilterGet(ctx *ctx.Context, id int64) (*MetricFilter, error) { FILE: models/builtin_payload.go type BuiltinPayload (line 11) | type BuiltinPayload struct method TableName (line 28) | func (bp *BuiltinPayload) TableName() string { method Verify (line 53) | func (bp *BuiltinPayload) Verify() error { method Add (line 79) | func (bp *BuiltinPayload) Add(ctx *ctx.Context, username string) error { method Update (line 98) | func (bp *BuiltinPayload) Update(ctx *ctx.Context, req BuiltinPayload)... type PostgresBuiltinPayload (line 32) | type PostgresBuiltinPayload struct method TableName (line 49) | func (bp *PostgresBuiltinPayload) TableName() string { function BuiltinPayloadExists (line 70) | func BuiltinPayloadExists(ctx *ctx.Context, bp *BuiltinPayload) (bool, e... function BuiltinPayloadDels (line 120) | func BuiltinPayloadDels(ctx *ctx.Context, ids []int64) error { function BuiltinPayloadGet (line 127) | func BuiltinPayloadGet(ctx *ctx.Context, where string, args ...interface... function BuiltinPayloadGets (line 142) | func BuiltinPayloadGets(ctx *ctx.Context, componentId uint64, typ, cate,... function BuiltinPayloadCates (line 169) | func BuiltinPayloadCates(ctx *ctx.Context, typ string, componentID uint6... function BuiltinPayloadComponents (line 176) | func BuiltinPayloadComponents(ctx *ctx.Context, typ, cate string) (strin... function InitBuiltinPayloads (line 190) | func InitBuiltinPayloads(ctx *ctx.Context) error { FILE: models/busi_group.go type BusiGroup (line 14) | type BusiGroup struct method TableName (line 39) | func (bg *BusiGroup) TableName() string { method FillUserGroups (line 43) | func (bg *BusiGroup) FillUserGroups(ctx *ctx.Context) error { method Del (line 179) | func (bg *BusiGroup) Del(ctx *ctx.Context) error { method AddMembers (line 211) | func (bg *BusiGroup) AddMembers(ctx *ctx.Context, members []BusiGroupM... method DelMembers (line 225) | func (bg *BusiGroup) DelMembers(ctx *ctx.Context, members []BusiGroupM... method Update (line 249) | func (bg *BusiGroup) Update(ctx *ctx.Context, name string, labelEnable... function New (line 28) | func New(db *gorm.DB) *BusiGroup { type UserGroupWithPermFlag (line 34) | type UserGroupWithPermFlag struct function BusiGroupGetMap (line 67) | func BusiGroupGetMap(ctx *ctx.Context) (map[int64]*BusiGroup, error) { function BusiGroupGetAll (line 90) | func BusiGroupGetAll(ctx *ctx.Context) ([]*BusiGroup, error) { function BusiGroupGet (line 96) | func BusiGroupGet(ctx *ctx.Context, where string, args ...interface{}) (... function BusiGroupGetById (line 110) | func BusiGroupGetById(ctx *ctx.Context, id int64) (*BusiGroup, error) { function BusiGroupGetByIds (line 114) | func BusiGroupGetByIds(ctx *ctx.Context, ids []int64) ([]*BusiGroup, err... function BusiGroupExists (line 120) | func BusiGroupExists(ctx *ctx.Context, where string, args ...interface{}... function RegisterGroupDelCheckEntries (line 126) | func RegisterGroupDelCheckEntries(e []CheckEntry) { type CheckEntry (line 130) | type CheckEntry struct function BusiGroupAdd (line 285) | func BusiGroupAdd(ctx *ctx.Context, name string, labelEnable int, labelV... function BusiGroupStatistics (line 350) | func BusiGroupStatistics(ctx *ctx.Context) (*Statistics, error) { FILE: models/busi_group_member.go type BusiGroupMember (line 5) | type BusiGroupMember struct method TableName (line 11) | func (BusiGroupMember) TableName() string { function BusiGroupIds (line 15) | func BusiGroupIds(ctx *ctx.Context, userGroupIds []int64, permFlag ...st... function UserGroupIdsOfBusiGroup (line 30) | func UserGroupIdsOfBusiGroup(ctx *ctx.Context, busiGroupId int64, permFl... function BusiGroupMemberCount (line 41) | func BusiGroupMemberCount(ctx *ctx.Context, where string, args ...interf... function BusiGroupMemberAdd (line 45) | func BusiGroupMemberAdd(ctx *ctx.Context, member BusiGroupMember) error { function BusiGroupMemberGet (line 68) | func BusiGroupMemberGet(ctx *ctx.Context, where string, args ...interfac... function BusiGroupMemberDel (line 82) | func BusiGroupMemberDel(ctx *ctx.Context, where string, args ...interfac... function BusiGroupMemberGets (line 86) | func BusiGroupMemberGets(ctx *ctx.Context, where string, args ...interfa... function BusiGroupMemberGetsByBusiGroupId (line 92) | func BusiGroupMemberGetsByBusiGroupId(ctx *ctx.Context, busiGroupId int6... FILE: models/chart.go type Chart (line 5) | type Chart struct method TableName (line 12) | func (c *Chart) TableName() string { method Add (line 22) | func (c *Chart) Add(ctx *ctx.Context) error { method Update (line 26) | func (c *Chart) Update(ctx *ctx.Context, selectField interface{}, sele... method Del (line 30) | func (c *Chart) Del(ctx *ctx.Context) error { function ChartsOf (line 16) | func ChartsOf(ctx *ctx.Context, chartGroupId int64) ([]Chart, error) { FILE: models/chart_group.go type ChartGroup (line 10) | type ChartGroup struct method TableName (line 17) | func (cg *ChartGroup) TableName() string { method Verify (line 21) | func (cg *ChartGroup) Verify() error { method Add (line 33) | func (cg *ChartGroup) Add(ctx *ctx.Context) error { method Update (line 41) | func (cg *ChartGroup) Update(ctx *ctx.Context, selectField interface{}... method Del (line 49) | func (cg *ChartGroup) Del(ctx *ctx.Context) error { function NewDefaultChartGroup (line 63) | func NewDefaultChartGroup(ctx *ctx.Context, dashId int64) error { function ChartGroupIdsOf (line 71) | func ChartGroupIdsOf(ctx *ctx.Context, dashId int64) ([]int64, error) { function ChartGroupsOf (line 77) | func ChartGroupsOf(ctx *ctx.Context, dashId int64) ([]ChartGroup, error) { FILE: models/chart_share.go type ChartShare (line 5) | type ChartShare struct method TableName (line 14) | func (cs *ChartShare) TableName() string { method Add (line 18) | func (cs *ChartShare) Add(ctx *ctx.Context) error { function ChartShareGetsByIds (line 22) | func ChartShareGetsByIds(ctx *ctx.Context, ids []int64) ([]ChartShare, e... FILE: models/common.go constant AdminRole (line 10) | AdminRole = "Admin" constant DatasourceIdAll (line 13) | DatasourceIdAll = 0 function DB (line 15) | func DB(ctx *ctx.Context) *gorm.DB { function Count (line 19) | func Count(tx *gorm.DB) (int64, error) { function Exists (line 25) | func Exists(tx *gorm.DB) (bool, error) { function Insert (line 30) | func Insert(ctx *ctx.Context, obj interface{}) error { function CryptoPass (line 35) | func CryptoPass(ctx *ctx.Context, raw string) (string, error) { type Statistics (line 44) | type Statistics struct function StatisticsGet (line 49) | func StatisticsGet[T any](ctx *ctx.Context, model T) (*Statistics, error) { function MatchDatasource (line 61) | func MatchDatasource(ids []int64, id int64) bool { function IsAllDatasource (line 74) | func IsAllDatasource(datasourceIds []int64) bool { type LabelAndKey (line 83) | type LabelAndKey struct function LabelAndKeyHasKey (line 88) | func LabelAndKeyHasKey(keys []LabelAndKey, key string) bool { FILE: models/configs.go type Configs (line 22) | type Configs struct method TableName (line 36) | func (Configs) TableName() string { method Add (line 359) | func (c *Configs) Add(ctx *ctx.Context) error { method Update (line 381) | func (c *Configs) Update(ctx *ctx.Context) error { constant SALT (line 46) | SALT = "salt" constant RSA_PRIVATE_KEY (line 47) | RSA_PRIVATE_KEY = "rsa_private_key" constant RSA_PUBLIC_KEY (line 48) | RSA_PUBLIC_KEY = "rsa_public_key" constant RSA_PASSWORD (line 49) | RSA_PASSWORD = "rsa_password" constant JWT_SIGNING_KEY (line 50) | JWT_SIGNING_KEY = "jwt_signing_key" constant PHONE_ENCRYPTION_ENABLED (line 51) | PHONE_ENCRYPTION_ENABLED = "phone_encryption_enabled" function LoadPhoneEncryptionConfig (line 67) | func LoadPhoneEncryptionConfig(ctx *ctx.Context) error { function GetPhoneEncryptionConfigFromCache (line 92) | func GetPhoneEncryptionConfigFromCache() (enabled bool, publicKey []byte... function RefreshPhoneEncryptionCache (line 104) | func RefreshPhoneEncryptionCache(ctx *ctx.Context) error { function InitJWTSigningKey (line 108) | func InitJWTSigningKey(ctx *ctx.Context) string { function InitSalt (line 129) | func InitSalt(ctx *ctx.Context) { function InitRSAPassWord (line 147) | func InitRSAPassWord(ctx *ctx.Context) (string, error) { function ConfigsGet (line 165) | func ConfigsGet(ctx *ctx.Context, ckey string) (string, error) { //selec... function ConfigsGetAll (line 184) | func ConfigsGetAll(ctx *ctx.Context) ([]*Configs, error) { // select bui... function ConfigsSet (line 200) | func ConfigsSet(ctx *ctx.Context, ckey, cval string) error { function ConfigsSetWithUname (line 203) | func ConfigsSetWithUname(ctx *ctx.Context, ckey, cval, uName string) err... function ConfigsGetFlashDutyAppKey (line 231) | func ConfigsGetFlashDutyAppKey(ctx *ctx.Context) (string, error) { function ConfigsGetSiteInfo (line 259) | func ConfigsGetSiteInfo(ctx *ctx.Context) (string, error) { function ConfigsGetSiteUrl (line 270) | func ConfigsGetSiteUrl(ctx *ctx.Context) (string, error) { function GetPhoneEncryptionEnabled (line 289) | func GetPhoneEncryptionEnabled(ctx *ctx.Context) (bool, error) { function SetPhoneEncryptionEnabled (line 298) | func SetPhoneEncryptionEnabled(ctx *ctx.Context, enabled bool) error { function GetRSAKeys (line 307) | func GetRSAKeys(ctx *ctx.Context) (privateKey []byte, publicKey []byte, ... function ConfigsSelectByCkey (line 323) | func ConfigsSelectByCkey(ctx *ctx.Context, ckey string) ([]Configs, erro... function ConfigGet (line 336) | func ConfigGet(ctx *ctx.Context, id int64) (*Configs, error) { function ConfigsGets (line 348) | func ConfigsGets(ctx *ctx.Context, prefix string, limit, offset int) ([]... function ConfigsDel (line 393) | func ConfigsDel(ctx *ctx.Context, ids []int64) error { function ConfigsGetUserVariable (line 397) | func ConfigsGetUserVariable(context *ctx.Context) ([]Configs, error) { function ConfigsUserVariableInsert (line 408) | func ConfigsUserVariableInsert(context *ctx.Context, conf Configs) error { function ConfigsUserVariableUpdate (line 419) | func ConfigsUserVariableUpdate(context *ctx.Context, conf Configs) error { function isCStyleIdentifier (line 432) | func isCStyleIdentifier(str string) bool { function userVariableCheck (line 437) | func userVariableCheck(context *ctx.Context, ckey string, id int64) error { function ConfigsUserVariableStatistics (line 466) | func ConfigsUserVariableStatistics(context *ctx.Context) (*Statistics, e... function ConfigUserVariableGetDecryptMap (line 482) | func ConfigUserVariableGetDecryptMap(context *ctx.Context, privateKey []... function ConfigCvalStatistics (line 512) | func ConfigCvalStatistics(context *ctx.Context) (*Statistics, error) { FILE: models/dash_annotation.go type DashAnnotation (line 9) | type DashAnnotation struct method TableName (line 26) | func (da *DashAnnotation) TableName() string { method DB2FE (line 30) | func (da *DashAnnotation) DB2FE() error { method FE2DB (line 34) | func (da *DashAnnotation) FE2DB() error { method Add (line 43) | func (da *DashAnnotation) Add(ctx *ctx.Context) error { method Update (line 50) | func (da *DashAnnotation) Update(ctx *ctx.Context) error { function DashAnnotationDel (line 57) | func DashAnnotationDel(ctx *ctx.Context, id int64) error { function DashAnnotationGet (line 61) | func DashAnnotationGet(ctx *ctx.Context, where string, args ...interface... function DashAnnotationGets (line 76) | func DashAnnotationGets(ctx *ctx.Context, dashboardId int64, from, to in... FILE: models/dashboard.go type Dashboard (line 13) | type Dashboard struct method TableName (line 26) | func (d *Dashboard) TableName() string { method Verify (line 30) | func (d *Dashboard) Verify() error { method Add (line 42) | func (d *Dashboard) Add(ctx *ctx.Context) error { method Update (line 63) | func (d *Dashboard) Update(ctx *ctx.Context, selectField interface{}, ... method Del (line 71) | func (d *Dashboard) Del(ctx *ctx.Context) error { function DashboardGet (line 103) | func DashboardGet(ctx *ctx.Context, where string, args ...interface{}) (... function DashboardCount (line 119) | func DashboardCount(ctx *ctx.Context, where string, args ...interface{})... function DashboardExists (line 123) | func DashboardExists(ctx *ctx.Context, where string, args ...interface{}... function DashboardGets (line 128) | func DashboardGets(ctx *ctx.Context, groupId int64, query string) ([]Das... function DashboardGetsByIds (line 155) | func DashboardGetsByIds(ctx *ctx.Context, ids []int64) ([]Dashboard, err... function DashboardGetAll (line 165) | func DashboardGetAll(ctx *ctx.Context) ([]Dashboard, error) { FILE: models/datasource.go type Datasource (line 24) | type Datasource struct method TableName (line 219) | func (ds *Datasource) TableName() string { method Verify (line 223) | func (ds *Datasource) Verify() error { method Update (line 232) | func (ds *Datasource) Update(ctx *ctx.Context, selectField interface{}... method Add (line 243) | func (ds *Datasource) Add(ctx *ctx.Context) error { method Get (line 295) | func (ds *Datasource) Get(ctx *ctx.Context) error { method FE2DB (line 425) | func (ds *Datasource) FE2DB() error { method DB2FE (line 449) | func (ds *Datasource) DB2FE() error { method Encrypt (line 491) | func (ds *Datasource) Encrypt(openRsa bool, publicKeyData []byte) error { method Decrypt (line 519) | func (ds *Datasource) Decrypt() error { method ClearPlaintext (line 558) | func (ds *Datasource) ClearPlaintext() { type Auth (line 53) | type Auth struct type RsaConfig (line 61) | type RsaConfig struct function SetRsaConfig (line 69) | func SetRsaConfig(cfg *RsaConfig) { function GetRsaConfig (line 77) | func GetRsaConfig() *RsaConfig { type HTTP (line 81) | type HTTP struct method IsLoki (line 91) | func (h HTTP) IsLoki() bool { method GetUrls (line 106) | func (h HTTP) GetUrls() []string { method NewReq (line 125) | func (h HTTP) NewReq(reqUrl *string) (req *http.Request, err error) { method ParseUrl (line 136) | func (h HTTP) ParseUrl() (target *url.URL, err error) { type TLS (line 149) | type TLS struct method TLSConfig (line 163) | func (t *TLS) TLSConfig() (*tls.Config, error) { function DatasourceDel (line 254) | func DatasourceDel(ctx *ctx.Context, ids []int64) error { function DatasourceGet (line 261) | func DatasourceGet(ctx *ctx.Context, id int64) (*Datasource, error) { type DatasourceInfo (line 270) | type DatasourceInfo struct function GetDatasourceInfosByIds (line 276) | func GetDatasourceInfosByIds(ctx *ctx.Context, ids []int64) ([]*Datasour... function GetDatasources (line 303) | func GetDatasources(ctx *ctx.Context) ([]Datasource, error) { function GetDatasourceIdsByEngineName (line 329) | func GetDatasourceIdsByEngineName(ctx *ctx.Context, engineName string) (... function GetDatasourcesCountByName (line 348) | func GetDatasourcesCountByName(ctx *ctx.Context, name string) (int64, er... function GetDatasourcesCountBy (line 357) | func GetDatasourcesCountBy(ctx *ctx.Context, typ, cate, name string) (in... function GetDatasourcesGetsBy (line 379) | func GetDatasourcesGetsBy(ctx *ctx.Context, typ, cate, name, status stri... function GetDatasourcesGetsByTypes (line 412) | func GetDatasourcesGetsByTypes(ctx *ctx.Context, types []string) (map[st... function DatasourceGetMap (line 567) | func DatasourceGetMap(ctx *ctx.Context) (map[int64]*Datasource, error) { function DatasourceStatistics (line 605) | func DatasourceStatistics(ctx *ctx.Context) (*Statistics, error) { FILE: models/embedded_product.go type EmbeddedProduct (line 16) | type EmbeddedProduct struct method TableName (line 29) | func (e *EmbeddedProduct) TableName() string { method AfterFind (line 33) | func (e *EmbeddedProduct) AfterFind(tx *gorm.DB) (err error) { method Verify (line 40) | func (e *EmbeddedProduct) Verify() error { function AddEmbeddedProduct (line 60) | func AddEmbeddedProduct(ctx *ctx.Context, eps []EmbeddedProduct) error { function EmbeddedProductGets (line 77) | func EmbeddedProductGets(ctx *ctx.Context) ([]*EmbeddedProduct, error) { function GetEmbeddedProductByID (line 83) | func GetEmbeddedProductByID(ctx *ctx.Context, id int64) (*EmbeddedProduc... function UpdateEmbeddedProduct (line 89) | func UpdateEmbeddedProduct(ctx *ctx.Context, ep *EmbeddedProduct) error { function DeleteEmbeddedProduct (line 96) | func DeleteEmbeddedProduct(ctx *ctx.Context, id int64) error { function CanMigrateEP (line 100) | func CanMigrateEP(ctx *ctx.Context) bool { function MigrateEP (line 110) | func MigrateEP(ctx *ctx.Context) { type DashboardConfig (line 144) | type DashboardConfig struct FILE: models/es_index_pattern.go type EsIndexPattern (line 15) | type EsIndexPattern struct method TableName (line 32) | func (t *EsIndexPattern) TableName() string { method Add (line 36) | func (r *EsIndexPattern) Add(ctx *ctx.Context) error { method Update (line 119) | func (ei *EsIndexPattern) Update(ctx *ctx.Context, eip EsIndexPattern)... method DB2FE (line 141) | func (dbIndexPattern *EsIndexPattern) DB2FE() { method FE2DB (line 147) | func (feIndexPattern *EsIndexPattern) FE2DB() { function EsIndexPatternDel (line 51) | func EsIndexPatternDel(ctx *ctx.Context, ids []int64) error { function GetAlertRulesByEsIndexPatternId (line 75) | func GetAlertRulesByEsIndexPatternId(ctx *ctx.Context, indexPatternId in... function ruleUsesIndexPattern (line 99) | func ruleUsesIndexPattern(ruleConfig string, indexPatternId int64) bool { function EsIndexPatternGets (line 153) | func EsIndexPatternGets(ctx *ctx.Context, where string, args ...interfac... function EsIndexPatternGet (line 170) | func EsIndexPatternGet(ctx *ctx.Context, where string, args ...interface... function EsIndexPatternGetById (line 186) | func EsIndexPatternGetById(ctx *ctx.Context, id int64) (*EsIndexPattern,... function EsIndexPatternExists (line 190) | func EsIndexPatternExists(ctx *ctx.Context, id, datasourceId int64, name... FILE: models/event_pipeline.go type EventPipeline (line 13) | type EventPipeline struct method TableName (line 47) | func (e *EventPipeline) TableName() string { method Verify (line 51) | func (e *EventPipeline) Verify() error { method Update (line 142) | func (e *EventPipeline) Update(ctx *ctx.Context, ref *EventPipeline) e... method FillTeamNames (line 157) | func (e *EventPipeline) FillTeamNames(ctx *ctx.Context) error { method GetWorkflowNodes (line 200) | func (e *EventPipeline) GetWorkflowNodes() []WorkflowNode { method GetWorkflowConnections (line 222) | func (e *EventPipeline) GetWorkflowConnections() Connections { method FillWorkflowFields (line 242) | func (e *EventPipeline) FillWorkflowFields() { method GetInputsMap (line 249) | func (e *EventPipeline) GetInputsMap() map[string]string { type ProcessorConfig (line 42) | type ProcessorConfig struct function CreateEventPipeline (line 85) | func CreateEventPipeline(ctx *ctx.Context, pipeline *EventPipeline) error { function GetEventPipeline (line 90) | func GetEventPipeline(ctx *ctx.Context, id int64) (*EventPipeline, error) { function GetEventPipelinesByIds (line 100) | func GetEventPipelinesByIds(ctx *ctx.Context, ids []int64) ([]*EventPipe... function UpdateEventPipeline (line 107) | func UpdateEventPipeline(ctx *ctx.Context, pipeline *EventPipeline) error { function DeleteEventPipeline (line 112) | func DeleteEventPipeline(ctx *ctx.Context, id int64) error { function ListEventPipelines (line 117) | func ListEventPipelines(ctx *ctx.Context) ([]*EventPipeline, error) { function DeleteEventPipelines (line 137) | func DeleteEventPipelines(ctx *ctx.Context, ids []int64) error { function EventPipelineStatistics (line 178) | func EventPipelineStatistics(ctx *ctx.Context) (*Statistics, error) { FILE: models/event_pipeline_execution.go constant ExecutionStatusRunning (line 16) | ExecutionStatusRunning = "running" constant ExecutionStatusSuccess (line 17) | ExecutionStatusSuccess = "success" constant ExecutionStatusFailed (line 18) | ExecutionStatusFailed = "failed" type EventPipelineExecution (line 22) | type EventPipelineExecution struct method TableName (line 53) | func (e *EventPipelineExecution) TableName() string { method SetNodeResults (line 58) | func (e *EventPipelineExecution) SetNodeResults(results []*NodeExecuti... method GetNodeResults (line 68) | func (e *EventPipelineExecution) GetNodeResults() ([]*NodeExecutionRes... method SetInputsSnapshot (line 78) | func (e *EventPipelineExecution) SetInputsSnapshot(inputs map[string]s... method GetInputsSnapshot (line 88) | func (e *EventPipelineExecution) GetInputsSnapshot() (map[string]strin... function CreateEventPipelineExecution (line 98) | func CreateEventPipelineExecution(c *ctx.Context, execution *EventPipeli... function UpdateEventPipelineExecution (line 106) | func UpdateEventPipelineExecution(c *ctx.Context, execution *EventPipeli... function GetEventPipelineExecution (line 111) | func GetEventPipelineExecution(c *ctx.Context, id string) (*EventPipelin... function ListEventPipelineExecutions (line 124) | func ListEventPipelineExecutions(c *ctx.Context, pipelineID int64, mode,... function ListEventPipelineExecutionsByEventID (line 151) | func ListEventPipelineExecutionsByEventID(c *ctx.Context, eventID int64)... function ListAllEventPipelineExecutions (line 158) | func ListAllEventPipelineExecutions(c *ctx.Context, pipelineId int64, pi... function DeleteEventPipelineExecutions (line 191) | func DeleteEventPipelineExecutions(c *ctx.Context, beforeTime int64) (in... function DeleteEventPipelineExecutionsInBatches (line 199) | func DeleteEventPipelineExecutionsInBatches(c *ctx.Context, beforeTime i... function DeleteEventPipelineExecutionsByPipelineID (line 218) | func DeleteEventPipelineExecutionsByPipelineID(c *ctx.Context, pipelineI... type EventPipelineExecutionStatistics (line 223) | type EventPipelineExecutionStatistics struct function GetEventPipelineExecutionStatistics (line 233) | func GetEventPipelineExecutionStatistics(c *ctx.Context, pipelineID int6... type EventPipelineExecutionDetail (line 284) | type EventPipelineExecutionDetail struct function GetEventPipelineExecutionDetail (line 291) | func GetEventPipelineExecutionDetail(c *ctx.Context, id string) (*EventP... FILE: models/event_processor.go type Processor (line 10) | type Processor interface type BranchProcessor (line 22) | type BranchProcessor interface type NewProcessorFn (line 29) | type NewProcessorFn function RegisterProcessor (line 33) | func RegisterProcessor(typ string, p Processor) { function GetProcessorByType (line 40) | func GetProcessorByType(typ string, settings interface{}) (Processor, er... FILE: models/host_meta.go type HostMeta (line 5) | type HostMeta struct method MarshalBinary (line 41) | func (h HostMeta) MarshalBinary() ([]byte, error) { method UnmarshalBinary (line 45) | func (h *HostMeta) UnmarshalBinary(data []byte) error { type HostUpdateTime (line 23) | type HostUpdateTime struct method MarshalBinary (line 28) | func (h HostUpdateTime) MarshalBinary() ([]byte, error) { method UnmarshalBinary (line 32) | func (h *HostUpdateTime) UnmarshalBinary(data []byte) error { type HostUnixTime (line 36) | type HostUnixTime struct function WrapIdent (line 49) | func WrapIdent(ident string) string { function WrapExtendIdent (line 53) | func WrapExtendIdent(ident string) string { function WrapIdentUpdateTime (line 57) | func WrapIdentUpdateTime(ident string) string { FILE: models/message_tpl.go type MessageTemplate (line 21) | type MessageTemplate struct method TableName (line 90) | func (t *MessageTemplate) TableName() string { method Verify (line 94) | func (t *MessageTemplate) Verify() error { method Update (line 124) | func (t *MessageTemplate) Update(ctx *ctx.Context, ref MessageTemplate... method DB2FE (line 142) | func (t *MessageTemplate) DB2FE() { method Upsert (line 691) | func (t *MessageTemplate) Upsert(ctx *ctx.Context, ident string) error { method RenderEvent (line 721) | func (t *MessageTemplate) RenderEvent(events []*AlertCurEvent, siteUrl... function MessageTemplateStatistics (line 37) | func MessageTemplateStatistics(ctx *ctx.Context) (*Statistics, error) { function MessageTemplateGetsAll (line 54) | func MessageTemplateGetsAll(ctx *ctx.Context) ([]*MessageTemplate, error) { function MessageTemplateGets (line 69) | func MessageTemplateGets(ctx *ctx.Context, id int64, name, ident string)... function MessageTemplateGet (line 148) | func MessageTemplateGet(ctx *ctx.Context, where string, args ...interfac... function MessageTemplatesGet (line 156) | func MessageTemplatesGet(ctx *ctx.Context, where string, args ...interfa... function MessageTemplatesGetBy (line 173) | func MessageTemplatesGetBy(ctx *ctx.Context, notifyChannelIdents []strin... type MsgTplList (line 190) | type MsgTplList method GetIdentSet (line 192) | func (t MsgTplList) GetIdentSet() map[int64]struct{} { method IfUsed (line 200) | func (t MsgTplList) IfUsed(nr *NotifyRule) bool { constant DingtalkTitle (line 211) | DingtalkTitle = `{{if $event.IsRecovered}} Recovered {{else}}Triggered... constant FeishuCardTitle (line 212) | FeishuCardTitle = `🔔 {{$event.RuleName}}` constant LarkCardTitle (line 213) | LarkCardTitle = `🔔 {{$event.RuleName}}` function InitMessageTemplate (line 666) | func InitMessageTemplate(ctx *ctx.Context) { function getDefs (line 708) | func getDefs(renderData map[string]interface{}) []string { function init (line 717) | func init() { FILE: models/metric_view.go type MetricView (line 13) | type MetricView struct method TableName (line 23) | func (v *MetricView) TableName() string { method Verify (line 27) | func (v *MetricView) Verify() error { method Add (line 41) | func (v *MetricView) Add(ctx *ctx.Context) error { method Update (line 52) | func (v *MetricView) Update(ctx *ctx.Context, name, configs string, ca... function MetricViewDel (line 70) | func MetricViewDel(ctx *ctx.Context, ids []int64, createBy ...interface{... function MetricViewGets (line 82) | func MetricViewGets(ctx *ctx.Context, createBy interface{}) ([]MetricVie... function MetricViewGet (line 101) | func MetricViewGet(ctx *ctx.Context, where string, args ...interface{}) ... FILE: models/migrate/migrate.go function Migrate (line 15) | func Migrate(db *gorm.DB) { function MigrateIbexTables (line 20) | func MigrateIbexTables(db *gorm.DB) { function isPostgres (line 53) | func isPostgres(db *gorm.DB) bool { function MigrateTables (line 57) | func MigrateTables(db *gorm.DB) error { function DropUniqueFiledLimit (line 138) | func DropUniqueFiledLimit(db *gorm.DB, dst interface{}, uniqueFiled stri... function columnHasIndex (line 158) | func columnHasIndex(db *gorm.DB, dst interface{}, indexColumn string) bo... type AlertRule (line 174) | type AlertRule struct type AlertSubscribe (line 184) | type AlertSubscribe struct type AlertMute (line 194) | type AlertMute struct type RecordingRule (line 199) | type RecordingRule struct type AlertingEngines (line 206) | type AlertingEngines struct type ChartShare (line 210) | type ChartShare struct type TaskRecord (line 213) | type TaskRecord struct type AlertHisEvent (line 216) | type AlertHisEvent struct type AlertCurEvent (line 222) | type AlertCurEvent struct type Target (line 227) | type Target struct type Datasource (line 235) | type Datasource struct type Configs (line 241) | type Configs struct type NotifyTpl (line 253) | type NotifyTpl struct type Board (line 260) | type Board struct type BoardBusigroup (line 265) | type BoardBusigroup struct type Users (line 270) | type Users struct type SsoConfig (line 276) | type SsoConfig struct type BuiltinPayloads (line 280) | type BuiltinPayloads struct type TaskHostDoing (line 286) | type TaskHostDoing struct method TableName (line 294) | func (TaskHostDoing) TableName() string { type EsIndexPatternMigrate (line 298) | type EsIndexPatternMigrate struct method TableName (line 303) | func (EsIndexPatternMigrate) TableName() string { type DashAnnotation (line 307) | type DashAnnotation struct method TableName (line 322) | func (DashAnnotation) TableName() string { type MessageTemplate (line 326) | type MessageTemplate struct method TableName (line 341) | func (t *MessageTemplate) TableName() string { type NotifyRule (line 345) | type NotifyRule struct method TableName (line 360) | func (r *NotifyRule) TableName() string { type NotifyChannelConfig (line 364) | type NotifyChannelConfig struct method TableName (line 380) | func (c *NotifyChannelConfig) TableName() string { FILE: models/migrate/migrate_es_index_pattern.go type EsIndexPattern (line 8) | type EsIndexPattern struct function MigrateEsIndexPatternTable (line 21) | func MigrateEsIndexPatternTable(db *gorm.DB) error { FILE: models/migrate/migrate_test.go function TestInsertPermPoints (line 13) | func TestInsertPermPoints(t *testing.T) { FILE: models/notification_record.go constant NotiStatusSuccess (line 10) | NotiStatusSuccess = iota + 1 constant NotiStatusFailure (line 11) | NotiStatusFailure type NotificationRecord (line 14) | type NotificationRecord struct method SetStatus (line 37) | func (n *NotificationRecord) SetStatus(status int) { method SetDetails (line 44) | func (n *NotificationRecord) SetDetails(details string) { method TableName (line 51) | func (n *NotificationRecord) TableName() string { method Add (line 55) | func (n *NotificationRecord) Add(ctx *ctx.Context) error { method GetGroupIds (line 59) | func (n *NotificationRecord) GetGroupIds(ctx *ctx.Context) (groupIds [... function NewNotificationRecord (line 26) | func NewNotificationRecord(event *AlertCurEvent, notifyRuleID int64, cha... function NotificationRecordsGetByEventId (line 81) | func NotificationRecordsGetByEventId(ctx *ctx.Context, eid int64) ([]*No... function NotificationRecordsGet (line 85) | func NotificationRecordsGet(ctx *ctx.Context, where string, args ...inte... FILE: models/notify_channel.go type EmailContext (line 38) | type EmailContext struct type NotifyChannelConfig (line 45) | type NotifyChannelConfig struct method TableName (line 68) | func (ncc *NotifyChannelConfig) TableName() string { method SendScript (line 166) | func (ncc *NotifyChannelConfig) SendScript(events []*AlertCurEvent, tp... method makeHTTPRequest (line 395) | func (ncc *NotifyChannelConfig) makeHTTPRequest(httpConfig *HTTPReques... method makeFlashDutyRequest (line 438) | func (ncc *NotifyChannelConfig) makeFlashDutyRequest(url string, bodyB... method SendFlashDuty (line 455) | func (ncc *NotifyChannelConfig) SendFlashDuty(events []*AlertCurEvent,... method SendPagerDuty (line 519) | func (ncc *NotifyChannelConfig) SendPagerDuty(events []*AlertCurEvent,... method SendHTTP (line 677) | func (ncc *NotifyChannelConfig) SendHTTP(events []*AlertCurEvent, tpl ... method getAliQuery (line 748) | func (ncc *NotifyChannelConfig) getAliQuery(ident string, query url.Va... method setTxHeader (line 867) | func (ncc *NotifyChannelConfig) setTxHeader(headers map[string]string,... method getTxSignature (line 877) | func (ncc *NotifyChannelConfig) getTxSignature(payloadStr string, time... method parseRequestBody (line 922) | func (ncc *NotifyChannelConfig) parseRequestBody(bodyTpl map[string]in... method replaceVariables (line 967) | func (ncc *NotifyChannelConfig) replaceVariables(tpl map[string]interf... method SendEmail (line 1004) | func (ncc *NotifyChannelConfig) SendEmail(notifyRuleId int64, events [... method SendEmailNow (line 1013) | func (ncc *NotifyChannelConfig) SendEmailNow(events []*AlertCurEvent, ... method Verify (line 1033) | func (ncc *NotifyChannelConfig) Verify() error { method ValidateHTTPRequestConfig (line 1085) | func (ncc *NotifyChannelConfig) ValidateHTTPRequestConfig() error { method ValidateSMTPRequestConfig (line 1106) | func (ncc *NotifyChannelConfig) ValidateSMTPRequestConfig() error { method ValidateScriptRequestConfig (line 1133) | func (ncc *NotifyChannelConfig) ValidateScriptRequestConfig() error { method ValidateFlashDutyRequestConfig (line 1147) | func (ncc *NotifyChannelConfig) ValidateFlashDutyRequestConfig() error { method ValidatePagerDutyRequestConfig (line 1154) | func (ncc *NotifyChannelConfig) ValidatePagerDutyRequestConfig() error { method Update (line 1161) | func (ncc *NotifyChannelConfig) Update(ctx *ctx.Context, ref NotifyCha... method Upsert (line 1715) | func (ncc *NotifyChannelConfig) Upsert(ctx *ctx.Context) error { type RequestConfig (line 72) | type RequestConfig struct type NotifyParamConfig (line 81) | type NotifyParamConfig struct type Params (line 86) | type Params struct type UserInfo (line 90) | type UserInfo struct type FlashDutyRequestConfig (line 95) | type FlashDutyRequestConfig struct type PagerDutyRequestConfig (line 104) | type PagerDutyRequestConfig struct type ParamItem (line 113) | type ParamItem struct type SMTPRequestConfig (line 119) | type SMTPRequestConfig struct method Verify (line 1113) | func (c *SMTPRequestConfig) Verify() error { type ScriptRequestConfig (line 129) | type ScriptRequestConfig struct type HTTPRequestConfig (line 137) | type HTTPRequestConfig struct method Verify (line 1092) | func (c *HTTPRequestConfig) Verify() error { type TLSConfig (line 151) | type TLSConfig struct type RequestDetail (line 160) | type RequestDetail struct function getStdinBytes (line 245) | func getStdinBytes(events []*AlertCurEvent, tpl map[string]interface{}, ... function NotifyChannelStatistics (line 268) | func NotifyChannelStatistics(ctx *ctx.Context) (*Statistics, error) { function NotifyChannelGetsAll (line 285) | func NotifyChannelGetsAll(ctx *ctx.Context) ([]*NotifyChannelConfig, err... function NotifyChannelGets (line 300) | func NotifyChannelGets(ctx *ctx.Context, id int64, name, ident string, e... function GetHTTPClient (line 325) | func GetHTTPClient(nc *NotifyChannelConfig) (*http.Client, error) { function getSignature (line 807) | func getSignature(accessKeySecret string, httpMethod, canonicalURI strin... function percentEncode (line 859) | func percentEncode(str string) string { function sign (line 916) | func sign(key []byte, msg string) []byte { function getParsedString (line 943) | func getParsedString(name, tplStr string, tplData map[string]interface{}... function needsTemplateRendering (line 1000) | func needsTemplateRendering(s string) bool { function NotifyChannelGet (line 1174) | func NotifyChannelGet(ctx *ctx.Context, where string, args ...interface{... function NotifyChannelsGet (line 1183) | func NotifyChannelsGet(ctx *ctx.Context, where string, args ...interface... type NotiChList (line 1197) | type NotiChList method GetIdentSet (line 1199) | func (c NotiChList) GetIdentSet() map[int64]struct{} { method IfUsed (line 1207) | func (c NotiChList) IfUsed(nr *NotifyRule) bool { function InitNotifyChannel (line 1698) | func InitNotifyChannel(ctx *ctx.Context) { FILE: models/notify_channel_test.go function TestSendDingTalkNotification (line 47) | func TestSendDingTalkNotification(t *testing.T) { function TestSendTencentVoiceNotification (line 113) | func TestSendTencentVoiceNotification(t *testing.T) { function TestSendTencentSMSNotification (line 174) | func TestSendTencentSMSNotification(t *testing.T) { function TestSendAliYunVoiceNotification (line 235) | func TestSendAliYunVoiceNotification(t *testing.T) { function TestSendAliYunSMSNotification (line 293) | func TestSendAliYunSMSNotification(t *testing.T) { function TestSendFlashDuty (line 354) | func TestSendFlashDuty(t *testing.T) { function readKeyValueFromJsonFile (line 415) | func readKeyValueFromJsonFile(filePath string) (map[string]string, error) { FILE: models/notify_config.go constant WEBHOOKKEY (line 10) | WEBHOOKKEY = "webhook" constant NOTIFYSCRIPT (line 11) | NOTIFYSCRIPT = "notify_script" constant NOTIFYCHANNEL (line 12) | NOTIFYCHANNEL = "notify_channel" constant NOTIFYCONTACT (line 13) | NOTIFYCONTACT = "notify_contact" constant SMTP (line 14) | SMTP = "smtp_config" constant IBEX (line 15) | IBEX = "ibex_server" type Webhook (line 20) | type Webhook struct method Hash (line 38) | func (w *Webhook) Hash() string { type NotifyScript (line 42) | type NotifyScript struct type NotifyChannel (line 49) | type NotifyChannel struct type NotifyContact (line 56) | type NotifyContact struct FILE: models/notify_rule.go type NotifyRule (line 14) | type NotifyRule struct method TableName (line 39) | func (r *NotifyRule) TableName() string { method Verify (line 127) | func (r *NotifyRule) Verify() error { method Update (line 188) | func (r *NotifyRule) Update(ctx *ctx.Context, ref NotifyRule) error { method DB2FE (line 208) | func (r *NotifyRule) DB2FE() { type PipelineConfig (line 34) | type PipelineConfig struct type NotifyConfig (line 43) | type NotifyConfig struct method Hash (line 55) | func (n *NotifyConfig) Hash() string { method Verify (line 149) | func (c *NotifyConfig) Verify() error { type CustomParams (line 61) | type CustomParams struct type TimeRanges (line 67) | type TimeRanges struct method Verify (line 175) | func (t *TimeRanges) Verify() error { function CreateNotifyRule (line 77) | func CreateNotifyRule(c *ctx.Context, rule *NotifyRule) error { function GetNotifyRule (line 82) | func GetNotifyRule(c *ctx.Context, id int64) (*NotifyRule, error) { function DeleteNotifyRule (line 91) | func DeleteNotifyRule(c *ctx.Context, id int64) error { function NotifyRuleStatistics (line 95) | func NotifyRuleStatistics(ctx *ctx.Context) (*Statistics, error) { function NotifyRuleGetsAll (line 112) | func NotifyRuleGetsAll(ctx *ctx.Context) ([]*NotifyRule, error) { function NotifyRuleGet (line 217) | func NotifyRuleGet(ctx *ctx.Context, where string, args ...interface{}) ... function NotifyRulesGet (line 225) | func NotifyRulesGet(ctx *ctx.Context, where string, args ...interface{})... type NotifyRuleChecker (line 241) | type NotifyRuleChecker interface function UsedByNotifyRule (line 245) | func UsedByNotifyRule(ctx *ctx.Context, nrc NotifyRuleChecker) ([]int64,... FILE: models/notify_tpl.go type NotifyTpl (line 19) | type NotifyTpl struct method TableName (line 32) | func (n *NotifyTpl) TableName() string { method Create (line 36) | func (n *NotifyTpl) Create(c *ctx.Context) error { method UpdateContent (line 40) | func (n *NotifyTpl) UpdateContent(c *ctx.Context) error { method Update (line 44) | func (n *NotifyTpl) Update(c *ctx.Context) error { method CreateIfNotExists (line 48) | func (n *NotifyTpl) CreateIfNotExists(c *ctx.Context, channel string) ... method NotifyTplDelete (line 62) | func (n *NotifyTpl) NotifyTplDelete(ctx *ctx.Context, id int64) error { function NotifyTplCountByChannel (line 66) | func NotifyTplCountByChannel(c *ctx.Context, channel string) (int64, err... function NotifyTplGets (line 72) | func NotifyTplGets(c *ctx.Context) ([]*NotifyTpl, error) { function ListTpls (line 83) | func ListTpls(c *ctx.Context) (map[string]*template.Template, error) { function NotifyTplGet (line 107) | func NotifyTplGet(c *ctx.Context, id int64) (*NotifyTpl, error) { function InitNotifyConfig (line 113) | func InitNotifyConfig(c *ctx.Context, tplDir string) { function getNotifyTpl (line 182) | func getNotifyTpl(tplDir string) map[string]string { FILE: models/prom_alert_rule.go type PromRule (line 11) | type PromRule struct type PromRuleGroup (line 20) | type PromRuleGroup struct function convertInterval (line 26) | func convertInterval(interval string) int { function ConvertAlert (line 40) | func ConvertAlert(rule PromRule, interval string, datasouceQueries []Dat... function DealPromGroup (line 85) | func DealPromGroup(promRule []PromRuleGroup, dataSourceQueries []Datasou... FILE: models/prom_alert_rule_test.go function TestConvertAlert (line 10) | func TestConvertAlert(t *testing.T) { FILE: models/recording_rule.go type RecordingRule (line 18) | type RecordingRule struct method TableName (line 58) | func (re *RecordingRule) TableName() string { method FE2DB (line 62) | func (re *RecordingRule) FE2DB() { method DB2FE (line 71) | func (re *RecordingRule) DB2FE() error { method FillDatasourceQueries (line 104) | func (re *RecordingRule) FillDatasourceQueries() error { method Verify (line 132) | func (re *RecordingRule) Verify() error { method Add (line 180) | func (re *RecordingRule) Add(ctx *ctx.Context) error { method Update (line 202) | func (re *RecordingRule) Update(ctx *ctx.Context, ref RecordingRule) e... method UpdateFieldsMap (line 226) | func (re *RecordingRule) UpdateFieldsMap(ctx *ctx.Context, fields map[... type QueryConfig (line 42) | type QueryConfig struct type Query (line 51) | type Query struct function RecordingRuleDels (line 230) | func RecordingRuleDels(ctx *ctx.Context, ids []int64, groupId int64) err... function RecordingRuleGets (line 262) | func RecordingRuleGets(ctx *ctx.Context, groupId int64) ([]RecordingRule... function RecordingRuleGetsByBGIds (line 276) | func RecordingRuleGetsByBGIds(ctx *ctx.Context, bgids []int64) ([]Record... function RecordingRuleGet (line 293) | func RecordingRuleGet(ctx *ctx.Context, where string, regs ...interface{... function RecordingRuleGetById (line 309) | func RecordingRuleGetById(ctx *ctx.Context, id int64) (*RecordingRule, e... function RecordingRuleEnabledGets (line 313) | func RecordingRuleEnabledGets(ctx *ctx.Context) ([]*RecordingRule, error) { function RecordingRuleGetsByCluster (line 328) | func RecordingRuleGetsByCluster(ctx *ctx.Context) ([]*RecordingRule, err... function RecordingRuleStatistics (line 358) | func RecordingRuleStatistics(ctx *ctx.Context) (*Statistics, error) { function RecordingRuleUpgradeToV6 (line 375) | func RecordingRuleUpgradeToV6(ctx *ctx.Context, dsm map[string]Datasourc... FILE: models/role.go type Role (line 8) | type Role struct method TableName (line 14) | func (Role) TableName() string { method Add (line 32) | func (r *Role) Add(ctx *ctx.Context) error { method Del (line 46) | func (r *Role) Del(ctx *ctx.Context) error { method Update (line 51) | func (ug *Role) Update(ctx *ctx.Context, selectField interface{}, sele... function RoleGets (line 18) | func RoleGets(ctx *ctx.Context, where string, args ...interface{}) ([]Ro... function RoleGetsAll (line 27) | func RoleGetsAll(ctx *ctx.Context) ([]Role, error) { function RoleGet (line 55) | func RoleGet(ctx *ctx.Context, where string, args ...interface{}) (*Role... function RoleCount (line 69) | func RoleCount(ctx *ctx.Context, where string, args ...interface{}) (num... FILE: models/role_operation.go type RoleOperation (line 8) | type RoleOperation struct method TableName (line 13) | func (RoleOperation) TableName() string { function RoleHasOperation (line 17) | func RoleHasOperation(ctx *ctx.Context, roles []string, operation string... function OperationsOfRole (line 25) | func OperationsOfRole(ctx *ctx.Context, roles []string) ([]string, error) { function RoleOperationBind (line 37) | func RoleOperationBind(ctx *ctx.Context, roleName string, operation []st... FILE: models/saved_view.go type SavedView (line 18) | type SavedView struct method TableName (line 35) | func (SavedView) TableName() string { method Verify (line 39) | func (sv *SavedView) Verify() error { function SavedViewCheckDuplicateName (line 50) | func SavedViewCheckDuplicateName(c *ctx.Context, page, name string, excl... function SavedViewAdd (line 65) | func SavedViewAdd(c *ctx.Context, sv *SavedView) error { function SavedViewUpdate (line 81) | func SavedViewUpdate(c *ctx.Context, sv *SavedView, username string) err... function SavedViewDel (line 96) | func SavedViewDel(c *ctx.Context, id int64) error { function SavedViewGetById (line 104) | func SavedViewGetById(c *ctx.Context, id int64) (*SavedView, error) { function SavedViewGets (line 113) | func SavedViewGets(c *ctx.Context, page string) ([]SavedView, error) { function SavedViewFavoriteGetByUserId (line 125) | func SavedViewFavoriteGetByUserId(c *ctx.Context, userId int64) (map[int... type UserViewFavorite (line 138) | type UserViewFavorite struct method TableName (line 145) | func (UserViewFavorite) TableName() string { function UserViewFavoriteAdd (line 149) | func UserViewFavoriteAdd(c *ctx.Context, viewId, userId int64) error { function UserViewFavoriteDel (line 173) | func UserViewFavoriteDel(c *ctx.Context, viewId, userId int64) error { FILE: models/source_token.go type SourceToken (line 9) | type SourceToken struct method TableName (line 19) | func (SourceToken) TableName() string { method Add (line 23) | func (st *SourceToken) Add(ctx *ctx.Context) error { method IsExpired (line 37) | func (st *SourceToken) IsExpired() bool { function GetSourceTokenBySource (line 28) | func GetSourceTokenBySource(ctx *ctx.Context, sourceType, sourceId, toke... function CleanupExpiredTokens (line 44) | func CleanupExpiredTokens(ctx *ctx.Context) (int64, error) { FILE: models/sso_config.go type SsoConfig (line 9) | type SsoConfig struct method TableName (line 17) | func (b *SsoConfig) TableName() string { method Query (line 29) | func (b *SsoConfig) Query(c *ctx.Context) (SsoConfig, error) { method Create (line 36) | func (b *SsoConfig) Create(c *ctx.Context) error { method Update (line 40) | func (b *SsoConfig) Update(c *ctx.Context) error { function SsoConfigGets (line 22) | func SsoConfigGets(c *ctx.Context) ([]SsoConfig, error) { function SsoConfigLastUpdateTime (line 46) | func SsoConfigLastUpdateTime(c *ctx.Context) (int64, error) { function SsoConfigCountByName (line 53) | func SsoConfigCountByName(c *ctx.Context, name string) (int64, error) { FILE: models/target.go type TargetDeleteHookFunc (line 24) | type TargetDeleteHookFunc type Target (line 26) | type Target struct method TableName (line 55) | func (t *Target) TableName() string { method FillGroup (line 59) | func (t *Target) FillGroup(ctx *ctx.Context, cache map[int64]*BusiGrou... method MatchGroupId (line 92) | func (t *Target) MatchGroupId(gid ...int64) bool { method AfterFind (line 103) | func (t *Target) AfterFind(tx *gorm.DB) (err error) { method AddTags (line 536) | func (t *Target) AddTags(ctx *ctx.Context, tags []string) error { method DelTags (line 552) | func (t *Target) DelTags(ctx *ctx.Context, tags []string) error { method FillTagsMap (line 563) | func (t *Target) FillTagsMap() { method GetTagsMap (line 579) | func (t *Target) GetTagsMap() map[string]string { method GetHostTagsMap (line 590) | func (t *Target) GetHostTagsMap() map[string]string { method FillMeta (line 602) | func (t *Target) FillMeta(meta *HostMeta) { method UpdateFieldsMap (line 704) | func (m *Target) UpdateFieldsMap(ctx *ctx.Context, fields map[string]i... function TargetStatistics (line 108) | func TargetStatistics(ctx *ctx.Context) (*Statistics, error) { function TargetDel (line 123) | func TargetDel(ctx *ctx.Context, idents []string, deleteHook TargetDelet... type BuildTargetWhereOption (line 145) | type BuildTargetWhereOption function BuildTargetWhereWithBgids (line 147) | func BuildTargetWhereWithBgids(bgids []int64) BuildTargetWhereOption { function BuildTargetWhereWithDsIds (line 165) | func BuildTargetWhereWithDsIds(dsIds []int64) BuildTargetWhereOption { function BuildTargetWhereWithHosts (line 174) | func BuildTargetWhereWithHosts(hosts []string) BuildTargetWhereOption { function BuildTargetWhereWithIdents (line 183) | func BuildTargetWhereWithIdents(idents []string) BuildTargetWhereOption { function BuildTargetWhereExcludeIdents (line 192) | func BuildTargetWhereExcludeIdents(idents []string) BuildTargetWhereOpti... function BuildTargetWhereWithQuery (line 201) | func BuildTargetWhereWithQuery(query string) BuildTargetWhereOption { function buildTargetWhere (line 222) | func buildTargetWhere(ctx *ctx.Context, options ...BuildTargetWhereOptio... function TargetTotal (line 230) | func TargetTotal(ctx *ctx.Context, options ...BuildTargetWhereOption) (i... function TargetGets (line 234) | func TargetGets(ctx *ctx.Context, limit, offset int, order string, desc ... function TargetGetsByFilter (line 254) | func TargetGetsByFilter(ctx *ctx.Context, query []map[string]interface{}... function TargetCountByFilter (line 267) | func TargetCountByFilter(ctx *ctx.Context, query []map[string]interface{... function TargetFilterQueryBuild (line 272) | func TargetFilterQueryBuild(ctx *ctx.Context, query []map[string]interfa... function TargetGetsAll (line 296) | func TargetGetsAll(ctx *ctx.Context) ([]*Target, error) { function TargetUpdateNote (line 321) | func TargetUpdateNote(ctx *ctx.Context, idents []string, note string) er... function TargetUpdateBgid (line 328) | func TargetUpdateBgid(ctx *ctx.Context, idents []string, bgid int64, cle... function TargetGet (line 341) | func TargetGet(ctx *ctx.Context, where string, args ...interface{}) (*Ta... function TargetGetById (line 357) | func TargetGetById(ctx *ctx.Context, id int64) (*Target, error) { function TargetGetByIdent (line 361) | func TargetGetByIdent(ctx *ctx.Context, ident string) (*Target, error) { function TargetsGetByIdents (line 365) | func TargetsGetByIdents(ctx *ctx.Context, idents []string) ([]*Target, e... function TargetsGetIdentsByIdentsAndHostIps (line 371) | func TargetsGetIdentsByIdentsAndHostIps(ctx *ctx.Context, idents, hostIp... function TargetsGetIdsByIdentsAndHostIps (line 421) | func TargetsGetIdsByIdentsAndHostIps(ctx *ctx.Context, idents, hostIps [... function TargetGetTags (line 477) | func TargetGetTags(ctx *ctx.Context, idents []string, ignoreHostTag bool... function FetchBeatTimesFromRedis (line 613) | func FetchBeatTimesFromRedis(redis storage.Redis, idents []string) map[s... function fetchBeatTimeBatch (line 638) | func fetchBeatTimeBatch(redis storage.Redis, keys []string, result map[s... function FillTargetsBeatTime (line 654) | func FillTargetsBeatTime(redis storage.Redis, targets []*Target) { function TargetIdents (line 672) | func TargetIdents(ctx *ctx.Context, ids []int64) ([]string, error) { function TargetIds (line 683) | func TargetIds(ctx *ctx.Context, idents []string) ([]int64, error) { function IdentsFilter (line 694) | func IdentsFilter(ctx *ctx.Context, idents []string, where string, args ... function CanMigrateBg (line 709) | func CanMigrateBg(ctx *ctx.Context) bool { function MigrateBg (line 735) | func MigrateBg(ctx *ctx.Context, bgLabelKey string) { function DoMigrateBg (line 745) | func DoMigrateBg(ctx *ctx.Context, bgLabelKey string) error { function TargetNoExistIdents (line 798) | func TargetNoExistIdents(ctx *ctx.Context, idents []string) ([]string, e... FILE: models/target_busi_group.go type TargetBusiGroup (line 13) | type TargetBusiGroup struct method TableName (line 20) | func (t *TargetBusiGroup) TableName() string { method TableOptions (line 24) | func (t *TargetBusiGroup) TableOptions() string { function TargetBusiGroupsGetAll (line 28) | func TargetBusiGroupsGetAll(ctx *ctx.Context) (map[string][]int64, error) { function TargetGroupIdsGetByIdent (line 41) | func TargetGroupIdsGetByIdent(ctx *ctx.Context, ident string) ([]int64, ... function TargetGroupIdsGetByIdents (line 54) | func TargetGroupIdsGetByIdents(ctx *ctx.Context, idents []string) ([]int... function TargetBindBgids (line 68) | func TargetBindBgids(ctx *ctx.Context, idents []string, bgids []int64, t... function TargetUnbindBgids (line 112) | func TargetUnbindBgids(ctx *ctx.Context, idents []string, bgids []int64)... function TargetDeleteBgids (line 123) | func TargetDeleteBgids(tx *gorm.DB, idents []string) error { function TargetOverrideBgids (line 127) | func TargetOverrideBgids(ctx *ctx.Context, idents []string, bgids []int6... function SeparateTargetIdents (line 173) | func SeparateTargetIdents(ctx *ctx.Context, idents []string) (existing, ... function TargetIndentsGetByBgids (line 200) | func TargetIndentsGetByBgids(ctx *ctx.Context, bgids []int64) ([]string,... FILE: models/task_record.go type TaskRecord (line 8) | type TaskRecord struct method TableName (line 27) | func (r *TaskRecord) TableName() string { method Add (line 32) | func (r *TaskRecord) Add(ctx *ctx.Context) error { method UpdateIsDone (line 79) | func (r *TaskRecord) UpdateIsDone(ctx *ctx.Context, isDone int) error { function TaskRecordTotal (line 42) | func TaskRecordTotal(ctx *ctx.Context, bgids []int64, beginTime int64, c... function TaskRecordGets (line 59) | func TaskRecordGets(ctx *ctx.Context, bgids []int64, beginTime int64, cr... FILE: models/task_tpl.go type TaskTpl (line 17) | type TaskTpl struct method TableName (line 37) | func (t *TaskTpl) TableName() string { method CleanFields (line 137) | func (t *TaskTpl) CleanFields() error { method Save (line 196) | func (t *TaskTpl) Save(ctx *ctx.Context, hosts []string) error { method Hosts (line 237) | func (t *TaskTpl) Hosts(ctx *ctx.Context) ([]string, error) { method Update (line 243) | func (t *TaskTpl) Update(ctx *ctx.Context, hosts []string) error { method Del (line 300) | func (t *TaskTpl) Del(ctx *ctx.Context) error { method AddTags (line 314) | func (t *TaskTpl) AddTags(ctx *ctx.Context, tags []string, updateBy st... method DelTags (line 331) | func (t *TaskTpl) DelTags(ctx *ctx.Context, tags []string, updateBy st... method UpdateGroup (line 343) | func (t *TaskTpl) UpdateGroup(ctx *ctx.Context, groupId int64, updateB... function TaskTplTotal (line 41) | func TaskTplTotal(ctx *ctx.Context, bgids []int64, query string) (int64,... function TaskTplStatistics (line 60) | func TaskTplStatistics(ctx *ctx.Context) (*Statistics, error) { function TaskTplGetAll (line 76) | func TaskTplGetAll(ctx *ctx.Context) ([]*TaskTpl, error) { function TaskTplGets (line 87) | func TaskTplGets(ctx *ctx.Context, bgids []int64, query string, limit, o... function TaskTplGetById (line 112) | func TaskTplGetById(ctx *ctx.Context, id int64) (*TaskTpl, error) { function TaskTplGet (line 121) | func TaskTplGet(ctx *ctx.Context, where string, args ...interface{}) (*T... type TaskTplHost (line 191) | type TaskTplHost struct type TaskForm (line 351) | type TaskForm struct method Verify (line 367) | func (f *TaskForm) Verify() error { method HandleFH (line 424) | func (f *TaskForm) HandleFH(fh string) { FILE: models/ts.go type DataResp (line 11) | type DataResp struct method String (line 19) | func (d *DataResp) String() string { method Last (line 39) | func (d *DataResp) Last() (float64, float64, bool) { method MetricName (line 51) | func (d *DataResp) MetricName() string { method LabelsString (line 57) | func (d *DataResp) LabelsString() string { type RelationKey (line 62) | type RelationKey struct type QueryParam (line 68) | type QueryParam struct type Series (line 74) | type Series struct FILE: models/user.go constant Dingtalk (line 31) | Dingtalk = "dingtalk" constant Wecom (line 32) | Wecom = "wecom" constant Feishu (line 33) | Feishu = "feishu" constant FeishuCard (line 34) | FeishuCard = "feishucard" constant Discord (line 35) | Discord = "discord" constant MattermostWebhook (line 36) | MattermostWebhook = "mattermostwebhook" constant MattermostBot (line 37) | MattermostBot = "mattermostbot" constant SlackWebhook (line 38) | SlackWebhook = "slackwebhook" constant SlackBot (line 39) | SlackBot = "slackbot" constant Mm (line 40) | Mm = "mm" constant Telegram (line 41) | Telegram = "telegram" constant Email (line 42) | Email = "email" constant EmailSubject (line 43) | EmailSubject = "mailsubject" constant Lark (line 44) | Lark = "lark" constant LarkCard (line 45) | LarkCard = "larkcard" constant Phone (line 46) | Phone = "phone" constant Jira (line 47) | Jira = "jira" constant JSMAlert (line 48) | JSMAlert = "jsm_alert" constant DingtalkKey (line 50) | DingtalkKey = "dingtalk_robot_token" constant WecomKey (line 51) | WecomKey = "wecom_robot_token" constant FeishuKey (line 52) | FeishuKey = "feishu_robot_token" constant MmKey (line 53) | MmKey = "mm_webhook_url" constant TelegramKey (line 54) | TelegramKey = "telegram_robot_token" constant LarkKey (line 55) | LarkKey = "lark_robot_token" constant PagerDutyKey (line 56) | PagerDutyKey = "pagerduty_key" constant DingtalkDomain (line 58) | DingtalkDomain = "oapi.dingtalk.com" constant WecomDomain (line 59) | WecomDomain = "qyapi.weixin.qq.com" constant FeishuDomain (line 60) | FeishuDomain = "open.feishu.cn" constant LarkDomain (line 61) | LarkDomain = "open.larksuite.com" constant FeishuCardDomain (line 64) | FeishuCardDomain = "open.feishu.cn?card=1" constant LarkCardDomain (line 65) | LarkCardDomain = "open.larksuite.com?card=1" constant TelegramDomain (line 66) | TelegramDomain = "api.telegram.org" constant IbexDomain (line 67) | IbexDomain = "ibex" constant DefaultDomain (line 68) | DefaultDomain = "default" type User (line 76) | type User struct method TableName (line 110) | func (u *User) TableName() string { method String (line 114) | func (u *User) String() string { method IsAdmin (line 123) | func (u *User) IsAdmin() bool { method CheckGroupPermission (line 133) | func (u *User) CheckGroupPermission(ctx *ctx.Context, groupIds []int64... method Verify (line 187) | func (u *User) Verify() error { method UpdateSsoFields (line 220) | func (u *User) UpdateSsoFields(sso string, nickname, phone, email stri... method UpdateSsoFieldsWithRoles (line 239) | func (u *User) UpdateSsoFieldsWithRoles(sso string, nickname, phone, e... method FullSsoFields (line 252) | func (u *User) FullSsoFields(sso, username, nickname, phone, email str... method FullSsoFieldsWithTeams (line 271) | func (u *User) FullSsoFieldsWithTeams(sso, username, nickname, phone, ... method Add (line 277) | func (u *User) Add(ctx *ctx.Context) error { method Update (line 293) | func (u *User) Update(ctx *ctx.Context, selectField interface{}, selec... method UpdateAllFields (line 303) | func (u *User) UpdateAllFields(ctx *ctx.Context) error { method UpdatePassword (line 312) | func (u *User) UpdatePassword(ctx *ctx.Context, password, updateBy str... method AddToUserGroups (line 320) | func (u *User) AddToUserGroups(ctx *ctx.Context, userGroupIds []int64)... method Del (line 339) | func (u *User) Del(ctx *ctx.Context) error { method ChangePassword (line 357) | func (u *User) ChangePassword(ctx *ctx.Context, oldpass, newpass strin... method CanModifyUserGroup (line 898) | func (u *User) CanModifyUserGroup(ctx *ctx.Context, ug *UserGroup) (bo... method CanDoBusiGroup (line 918) | func (u *User) CanDoBusiGroup(ctx *ctx.Context, bg *BusiGroup, permFla... method CheckPerm (line 937) | func (u *User) CheckPerm(ctx *ctx.Context, operation string) (bool, er... method NopriIdents (line 962) | func (u *User) NopriIdents(ctx *ctx.Context, idents []string) ([]strin... method BusiGroups (line 999) | func (u *User) BusiGroups(ctx *ctx.Context, limit int, query string, a... method UserGroups (line 1073) | func (u *User) UserGroups(ctx *ctx.Context, limit int, query string) (... method ExtractToken (line 1119) | func (u *User) ExtractToken(key string) (string, bool) { method FindSameContact (line 1155) | func (u *User) FindSameContact(email, phone string) string { method AddUserAndGroups (line 1168) | func (u *User) AddUserAndGroups(ctx *ctx.Context, coverTeams bool) err... method EncryptPhone (line 1183) | func (u *User) EncryptPhone() (err error) { method DecryptPhone (line 1212) | func (u *User) DecryptPhone() { type UserGroupRes (line 100) | type UserGroupRes struct type BusiGroupRes (line 105) | type BusiGroupRes struct function stripInvisibleChars (line 153) | func stripInvisibleChars(s string) string { function stripInvisibleCharsFromContacts (line 165) | func stripInvisibleCharsFromContacts(contacts ormx.JSONObj) ormx.JSONObj { function UpdateUserLastActiveTime (line 332) | func UpdateUserLastActiveTime(ctx *ctx.Context, userId int64, lastActive... function UserGet (line 380) | func UserGet(ctx *ctx.Context, where string, args ...interface{}) (*User... function UsersGet (line 398) | func UsersGet(ctx *ctx.Context, where string, args ...interface{}) ([]*U... function UserMapGet (line 414) | func UserMapGet(ctx *ctx.Context, where string, args ...interface{}) map... function UserNicknameMap (line 428) | func UserNicknameMap(ctx *ctx.Context, names []string) map[string]string { function FillUpdateByNicknames (line 457) | func FillUpdateByNicknames[T any](ctx *ctx.Context, items []T) { function UserGetByUsername (line 501) | func UserGetByUsername(ctx *ctx.Context, username string) (*User, error) { function UserGetById (line 505) | func UserGetById(ctx *ctx.Context, id int64) (*User, error) { function CountAdminUsers (line 509) | func CountAdminUsers(ctx *ctx.Context) (int64, error) { function UsersGetByGroupIds (line 515) | func UsersGetByGroupIds(ctx *ctx.Context, groupIds []int64) ([]User, err... function InitRoot (line 531) | func InitRoot(ctx *ctx.Context) bool { function reachLoginFailCount (line 575) | func reachLoginFailCount(ctx *ctx.Context, redisObj storage.Redis, usern... function incrLoginFailCount (line 594) | func incrLoginFailCount(ctx *ctx.Context, redisObj storage.Redis, userna... function PassLogin (line 621) | func PassLogin(ctx *ctx.Context, redis storage.Redis, username, pass str... function UserTotal (line 693) | func UserTotal(ctx *ctx.Context, query string, stime, etime int64) (num ... function validateOrderField (line 720) | func validateOrderField(order string, defaultField string) string { function UserGets (line 755) | func UserGets(ctx *ctx.Context, query string, limit, offset int, stime, ... function UserGetAll (line 831) | func UserGetAll(ctx *ctx.Context) ([]*User, error) { function UserGetsByIds (line 849) | func UserGetsByIds(ctx *ctx.Context, ids []int64) ([]User, error) { function UserGetsBySso (line 867) | func UserGetsBySso(ctx *ctx.Context, sso string) (map[string]*User, erro... function UserDelByIds (line 884) | func UserDelByIds(ctx *ctx.Context, userIds []int64) error { function UserStatistics (line 945) | func UserStatistics(ctx *ctx.Context) (*Statistics, error) { FILE: models/user_group.go type UserGroup (line 14) | type UserGroup struct method TableName (line 28) | func (ug *UserGroup) TableName() string { method Verify (line 32) | func (ug *UserGroup) Verify() error { method Update (line 44) | func (ug *UserGroup) Update(ctx *ctx.Context, selectField interface{},... method Add (line 56) | func (ug *UserGroup) Add(ctx *ctx.Context) error { method Del (line 76) | func (ug *UserGroup) Del(ctx *ctx.Context) error { method AddMembers (line 142) | func (ug *UserGroup) AddMembers(ctx *ctx.Context, userIds []int64) err... method DelMembers (line 160) | func (ug *UserGroup) DelMembers(ctx *ctx.Context, userIds []int64) err... function UserGroupCount (line 52) | func UserGroupCount(ctx *ctx.Context, where string, args ...interface{})... function UserGroupGet (line 90) | func UserGroupGet(ctx *ctx.Context, where string, args ...interface{}) (... function UserGroupGetById (line 104) | func UserGroupGetById(ctx *ctx.Context, id int64) (*UserGroup, error) { function UserGroupGetByIds (line 108) | func UserGroupGetByIds(ctx *ctx.Context, ids []int64) ([]UserGroup, erro... function UserGroupIdAndNameMap (line 118) | func UserGroupIdAndNameMap(ctx *ctx.Context, ids []int64) (map[int64]str... function UserGroupGetAll (line 131) | func UserGroupGetAll(ctx *ctx.Context) ([]*UserGroup, error) { function UserGroupStatistics (line 164) | func UserGroupStatistics(ctx *ctx.Context) (*Statistics, error) { FILE: models/user_group_member.go type UserGroupMember (line 10) | type UserGroupMember struct method TableName (line 15) | func (UserGroupMember) TableName() string { function MyGroupIds (line 19) | func MyGroupIds(ctx *ctx.Context, userId int64) ([]int64, error) { function MyGroupIdsMap (line 25) | func MyGroupIdsMap(ctx *ctx.Context, userId int64) (map[int64]struct{}, ... function MyBusiGroupIds (line 40) | func MyBusiGroupIds(ctx *ctx.Context, userId int64) ([]int64, error) { function MemberIds (line 49) | func MemberIds(ctx *ctx.Context, groupId int64) ([]int64, error) { function GroupsMemberIds (line 55) | func GroupsMemberIds(ctx *ctx.Context, groupIds []int64) ([]int64, error) { function UserGroupMemberCount (line 61) | func UserGroupMemberCount(ctx *ctx.Context, where string, args ...interf... function UserGroupMemberAdd (line 65) | func UserGroupMemberAdd(ctx *ctx.Context, groupId, userId int64) error { function UserGroupMemberDel (line 84) | func UserGroupMemberDel(ctx *ctx.Context, groupId int64, userIds []int64... function UserGroupMemberGetAll (line 92) | func UserGroupMemberGetAll(ctx *ctx.Context) ([]*UserGroupMember, error) { function UserGroupMemberSync (line 104) | func UserGroupMemberSync(ctx *ctx.Context, ldapGids []int64, userId int6... function UserGroupMemberSyncByUser (line 163) | func UserGroupMemberSyncByUser(ctx *ctx.Context, user *User, coverTeams ... function slice2Set (line 171) | func slice2Set[T comparable](s []T) map[T]bool { FILE: models/user_token.go type UserToken (line 9) | type UserToken struct method TableName (line 18) | func (UserToken) TableName() string { function CountToken (line 22) | func CountToken(ctx *ctx.Context, username string) (int64, error) { function AddToken (line 28) | func AddToken(ctx *ctx.Context, username, token, tokenName string) (*Use... function DeleteToken (line 40) | func DeleteToken(ctx *ctx.Context, id int64) error { function GetTokensByUsername (line 45) | func GetTokensByUsername(ctx *ctx.Context, username string) ([]UserToken... function UserTokenGetAll (line 51) | func UserTokenGetAll(ctx *ctx.Context) ([]*UserToken, error) { function UserTokenTotal (line 57) | func UserTokenTotal(ctx *ctx.Context) (int64, error) { function UserTokenUpdateLastUsedTime (line 63) | func UserTokenUpdateLastUsedTime(ctx *ctx.Context, token string, lastUse... FILE: models/workflow.go type WorkflowNode (line 4) | type WorkflowNode struct type Connections (line 20) | type Connections type NodeConnections (line 23) | type NodeConnections struct type ConnectionTarget (line 30) | type ConnectionTarget struct type InputVariable (line 37) | type InputVariable struct type NodeOutput (line 44) | type NodeOutput struct type WorkflowResult (line 56) | type WorkflowResult struct type NodeExecutionResult (line 69) | type NodeExecutionResult struct constant TriggerModeEvent (line 84) | TriggerModeEvent = "event" constant TriggerModeAPI (line 85) | TriggerModeAPI = "api" constant TriggerModeCron (line 86) | TriggerModeCron = "cron" constant UseCaseEventPipeline (line 90) | UseCaseEventPipeline = "event_pipeline" constant UseCaseEventSummary (line 91) | UseCaseEventSummary = "firemap" type WorkflowTriggerContext (line 95) | type WorkflowTriggerContext struct type WorkflowContext (line 117) | type WorkflowContext struct constant StreamTypeThinking (line 131) | StreamTypeThinking = "thinking" constant StreamTypeToolCall (line 132) | StreamTypeToolCall = "tool_call" constant StreamTypeToolResult (line 133) | StreamTypeToolResult = "tool_result" constant StreamTypeText (line 134) | StreamTypeText = "text" constant StreamTypeDone (line 135) | StreamTypeDone = "done" constant StreamTypeError (line 136) | StreamTypeError = "error" type StreamChunk (line 140) | type StreamChunk struct FILE: pkg/aop/log.go type consoleColorModeValue (line 18) | type consoleColorModeValue constant autoColor (line 21) | autoColor consoleColorModeValue = iota constant disableColor (line 22) | disableColor constant forceColor (line 23) | forceColor type LoggerConfig (line 39) | type LoggerConfig struct method ContainsPath (line 54) | func (c *LoggerConfig) ContainsPath(path string) bool { type LogFormatter (line 61) | type LogFormatter type LogFormatterParams (line 64) | type LogFormatterParams struct method StatusCodeColor (line 90) | func (p *LogFormatterParams) StatusCodeColor() string { method MethodColor (line 106) | func (p *LogFormatterParams) MethodColor() string { method ResetColor (line 130) | func (p *LogFormatterParams) ResetColor() string { method IsOutputColor (line 135) | func (p *LogFormatterParams) IsOutputColor() bool { function DisableConsoleColor (line 163) | func DisableConsoleColor() { function ForceConsoleColor (line 168) | func ForceConsoleColor() { function ErrorLogger (line 173) | func ErrorLogger() gin.HandlerFunc { function ErrorLoggerT (line 178) | func ErrorLoggerT(typ gin.ErrorType) gin.HandlerFunc { function Logger (line 190) | func Logger(conf ...LoggerConfig) gin.HandlerFunc { function LoggerWithFormatter (line 200) | func LoggerWithFormatter(f LogFormatter) gin.HandlerFunc { function LoggerWithWriter (line 208) | func LoggerWithWriter(out io.Writer, notlogged ...string) gin.HandlerFunc { type CustomResponseWriter (line 215) | type CustomResponseWriter struct method Write (line 220) | func (w CustomResponseWriter) Write(data []byte) (int, error) { method WriteString (line 225) | func (w CustomResponseWriter) WriteString(s string) (int, error) { method Unwrap (line 230) | func (w CustomResponseWriter) Unwrap() http.ResponseWriter { function LoggerWithConfig (line 235) | func LoggerWithConfig(conf LoggerConfig) gin.HandlerFunc { function readBody (line 342) | func readBody(reader io.Reader, encoding string) string { FILE: pkg/aop/rec.go function Recovery (line 34) | func Recovery() gin.HandlerFunc { function RecoveryWithWriter (line 39) | func RecoveryWithWriter(out io.Writer) gin.HandlerFunc { function stack (line 106) | func stack(skip int) []byte { function source (line 133) | func source(lines [][]byte, n int) []byte { function function (line 142) | func function(pc uintptr) []byte { function timeFormat (line 166) | func timeFormat(t time.Time) string { FILE: pkg/cas/cas.go type Config (line 20) | type Config struct type SsoClient (line 38) | type SsoClient struct method Reload (line 87) | func (s *SsoClient) Reload(cf Config) { method GetDisplayName (line 117) | func (s *SsoClient) GetDisplayName() string { method GetSsoLogoutAddr (line 127) | func (s *SsoClient) GetSsoLogoutAddr() string { method Authorize (line 138) | func (s *SsoClient) Authorize(redis storage.Redis, redirect string) (s... method genRedirectURL (line 160) | func (s *SsoClient) genRedirectURL(state string) string { method ValidateServiceTicket (line 204) | func (s *SsoClient) ValidateServiceTicket(ctx context.Context, ticket,... function New (line 57) | func New(cf Config) *SsoClient { function fetchRedirect (line 148) | func fetchRedirect(ctx context.Context, state string, redis storage.Redi... function deleteRedirect (line 152) | func deleteRedirect(ctx context.Context, state string, redis storage.Red... function wrapStateKey (line 156) | func wrapStateKey(key string) string { type CallbackOutput (line 194) | type CallbackOutput struct FILE: pkg/cfg/cfg.go function LoadConfigByDir (line 14) | func LoadConfigByDir(configDir string, configPtr interface{}) error { FILE: pkg/cfg/scan.go type scanner (line 7) | type scanner struct method Err (line 16) | func (s *scanner) Err() error { method Data (line 20) | func (s *scanner) Data() []byte { method Read (line 24) | func (s *scanner) Read(file string) { function NewFileScanner (line 12) | func NewFileScanner() *scanner { FILE: pkg/choice/choice.go function Contains (line 11) | func Contains(choice string, choices []string) bool { function ContainsPrefix (line 21) | func ContainsPrefix(choice string, choices []string) bool { function Check (line 32) | func Check(choice string, available []string) error { function CheckSlice (line 41) | func CheckSlice(choices, available []string) error { FILE: pkg/cmdx/cmd_notwindows.go function CmdWait (line 12) | func CmdWait(cmd *exec.Cmd, timeout time.Duration) (error, bool) { function CmdStart (line 34) | func CmdStart(cmd *exec.Cmd) error { FILE: pkg/cmdx/cmd_windows.go function CmdWait (line 12) | func CmdWait(cmd *exec.Cmd, timeout time.Duration) (error, bool) { function CmdStart (line 33) | func CmdStart(cmd *exec.Cmd) error { FILE: pkg/cmdx/cmdx.go function RunTimeout (line 8) | func RunTimeout(cmd *exec.Cmd, timeout time.Duration) (error, bool) { FILE: pkg/ctx/ctx.go type Context (line 11) | type Context struct method SetDB (line 33) | func (c *Context) SetDB(db *gorm.DB) { method GetContext (line 38) | func (c *Context) GetContext() context.Context { method GetDB (line 43) | func (c *Context) GetDB() *gorm.DB { method WithContext (line 49) | func (c *Context) WithContext(stdCtx context.Context) *Context { function NewContext (line 18) | func NewContext(ctx context.Context, db *gorm.DB, isCenter bool, centerA... FILE: pkg/dingtalk/dingtalk.go constant defaultAuthURL (line 25) | defaultAuthURL = "https://login.dingtalk.com/oauth2/auth" constant SsoTypeName (line 26) | SsoTypeName = "dingtalk" type SsoClient (line 28) | type SsoClient struct method AuthCodeURL (line 180) | func (s *SsoClient) AuthCodeURL(state string) (string, error) { method GetUserToken (line 221) | func (s *SsoClient) GetUserToken(code string) (string, error) { method GetAccessToken (line 240) | func (s *SsoClient) GetAccessToken() (string, error) { method Reload (line 256) | func (s *SsoClient) Reload(dingTalkConfig Config) { method GetDisplayName (line 263) | func (s *SsoClient) GetDisplayName() string { method Authorize (line 273) | func (s *SsoClient) Authorize(redis storage.Redis, redirect string) (s... method GetUserInfo (line 289) | func (s *SsoClient) GetUserInfo(accessToken string, unionid string) (*... method Callback (line 323) | func (s *SsoClient) Callback(redis storage.Redis, ctx context.Context,... type Config (line 35) | type Config struct method CreateClient (line 74) | func (c *Config) CreateClient() (*dingtalkoauth2.Client, error) { method ContactClient (line 94) | func (c *Config) ContactClient() (*contact_1_0.Client, error) { method UserClient (line 113) | func (c *Config) UserClient() (*dingtalkUserClient.Client, error) { method setEndpoint (line 131) | func (c *Config) setEndpoint(config *openapi.Config, endpoint string) ... method setProxy (line 156) | func (c *Config) setProxy(config *openapi.Config) error { type CallbackOutput (line 54) | type CallbackOutput struct function wrapStateKey (line 64) | func wrapStateKey(key string) string { function New (line 171) | func New(cf Config) *SsoClient { function dingTalkAccessTokenCacheSet (line 427) | func dingTalkAccessTokenCacheSet(redis storage.Redis, ctx context.Contex... function dingTalkAccessTokenCacheGet (line 434) | func dingTalkAccessTokenCacheGet(redis storage.Redis, ctx context.Contex... function fetchRedirect (line 438) | func fetchRedirect(redis storage.Redis, ctx context.Context, state strin... function deleteRedirect (line 442) | func deleteRedirect(redis storage.Redis, ctx context.Context, state stri... FILE: pkg/dingtalk/user/client.go type GetUserQuery (line 11) | type GetUserQuery struct type Client (line 15) | type Client struct method Init (line 25) | func (client *Client) Init(config *openapi.Config) (err error) { method GetUser (line 53) | func (client *Client) GetUser(request *GetUserRequest, query *GetUserQ... method GetByUnionId (line 156) | func (client *Client) GetByUnionId(request *GetUnionIdRequest, query *... function NewClient (line 19) | func NewClient(config *openapi.Config) (*Client, error) { type GetUserRequest (line 93) | type GetUserRequest struct type GetUserResult (line 98) | type GetUserResult struct method String (line 110) | func (s GetUserResult) String() string { method GoString (line 114) | func (s GetUserResult) GoString() string { type GetUserResponseBody (line 118) | type GetUserResponseBody struct method String (line 125) | func (s GetUserResponseBody) String() string { method GoString (line 129) | func (s GetUserResponseBody) GoString() string { type GetUserResponse (line 133) | type GetUserResponse struct method String (line 139) | func (s GetUserResponse) String() string { method GoString (line 143) | func (s GetUserResponse) GoString() string { type GetUnionIdRequest (line 192) | type GetUnionIdRequest struct type GetUserIDResult (line 196) | type GetUserIDResult struct method String (line 201) | func (s GetUserIDResult) String() string { method GoString (line 205) | func (s GetUserIDResult) GoString() string { type GetUserIDResponseBody (line 209) | type GetUserIDResponseBody struct method String (line 216) | func (s GetUserIDResponseBody) String() string { method GoString (line 220) | func (s GetUserIDResponseBody) GoString() string { type GetUserIDResponse (line 224) | type GetUserIDResponse struct method String (line 230) | func (s GetUserIDResponse) String() string { method GoString (line 234) | func (s GetUserIDResponse) GoString() string { FILE: pkg/fasttime/fasttime.go function init (line 8) | func init() { function UnixTimestamp (line 24) | func UnixTimestamp() uint64 { function UnixDate (line 31) | func UnixDate() uint64 { function UnixHour (line 38) | func UnixHour() uint64 { FILE: pkg/feishu/feishu.go constant defaultAuthURL (line 23) | defaultAuthURL = "https://accounts.feishu.cn/open-apis/authen/v1/authorize" constant SsoTypeName (line 24) | SsoTypeName = "feishu" type SsoClient (line 26) | type SsoClient struct method AuthCodeURL (line 93) | func (s *SsoClient) AuthCodeURL(state string) (string, error) { method GetUserToken (line 121) | func (s *SsoClient) GetUserToken(code string) (string, string, error) { method GetUserInfo (line 171) | func (s *SsoClient) GetUserInfo(userID string) (*larkcontact.GetUserRe... method Reload (line 201) | func (s *SsoClient) Reload(feishuConfig Config) { method GetDisplayName (line 218) | func (s *SsoClient) GetDisplayName() string { method Authorize (line 228) | func (s *SsoClient) Authorize(redis storage.Redis, redirect string) (s... method Callback (line 243) | func (s *SsoClient) Callback(redis storage.Redis, ctx context.Context,... type Config (line 34) | type Config struct method createClient (line 64) | func (c *Config) createClient() (*lark.Client, error) { type CallbackOutput (line 49) | type CallbackOutput struct function wrapStateKey (line 59) | func wrapStateKey(key string) string { function New (line 84) | func New(cf Config) *SsoClient { function fetchRedirect (line 340) | func fetchRedirect(redis storage.Redis, ctx context.Context, state strin... function deleteRedirect (line 344) | func deleteRedirect(redis storage.Redis, ctx context.Context, state stri... FILE: pkg/flashduty/post.go function Init (line 23) | func Init(fdConf cconf.FlashDuty) { type dutyResp (line 35) | type dutyResp struct type TeamInfo (line 43) | type TeamInfo struct type Data (line 56) | type Data struct type Item (line 63) | type Item struct function PostFlashDuty (line 72) | func PostFlashDuty(path string, appKey string, body interface{}) error { function PostFlashDutyWithResp (line 77) | func PostFlashDutyWithResp[T any](path string, appKey string, body inter... function PostJSON (line 101) | func PostJSON(url string, timeout time.Duration, headers map[string]stri... FILE: pkg/flashduty/sync_user.go function SyncUsersChange (line 14) | func SyncUsersChange(ctx *ctx.Context, dbUsers []*models.User) error { function sliceToMap (line 71) | func sliceToMap(dbUsers []*models.User) map[int64]*models.User { function diffMap (line 80) | func diffMap(m1, m2 map[int64]*models.User) []models.User { function updateUser (line 89) | func updateUser(appKey string, m1, m2 map[int64]*models.User) { function PhoneIsSame (line 113) | func PhoneIsSame(phone1, phone2 string) bool { type User (line 137) | type User struct method delMember (line 153) | func (user *User) delMember(appKey string) error { method UpdateMember (line 161) | func (user *User) UpdateMember(appKey string) error { type Updates (line 145) | type Updates struct type Members (line 166) | type Members struct method addMembers (line 170) | func (m *Members) addMembers(appKey string) error { function fdAddUsers (line 189) | func fdAddUsers(appKey string, users []models.User) error { function fdDelUsers (line 197) | func fdDelUsers(appKey string, users []models.User) { function usersToFdUsers (line 206) | func usersToFdUsers(users []models.User) []User { function UpdateUser (line 220) | func UpdateUser(ctx *ctx.Context, target models.User, email, phone strin... FILE: pkg/flashduty/sync_user_group.go type UserGroupSyncer (line 14) | type UserGroupSyncer struct method SyncUGAdd (line 34) | func (ugs *UserGroupSyncer) SyncUGAdd() error { method SyncUGPut (line 47) | func (ugs *UserGroupSyncer) SyncUGPut() error { method SyncUGDel (line 115) | func (ugs *UserGroupSyncer) SyncUGDel() error { method SyncMembersAdd (line 123) | func (ugs *UserGroupSyncer) SyncMembersAdd() error { method SyncMembersDel (line 127) | func (ugs *UserGroupSyncer) SyncMembersDel() error { method syncTeamMember (line 131) | func (ugs *UserGroupSyncer) syncTeamMember() error { method addMemberToFDTeam (line 149) | func (ugs *UserGroupSyncer) addMemberToFDTeam(users []models.User) err... method CheckTeam (line 243) | func (ugs *UserGroupSyncer) CheckTeam(ref_id string) (int64, error) { function NewUserGroupSyncer (line 21) | func NewUserGroupSyncer(ctx *ctx.Context, ug *models.UserGroup) (*UserGr... type Team (line 186) | type Team struct method AddTeam (line 196) | func (t *Team) AddTeam(appKey string) error { method UpdateTeam (line 203) | func (t *Team) UpdateTeam(appKey string) error { method DelTeam (line 209) | func (t *Team) DelTeam(appKey string) error { function NeedSyncTeam (line 214) | func NeedSyncTeam(ctx *ctx.Context) bool { function NeedSyncUser (line 228) | func NeedSyncUser(ctx *ctx.Context) bool { FILE: pkg/flashduty/sync_user_test.go function TestPhoneIsSame (line 5) | func TestPhoneIsSame(t *testing.T) { FILE: pkg/ginx/auth.go constant AuthUserKey (line 17) | AuthUserKey = "user" type Accounts (line 20) | type Accounts type Account (line 22) | type Account struct type authPair (line 27) | type authPair struct type authPairs (line 32) | type authPairs method searchCredential (line 34) | func (a authPairs) searchCredential(authValue string) (string, bool) { function BasicAuthForRealm (line 50) | func BasicAuthForRealm(accounts Accounts, realm string) gin.HandlerFunc { function BasicAuth (line 74) | func BasicAuth(accounts Accounts) gin.HandlerFunc { function processAccounts (line 78) | func processAccounts(accounts Accounts) authPairs { function authorizationHeader (line 93) | func authorizationHeader(user, password string) string { function assert1 (line 98) | func assert1(guard bool, text string) { FILE: pkg/ginx/bytesconv.go function StringToBytes (line 15) | func StringToBytes(s string) []byte { function BytesToString (line 21) | func BytesToString(b []byte) string { FILE: pkg/ginx/errorx.go function Bomb (line 5) | func Bomb(code int, format string, a ...interface{}) { function Dangerous (line 9) | func Dangerous(v interface{}, code ...int) { FILE: pkg/ginx/funcs.go function Offset (line 7) | func Offset(c *gin.Context, limit int, pagenoVarName ...string) int { FILE: pkg/ginx/param.go function BindJSON (line 11) | func BindJSON(c *gin.Context, ptr interface{}) { function UrlParamStr (line 18) | func UrlParamStr(c *gin.Context, field string) string { function UrlParamInt64 (line 28) | func UrlParamInt64(c *gin.Context, field string) int64 { function UrlParamInt (line 38) | func UrlParamInt(c *gin.Context, field string) int { function QueryStr (line 42) | func QueryStr(c *gin.Context, key string, defaultVal ...string) string { function QueryInt (line 55) | func QueryInt(c *gin.Context, key string, defaultVal ...int) int { function QueryInt64 (line 72) | func QueryInt64(c *gin.Context, key string, defaultVal ...int64) int64 { function QueryBool (line 89) | func QueryBool(c *gin.Context, key string, defaultVal ...bool) bool { FILE: pkg/ginx/render.go type Render (line 8) | type Render struct method Message (line 23) | func (r Render) Message(v interface{}, a ...interface{}) { method Data (line 52) | func (r Render) Data(data interface{}, err interface{}, a ...interface... method ZeroPage (line 61) | func (r Render) ZeroPage() { function NewRender (line 13) | func NewRender(c *gin.Context, code ...int) Render { FILE: pkg/hash/hash.go function GetHash (line 11) | func GetHash(m prommodel.Metric, ref string) uint64 { function GetTagHash (line 34) | func GetTagHash(m prommodel.Metric) uint64 { function GetTargetTagHash (line 58) | func GetTargetTagHash(m prommodel.Metric, target []string) uint64 { FILE: pkg/hash/hash_fnv.go function DeepHashObject (line 28) | func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) { FILE: pkg/hash/hash_md5.go function GetHash2 (line 8) | func GetHash2(m prommodel.Metric, ref string) string { function GetTagHash2 (line 21) | func GetTagHash2(m prommodel.Metric) string { FILE: pkg/httpx/httpx.go type Config (line 22) | type Config struct type RSAConfig (line 45) | type RSAConfig struct type ShowCaptcha (line 54) | type ShowCaptcha struct type BasicAuths (line 58) | type BasicAuths struct type ProxyAuth (line 63) | type ProxyAuth struct type JWTAuth (line 69) | type JWTAuth struct type TokenAuth (line 77) | type TokenAuth struct function GinEngine (line 82) | func GinEngine(mode string, cfg Config, printBodyPaths func() map[string... function traceIdMid (line 133) | func traceIdMid() gin.HandlerFunc { function isValidTraceId (line 147) | func isValidTraceId(id string) bool { function Init (line 159) | func Init(cfg Config, handler http.Handler) func() { FILE: pkg/i18nx/i18n.go function Init (line 12) | func Init(configDir string) { FILE: pkg/ibex/ibex.go type Ibex (line 14) | type Ibex struct method In (line 42) | func (i *Ibex) In(v interface{}) *Ibex { method Out (line 47) | func (i *Ibex) Out(ptr interface{}) *Ibex { method Path (line 52) | func (i *Ibex) Path(p string) *Ibex { method Method (line 57) | func (i *Ibex) Method(m string) *Ibex { method Header (line 62) | func (i *Ibex) Header(key, value string) *Ibex { method QueryString (line 67) | func (i *Ibex) QueryString(key, value string) *Ibex { method buildUrl (line 76) | func (i *Ibex) buildUrl() { method do (line 101) | func (i *Ibex) do() error { method GET (line 159) | func (i *Ibex) GET() error { method POST (line 164) | func (i *Ibex) POST() error { method PUT (line 169) | func (i *Ibex) PUT() error { method DELETE (line 174) | func (i *Ibex) DELETE() error { method PATCH (line 179) | func (i *Ibex) PATCH() error { function New (line 27) | func New(addr, user, pass string, timeout int64) *Ibex { FILE: pkg/ldapx/ldapx.go type Config (line 19) | type Config struct type SsoClient (line 41) | type SsoClient struct method Reload (line 94) | func (s *SsoClient) Reload(cf Config) { method Copy (line 139) | func (s *SsoClient) Copy() *SsoClient { method LoginCheck (line 155) | func (s *SsoClient) LoginCheck(user, pass string) (*ldap.SearchResult,... method newLdapConn (line 201) | func (s *SsoClient) newLdapConn() (*ldap.Conn, error) { method ldapReq (line 237) | func (s *SsoClient) ldapReq(conn *ldap.Conn, filter string, values ...... method GetUserRolesAndTeams (line 260) | func (s *SsoClient) GetUserRolesAndTeams(entry *ldap.Entry) *RoleTeamM... method genLdapAttributeSearchList (line 293) | func (s *SsoClient) genLdapAttributeSearchList() []string { type LdapAttributes (line 67) | type LdapAttributes struct type RoleTeamMapping (line 75) | type RoleTeamMapping struct function New (line 81) | func New(cf Config) *SsoClient { function LdapLogin (line 321) | func LdapLogin(ctx *ctx.Context, username, pass string, defaultRoles []s... FILE: pkg/ldapx/user_sync.go method SyncAddAndDelUsers (line 14) | func (s *SsoClient) SyncAddAndDelUsers(ctx *ctx.Context) error { method getUsersFromSsoAndDb (line 62) | func (s *SsoClient) getUsersFromSsoAndDb(ctx *ctx.Context) (usersFromSso... method UserGetAll (line 76) | func (s *SsoClient) UserGetAll() (map[string]*models.User, error) { function diffUsers (line 121) | func diffUsers(base, newUsers map[string]*models.User) (newExtraUsers, u... method SyncDelUsers (line 136) | func (s *SsoClient) SyncDelUsers(ctx *ctx.Context) error { method UserExist (line 172) | func (s *SsoClient) UserExist(username string) (bool, error) { FILE: pkg/loggrep/loggrep.go constant MaxLogLines (line 14) | MaxLogLines = 5000 function IsValidHash (line 21) | func IsValidHash(s string) bool { function IsValidRuleID (line 26) | func IsValidRuleID(s string) bool { function IsValidTraceID (line 31) | func IsValidTraceID(s string) bool { type EventDetailResp (line 35) | type EventDetailResp struct type PageData (line 40) | type PageData struct type AlertEvalPageData (line 47) | type AlertEvalPageData struct type TraceLogsPageData (line 54) | type TraceLogsPageData struct function GrepLogDir (line 63) | func GrepLogDir(logDir string, keyword string) ([]string, error) { function GrepLatestLogFiles (line 91) | func GrepLatestLogFiles(logDir string, keyword string) ([]string, error) { function GrepFile (line 118) | func GrepFile(filePath string, keyword string) ([]string, error) { function RenderHTML (line 138) | func RenderHTML(w io.Writer, data PageData) error { function RenderAlertEvalHTML (line 143) | func RenderAlertEvalHTML(w io.Writer, data AlertEvalPageData) error { function RenderTraceLogsHTML (line 148) | func RenderTraceLogsHTML(w io.Writer, data TraceLogsPageData) error { FILE: pkg/logx/logx.go type Config (line 11) | type Config struct function Init (line 21) | func Init(c Config) (func(), error) { type traceKey (line 52) | type traceKey struct function NewTraceContext (line 55) | func NewTraceContext(ctx context.Context, traceId string) context.Context { function GetTraceId (line 60) | func GetTraceId(ctx context.Context) string { function prefix (line 68) | func prefix(ctx context.Context) string { function Infof (line 76) | func Infof(ctx context.Context, format string, args ...interface{}) { function Errorf (line 80) | func Errorf(ctx context.Context, format string, args ...interface{}) { function Warningf (line 84) | func Warningf(ctx context.Context, format string, args ...interface{}) { function Debugf (line 88) | func Debugf(ctx context.Context, format string, args ...interface{}) { FILE: pkg/macros/macros.go function RegisterMacro (line 5) | func RegisterMacro(f func(sql string, start, end int64) (string, error)) { function MacroInVain (line 9) | func MacroInVain(sql string, start, end int64) (string, error) { FILE: pkg/oauth2x/oauth2x.go type SsoClient (line 22) | type SsoClient struct method Reload (line 80) | func (s *SsoClient) Reload(cf Config) { method GetDisplayName (line 128) | func (s *SsoClient) GetDisplayName() string { method GetSsoLogoutAddr (line 138) | func (s *SsoClient) GetSsoLogoutAddr() string { method Authorize (line 153) | func (s *SsoClient) Authorize(redis storage.Redis, redirect string) (s... method Callback (line 176) | func (s *SsoClient) Callback(redis storage.Redis, ctx context.Context,... method exchangeUser (line 203) | func (s *SsoClient) exchangeUser(code string) (*CallbackOutput, error) { method getUserInfo (line 226) | func (s *SsoClient) getUserInfo(ClientId, UserInfoAddr, accessToken st... type Config (line 46) | type Config struct function New (line 71) | func New(cf Config) *SsoClient { function wrapStateKey (line 148) | func wrapStateKey(key string) string { function fetchRedirect (line 167) | func fetchRedirect(redis storage.Redis, ctx context.Context, state strin... function deleteRedirect (line 171) | func deleteRedirect(redis storage.Redis, ctx context.Context, state stri... type CallbackOutput (line 193) | type CallbackOutput struct function getUserinfoField (line 269) | func getUserinfoField(input []byte, isArray bool, prefix, field string) ... FILE: pkg/oidcx/oidc.go type SsoClient (line 20) | type SsoClient struct method Reload (line 73) | func (s *SsoClient) Reload(cf Config) error { method GetDisplayName (line 134) | func (s *SsoClient) GetDisplayName() string { method GetSsoLogoutAddr (line 144) | func (s *SsoClient) GetSsoLogoutAddr(idToken string) string { method replaceIdTokenTemplate (line 155) | func (s *SsoClient) replaceIdTokenTemplate(logoutAddr, idToken string)... method Authorize (line 167) | func (s *SsoClient) Authorize(redis storage.Redis, redirect string) (s... method Callback (line 191) | func (s *SsoClient) Callback(redis storage.Redis, ctx context.Context,... method exchangeUser (line 220) | func (s *SsoClient) exchangeUser(code string) (*CallbackOutput, error) { type Config (line 43) | type Config struct function New (line 64) | func New(cf Config) (*SsoClient, error) { function wrapStateKey (line 162) | func wrapStateKey(key string) string { function fetchRedirect (line 182) | func fetchRedirect(redis storage.Redis, ctx context.Context, state strin... function deleteRedirect (line 186) | func deleteRedirect(redis storage.Redis, ctx context.Context, state stri... type CallbackOutput (line 209) | type CallbackOutput struct function extractClaim (line 296) | func extractClaim(data map[string]interface{}, key string) string { FILE: pkg/ormx/database_init.go type InitUser (line 14) | type InitUser struct method TableName (line 33) | func (InitUser) TableName() string { method TableOptions (line 37) | func (InitUser) TableOptions() string { type InitPostgresUser (line 41) | type InitPostgresUser struct method TableName (line 60) | func (InitPostgresUser) TableName() string { type InitUserGroup (line 64) | type InitUserGroup struct method TableName (line 74) | func (InitUserGroup) TableName() string { method TableOptions (line 78) | func (InitUserGroup) TableOptions() string { type InitUserGroupMember (line 82) | type InitUserGroupMember struct method TableName (line 88) | func (InitUserGroupMember) TableName() string { method TableOptions (line 92) | func (InitUserGroupMember) TableOptions() string { type InitConfig (line 96) | type InitConfig struct method TableName (line 109) | func (InitConfig) TableName() string { method TableOptions (line 113) | func (InitConfig) TableOptions() string { type InitPostgresConfig (line 117) | type InitPostgresConfig struct method TableName (line 130) | func (InitPostgresConfig) TableName() string { type InitRole (line 134) | type InitRole struct method TableName (line 140) | func (InitRole) TableName() string { method TableOptions (line 144) | func (InitRole) TableOptions() string { type InitRoleOperation (line 148) | type InitRoleOperation struct method TableName (line 154) | func (InitRoleOperation) TableName() string { method TableOptions (line 158) | func (InitRoleOperation) TableOptions() string { type InitBusiGroup (line 162) | type InitBusiGroup struct method TableName (line 173) | func (InitBusiGroup) TableName() string { method TableOptions (line 177) | func (InitBusiGroup) TableOptions() string { type InitPostgresBusiGroup (line 181) | type InitPostgresBusiGroup struct method TableName (line 192) | func (InitPostgresBusiGroup) TableName() string { type InitBusiGroupMember (line 196) | type InitBusiGroupMember struct method TableName (line 203) | func (InitBusiGroupMember) TableName() string { method TableOptions (line 207) | func (InitBusiGroupMember) TableOptions() string { type InitBoard (line 211) | type InitBoard struct method TableName (line 226) | func (InitBoard) TableName() string { method TableOptions (line 230) | func (InitBoard) TableOptions() string { type InitPostgresBoard (line 234) | type InitPostgresBoard struct method TableName (line 249) | func (InitPostgresBoard) TableName() string { type InitBoardPayload (line 253) | type InitBoardPayload struct method TableName (line 258) | func (InitBoardPayload) TableName() string { method TableOptions (line 262) | func (InitBoardPayload) TableOptions() string { type InitPostgresBoardPayload (line 266) | type InitPostgresBoardPayload struct method TableName (line 271) | func (InitPostgresBoardPayload) TableName() string { type InitDashboard (line 275) | type InitDashboard struct method TableName (line 287) | func (InitDashboard) TableName() string { method TableOptions (line 291) | func (InitDashboard) TableOptions() string { type InitChartGroup (line 295) | type InitChartGroup struct method TableName (line 302) | func (InitChartGroup) TableName() string { method TableOptions (line 306) | func (InitChartGroup) TableOptions() string { type InitChart (line 310) | type InitChart struct method TableName (line 317) | func (InitChart) TableName() string { method TableOptions (line 321) | func (InitChart) TableOptions() string { type InitChartShare (line 325) | type InitChartShare struct method TableName (line 334) | func (InitChartShare) TableName() string { method TableOptions (line 338) | func (InitChartShare) TableOptions() string { type InitAlertRule (line 342) | type InitAlertRule struct method TableName (line 383) | func (InitAlertRule) TableName() string { method TableOptions (line 387) | func (InitAlertRule) TableOptions() string { type InitPostgresAlertRule (line 391) | type InitPostgresAlertRule struct method TableName (line 432) | func (InitPostgresAlertRule) TableName() string { type InitAlertMute (line 436) | type InitAlertMute struct method TableName (line 458) | func (InitAlertMute) TableName() string { method TableOptions (line 462) | func (InitAlertMute) TableOptions() string { type InitPostgresAlertMute (line 466) | type InitPostgresAlertMute struct method TableName (line 488) | func (InitPostgresAlertMute) TableName() string { type InitAlertSubscribe (line 492) | type InitAlertSubscribe struct method TableName (line 522) | func (InitAlertSubscribe) TableName() string { method TableOptions (line 526) | func (InitAlertSubscribe) TableOptions() string { type InitPostgresAlertSubscribe (line 530) | type InitPostgresAlertSubscribe struct method TableName (line 560) | func (InitPostgresAlertSubscribe) TableName() string { type InitTarget (line 564) | type InitTarget struct method TableName (line 578) | func (InitTarget) TableName() string { method TableOptions (line 582) | func (InitTarget) TableOptions() string { type InitMetricView (line 586) | type InitMetricView struct method TableName (line 596) | func (InitMetricView) TableName() string { method TableOptions (line 600) | func (InitMetricView) TableOptions() string { type InitPostgresMetricView (line 604) | type InitPostgresMetricView struct method TableName (line 614) | func (InitPostgresMetricView) TableName() string { type InitRecordingRule (line 618) | type InitRecordingRule struct method TableName (line 638) | func (InitRecordingRule) TableName() string { method TableOptions (line 642) | func (InitRecordingRule) TableOptions() string { type InitPostgresRecordingRule (line 646) | type InitPostgresRecordingRule struct method TableName (line 666) | func (InitPostgresRecordingRule) TableName() string { type InitAlertAggrView (line 670) | type InitAlertAggrView struct method TableName (line 680) | func (InitAlertAggrView) TableName() string { method TableOptions (line 684) | func (InitAlertAggrView) TableOptions() string { type InitPostgresAlertAggrView (line 688) | type InitPostgresAlertAggrView struct method TableName (line 698) | func (InitPostgresAlertAggrView) TableName() string { type InitAlertCurEvent (line 702) | type InitAlertCurEvent struct method TableName (line 737) | func (InitAlertCurEvent) TableName() string { method TableOptions (line 741) | func (InitAlertCurEvent) TableOptions() string { type InitPostgresAlertCurEvent (line 745) | type InitPostgresAlertCurEvent struct method TableName (line 780) | func (InitPostgresAlertCurEvent) TableName() string { type InitAlertHisEvent (line 784) | type InitAlertHisEvent struct method TableName (line 821) | func (InitAlertHisEvent) TableName() string { method TableOptions (line 825) | func (InitAlertHisEvent) TableOptions() string { type InitPostgresAlertHisEvent (line 829) | type InitPostgresAlertHisEvent struct method TableName (line 866) | func (InitPostgresAlertHisEvent) TableName() string { type InitBoardBusiGroup (line 870) | type InitBoardBusiGroup struct method TableName (line 875) | func (InitBoardBusiGroup) TableName() string { method TableOptions (line 879) | func (InitBoardBusiGroup) TableOptions() string { type InitBuiltinComponent (line 883) | type InitBuiltinComponent struct method TableName (line 894) | func (InitBuiltinComponent) TableName() string { method TableOptions (line 898) | func (InitBuiltinComponent) TableOptions() string { type InitpostgresBuiltinPayload (line 902) | type InitpostgresBuiltinPayload struct method TableName (line 918) | func (InitpostgresBuiltinPayload) TableName() string { type InitBuiltinPayload (line 922) | type InitBuiltinPayload struct method TableName (line 938) | func (InitBuiltinPayload) TableName() string { method TableOptions (line 942) | func (InitBuiltinPayload) TableOptions() string { type InitNotificationRecord (line 946) | type InitNotificationRecord struct method TableName (line 957) | func (InitNotificationRecord) TableName() string { method TableOptions (line 961) | func (InitNotificationRecord) TableOptions() string { type InitTaskTpl (line 965) | type InitTaskTpl struct method TableName (line 983) | func (InitTaskTpl) TableName() string { method TableOptions (line 987) | func (InitTaskTpl) TableOptions() string { type InitTaskTplHost (line 991) | type InitTaskTplHost struct method TableName (line 997) | func (InitTaskTplHost) TableName() string { method TableOptions (line 1001) | func (InitTaskTplHost) TableOptions() string { type InitTaskRecord (line 1005) | type InitTaskRecord struct method TableName (line 1024) | func (InitTaskRecord) TableName() string { method TableOptions (line 1028) | func (InitTaskRecord) TableOptions() string { type InitAlertingEngine (line 1032) | type InitAlertingEngine struct method TableName (line 1040) | func (InitAlertingEngine) TableName() string { method TableOptions (line 1044) | func (InitAlertingEngine) TableOptions() string { type InitDatasource (line 1048) | type InitDatasource struct method TableName (line 1068) | func (InitDatasource) TableName() string { method TableOptions (line 1072) | func (InitDatasource) TableOptions() string { type InitPostgresDatasource (line 1076) | type InitPostgresDatasource struct method TableName (line 1096) | func (InitPostgresDatasource) TableName() string { type InitBuiltinCate (line 1100) | type InitBuiltinCate struct method TableName (line 1106) | func (InitBuiltinCate) TableName() string { method TableOptions (line 1110) | func (InitBuiltinCate) TableOptions() string { type InitNotifyTpl (line 1114) | type InitNotifyTpl struct method TableName (line 1125) | func (InitNotifyTpl) TableName() string { method TableOptions (line 1129) | func (InitNotifyTpl) TableOptions() string { type InitSSOConfig (line 1133) | type InitSSOConfig struct method TableName (line 1140) | func (InitSSOConfig) TableName() string { method TableOptions (line 1144) | func (InitSSOConfig) TableOptions() string { type InitESIndexPattern (line 1148) | type InitESIndexPattern struct method TableName (line 1161) | func (InitESIndexPattern) TableName() string { method TableOptions (line 1165) | func (InitESIndexPattern) TableOptions() string { type InitSqliteESIndexPattern (line 1169) | type InitSqliteESIndexPattern struct method TableName (line 1182) | func (InitSqliteESIndexPattern) TableName() string { type InitPostgresESIndexPattern (line 1186) | type InitPostgresESIndexPattern struct method TableName (line 1199) | func (InitPostgresESIndexPattern) TableName() string { type InitBuiltinMetric (line 1203) | type InitBuiltinMetric struct method TableName (line 1219) | func (InitBuiltinMetric) TableName() string { method TableOptions (line 1223) | func (InitBuiltinMetric) TableOptions() string { type InitSqliteBuiltinMetric (line 1227) | type InitSqliteBuiltinMetric struct method TableName (line 1243) | func (InitSqliteBuiltinMetric) TableName() string { type InitMetricFilter (line 1247) | type InitMetricFilter struct method TableName (line 1258) | func (InitMetricFilter) TableName() string { method TableOptions (line 1262) | func (InitMetricFilter) TableOptions() string { type InitSqliteMetricFilter (line 1266) | type InitSqliteMetricFilter struct method TableName (line 1277) | func (InitSqliteMetricFilter) TableName() string { type InitTargetBusiGroup (line 1281) | type InitTargetBusiGroup struct method TableName (line 1288) | func (InitTargetBusiGroup) TableName() string { method TableOptions (line 1292) | func (InitTargetBusiGroup) TableOptions() string { type InitTaskMeta (line 1296) | type InitTaskMeta struct method TableName (line 1311) | func (InitTaskMeta) TableName() string { method TableOptions (line 1315) | func (InitTaskMeta) TableOptions() string { type InitTaskAction (line 1319) | type InitTaskAction struct method TableName (line 1325) | func (InitTaskAction) TableName() string { method TableOptions (line 1329) | func (InitTaskAction) TableOptions() string { type InitTaskScheduler (line 1333) | type InitTaskScheduler struct method TableName (line 1338) | func (InitTaskScheduler) TableName() string { method TableOptions (line 1342) | func (InitTaskScheduler) TableOptions() string { type InitTaskSchedulerHealth (line 1346) | type InitTaskSchedulerHealth struct method TableName (line 1351) | func (InitTaskSchedulerHealth) TableName() string { method TableOptions (line 1355) | func (InitTaskSchedulerHealth) TableOptions() string { type InitTaskHostDoing (line 1359) | type InitTaskHostDoing struct method TableName (line 1366) | func (InitTaskHostDoing) TableName() string { method TableOptions (line 1370) | func (InitTaskHostDoing) TableOptions() string { type InitTaskHost (line 1374) | type InitTaskHost struct method TableName (line 1383) | func (InitTaskHost) TableName() string { method TableOptions (line 1387) | func (InitTaskHost) TableOptions() string { type InitSqliteTaskHost (line 1391) | type InitSqliteTaskHost struct method TableName (line 1400) | func (InitSqliteTaskHost) TableName() string { function DataBaseInit (line 1404) | func DataBaseInit(c DBConfig, db *gorm.DB) error { function sqliteDataBaseInit (line 1417) | func sqliteDataBaseInit(db *gorm.DB) error { function mysqlDataBaseInit (line 1609) | func mysqlDataBaseInit(db *gorm.DB) error { function postgresDataBaseInit (line 1800) | func postgresDataBaseInit(db *gorm.DB) error { FILE: pkg/ormx/database_init_test.go function TestCheckPostgresDatabaseExist (line 14) | func TestCheckPostgresDatabaseExist(t *testing.T) { function TestDataBaseInit (line 51) | func TestDataBaseInit(t *testing.T) { FILE: pkg/ormx/ormx.go type DBConfig (line 20) | type DBConfig struct function init (line 41) | func init() { type TKitLogger (line 53) | type TKitLogger struct method Printf (line 57) | func (l *TKitLogger) Printf(s string, i ...interface{}) { function createDatabase (line 74) | func createDatabase(c DBConfig, gconfig *gorm.Config) error { function createSqliteDatabase (line 87) | func createSqliteDatabase(dsn string, gconfig *gorm.Config) error { function createPostgresDatabase (line 100) | func createPostgresDatabase(dsn string, gconfig *gorm.Config) error { function createMysqlDatabase (line 130) | func createMysqlDatabase(dsn string, gconfig *gorm.Config) error { function checkDatabaseExist (line 165) | func checkDatabaseExist(c DBConfig) (bool, error) { function checkSqliteDatabaseExist (line 179) | func checkSqliteDatabaseExist(c DBConfig) (bool, error) { function checkPostgresDatabaseExist (line 188) | func checkPostgresDatabaseExist(c DBConfig) (bool, error) { function checkMysqlDatabaseExist (line 230) | func checkMysqlDatabaseExist(c DBConfig) (bool, error) { function genQuery (line 287) | func genQuery(c DBConfig) string { function New (line 301) | func New(c DBConfig) (*gorm.DB, error) { FILE: pkg/ormx/types.go type JSONObj (line 10) | type JSONObj method Scan (line 14) | func (j *JSONObj) Scan(value interface{}) error { method Value (line 34) | func (j JSONObj) Value() (driver.Value, error) { method MarshalJSON (line 41) | func (j *JSONObj) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 53) | func (j *JSONObj) UnmarshalJSON(data []byte) error { type JSONArr (line 11) | type JSONArr method Scan (line 59) | func (j *JSONArr) Scan(value interface{}) error { method Value (line 78) | func (j JSONArr) Value() (driver.Value, error) { method MarshalJSON (line 85) | func (j *JSONArr) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 97) | func (j *JSONArr) UnmarshalJSON(data []byte) error { FILE: pkg/osx/osx.go function GetEnv (line 6) | func GetEnv(key, fallback string) string { FILE: pkg/parser/calc.go function MathCalc (line 15) | func MathCalc(s string, data map[string]interface{}) (float64, error) { function Calc (line 51) | func Calc(s string, data map[string]interface{}) bool { function cleanStr (line 61) | func cleanStr(s string) string { function replaceDollarSigns (line 67) | func replaceDollarSigns(s string) string { function between (line 74) | func between(target float64, arr []interface{}) bool { function CalcWithRid (line 101) | func CalcWithRid(s string, data map[string]interface{}, rid int64) bool { FILE: pkg/parser/calc_test.go function TestMathCalc (line 7) | func TestMathCalc(t *testing.T) { function TestCalc (line 254) | func TestCalc(t *testing.T) { FILE: pkg/poster/post.go type DataResponse (line 20) | type DataResponse struct function GetByUrls (line 25) | func GetByUrls[T any](ctx *ctx.Context, path string) (T, error) { function GetByUrl (line 54) | func GetByUrl[T any](url string, cfg conf.CenterApi) (T, error) { function PostByUrls (line 108) | func PostByUrls(ctx *ctx.Context, path string, v interface{}) error { function PostByUrlsWithResp (line 134) | func PostByUrlsWithResp[T any](ctx *ctx.Context, path string, v interfac... function PostByUrl (line 161) | func PostByUrl[T any](url string, cfg conf.CenterApi, v interface{}) (t ... function UseProxy (line 223) | func UseProxy(url string) bool { function PostJSON (line 242) | func PostJSON(url string, timeout time.Duration, v interface{}, retries ... FILE: pkg/poster/post_test.go function TestPostByUrls (line 13) | func TestPostByUrls(t *testing.T) { function TestPostByUrlsWithResp (line 31) | func TestPostByUrlsWithResp(t *testing.T) { FILE: pkg/prom/client_option.go type ClientOptions (line 3) | type ClientOptions struct FILE: pkg/prom/conv.go type Metric (line 12) | type Metric struct type SamplePair (line 18) | type SamplePair struct function ConvertPromQL (line 23) | func ConvertPromQL(ql string, metric Metric) (string, error) { function AddLabelToPromQL (line 37) | func AddLabelToPromQL(label, promql string) string { function GetMetric (line 72) | func GetMetric(ql string) (map[string]string, error) { function LabelsWithoutMetric (line 100) | func LabelsWithoutMetric(labels model.Metric) string { FILE: pkg/prom/conv_test.go function TestAddLabelToPromQL (line 7) | func TestAddLabelToPromQL(t *testing.T) { FILE: pkg/prom/reader.go function init (line 37) | func init() { function unMarshalPointJSON (line 42) | func unMarshalPointJSON(ptr unsafe.Pointer, iter *json.Iterator) { function marshalPointJSON (line 71) | func marshalPointJSON(ptr unsafe.Pointer, stream *json.Stream) { function marshalPointJSONIsEmpty (line 115) | func marshalPointJSONIsEmpty(ptr unsafe.Pointer) bool { constant statusAPIError (line 120) | statusAPIError = 422 constant apiPrefix (line 122) | apiPrefix = "/api/v1" constant epAlerts (line 124) | epAlerts = apiPrefix + "/alerts" constant epAlertManagers (line 125) | epAlertManagers = apiPrefix + "/alertmanagers" constant epQuery (line 126) | epQuery = apiPrefix + "/query" constant epQueryRange (line 127) | epQueryRange = apiPrefix + "/query_range" constant epLabels (line 128) | epLabels = apiPrefix + "/labels" constant epLabelValues (line 129) | epLabelValues = apiPrefix + "/label/:name/values" constant epSeries (line 130) | epSeries = apiPrefix + "/series" constant epTargets (line 131) | epTargets = apiPrefix + "/targets" constant epTargetsMetadata (line 132) | epTargetsMetadata = apiPrefix + "/targets/metadata" constant epMetadata (line 133) | epMetadata = apiPrefix + "/metadata" constant epRules (line 134) | epRules = apiPrefix + "/rules" constant epSnapshot (line 135) | epSnapshot = apiPrefix + "/admin/tsdb/snapshot" constant epDeleteSeries (line 136) | epDeleteSeries = apiPrefix + "/admin/tsdb/delete_series" constant epCleanTombstones (line 137) | epCleanTombstones = apiPrefix + "/admin/tsdb/clean_tombstones" constant epConfig (line 138) | epConfig = apiPrefix + "/status/config" constant epFlags (line 139) | epFlags = apiPrefix + "/status/flags" type AlertState (line 143) | type AlertState type ErrorType (line 146) | type ErrorType type HealthStatus (line 149) | type HealthStatus type RuleType (line 152) | type RuleType type RuleHealth (line 155) | type RuleHealth type MetricType (line 158) | type MetricType constant AlertStateFiring (line 162) | AlertStateFiring AlertState = "firing" constant AlertStateInactive (line 163) | AlertStateInactive AlertState = "inactive" constant AlertStatePending (line 164) | AlertStatePending AlertState = "pending" constant ErrBadData (line 167) | ErrBadData ErrorType = "bad_data" constant ErrTimeout (line 168) | ErrTimeout ErrorType = "timeout" constant ErrCanceled (line 169) | ErrCanceled ErrorType = "canceled" constant ErrExec (line 170) | ErrExec ErrorType = "execution" constant ErrBadResponse (line 171) | ErrBadResponse ErrorType = "bad_response" constant ErrServer (line 172) | ErrServer ErrorType = "server_error" constant ErrClient (line 173) | ErrClient ErrorType = "client_error" constant HealthGood (line 176) | HealthGood HealthStatus = "up" constant HealthUnknown (line 177) | HealthUnknown HealthStatus = "unknown" constant HealthBad (line 178) | HealthBad HealthStatus = "down" constant RuleTypeRecording (line 181) | RuleTypeRecording RuleType = "recording" constant RuleTypeAlerting (line 182) | RuleTypeAlerting RuleType = "alerting" constant RuleHealthGood (line 185) | RuleHealthGood = "ok" constant RuleHealthUnknown (line 186) | RuleHealthUnknown = "unknown" constant RuleHealthBad (line 187) | RuleHealthBad = "err" constant MetricTypeCounter (line 190) | MetricTypeCounter MetricType = "counter" constant MetricTypeGauge (line 191) | MetricTypeGauge MetricType = "gauge" constant MetricTypeHistogram (line 192) | MetricTypeHistogram MetricType = "histogram" constant MetricTypeGaugeHistogram (line 193) | MetricTypeGaugeHistogram MetricType = "gaugehistogram" constant MetricTypeSummary (line 194) | MetricTypeSummary MetricType = "summary" constant MetricTypeInfo (line 195) | MetricTypeInfo MetricType = "info" constant MetricTypeStateset (line 196) | MetricTypeStateset MetricType = "stateset" constant MetricTypeUnknown (line 197) | MetricTypeUnknown MetricType = "unknown" type Error (line 201) | type Error struct method Error (line 207) | func (e *Error) Error() string { type Range (line 212) | type Range struct method Validate (line 224) | func (r *Range) Validate() bool { constant DefaultStep (line 220) | DefaultStep = 30 * time.Second constant MaxPoints (line 221) | MaxPoints = 30000 type API (line 252) | type API interface type AlertsResult (line 289) | type AlertsResult struct type AlertManagersResult (line 294) | type AlertManagersResult struct type AlertManager (line 300) | type AlertManager struct type ConfigResult (line 305) | type ConfigResult struct type FlagsResult (line 310) | type FlagsResult type SnapshotResult (line 313) | type SnapshotResult struct type RulesResult (line 318) | type RulesResult struct type RuleGroup (line 323) | type RuleGroup struct method UnmarshalJSON (line 408) | func (rg *RuleGroup) UnmarshalJSON(b []byte) error { type Rules (line 330) | type Rules type AlertingRule (line 333) | type AlertingRule struct method UnmarshalJSON (line 441) | func (r *AlertingRule) UnmarshalJSON(b []byte) error { type RecordingRule (line 345) | type RecordingRule struct method UnmarshalJSON (line 480) | func (r *RecordingRule) UnmarshalJSON(b []byte) error { type Alert (line 354) | type Alert struct type TargetsResult (line 363) | type TargetsResult struct type ActiveTarget (line 369) | type ActiveTarget struct type DroppedTarget (line 379) | type DroppedTarget struct type MetricMetadata (line 384) | type MetricMetadata struct type Metadata (line 393) | type Metadata struct type QueryResult (line 400) | type QueryResult struct method UnmarshalJSON (line 513) | func (qr *QueryResult) UnmarshalJSON(b []byte) error { function NewAPI (line 549) | func NewAPI(c api.Client, opt ClientOptions) API { type httpAPI (line 558) | type httpAPI struct method Alerts (line 562) | func (h *httpAPI) Alerts(ctx context.Context) (AlertsResult, error) { method AlertManagers (line 579) | func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersRes... method CleanTombstones (line 596) | func (h *httpAPI) CleanTombstones(ctx context.Context) error { method Config (line 608) | func (h *httpAPI) Config(ctx context.Context) (ConfigResult, error) { method DeleteSeries (line 625) | func (h *httpAPI) DeleteSeries(ctx context.Context, matches []string, ... method Flags (line 647) | func (h *httpAPI) Flags(ctx context.Context) (FlagsResult, error) { method LabelNames (line 664) | func (h *httpAPI) LabelNames(ctx context.Context) ([]string, Warnings,... method LabelValues (line 678) | func (h *httpAPI) LabelValues(ctx context.Context, label string, match... method Query (line 699) | func (h *httpAPI) Query(ctx context.Context, query string, ts time.Tim... method query (line 721) | func (h *httpAPI) query(ctx context.Context, query string, ts time.Tim... method QueryRange (line 739) | func (h *httpAPI) QueryRange(ctx context.Context, query string, r Rang... method Series (line 758) | func (h *httpAPI) Series(ctx context.Context, matches []string, startT... method Snapshot (line 785) | func (h *httpAPI) Snapshot(ctx context.Context, skipHead bool) (Snapsh... method Rules (line 807) | func (h *httpAPI) Rules(ctx context.Context) (RulesResult, error) { method Targets (line 824) | func (h *httpAPI) Targets(ctx context.Context) (TargetsResult, error) { method TargetsMetadata (line 841) | func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget str... method Metadata (line 865) | func (h *httpAPI) Metadata(ctx context.Context, metric string, limit s... type Warnings (line 889) | type Warnings type apiClient (line 893) | type apiClient interface type apiClientImpl (line 899) | type apiClientImpl struct method URL (line 927) | func (h *apiClientImpl) URL(ep string, args map[string]string) *url.URL { method Do (line 931) | func (h *apiClientImpl) Do(ctx context.Context, req *http.Request) (*h... method DoGetFallback (line 992) | func (h *apiClientImpl) DoGetFallback(ctx context.Context, u *url.URL,... type apiResponse (line 904) | type apiResponse struct function apiError (line 912) | func apiError(code int) bool { function errorTypeAndMsgFor (line 917) | func errorTypeAndMsgFor(resp *http.Response) (ErrorType, string) { function formatTime (line 1016) | func formatTime(t time.Time) string { FILE: pkg/prom/writer.go type WriterType (line 17) | type WriterType struct method Write (line 30) | func (w WriterType) Write(items []prompb.TimeSeries, headers ...map[st... method Post (line 52) | func (w WriterType) Post(req []byte, headers ...map[string]string) err... function NewWriter (line 22) | func NewWriter(cli api.Client, opt ClientOptions) WriterType { FILE: pkg/promql/parser.go function SplitBinaryOp (line 11) | func SplitBinaryOp(code string) ([]string, error) { function GetMetric (line 28) | func GetMetric(ql string) (map[string]string, error) { function GetLabels (line 57) | func GetLabels(ql string) (map[string]string, error) { function GetLabelsAndMetricName (line 79) | func GetLabelsAndMetricName(ql string) (map[string]string, string, error) { type Label (line 104) | type Label struct function GetLabelsAndMetricNameWithReplace (line 110) | func GetLabelsAndMetricNameWithReplace(ql string, rep string) (map[strin... function GetFirstMetric (line 146) | func GetFirstMetric(ql string) (string, error) { function removeBrackets (line 165) | func removeBrackets(promql string) string { FILE: pkg/promql/perser_test.go function TestGetMetric (line 8) | func TestGetMetric(t *testing.T) { function TestGetLabels (line 37) | func TestGetLabels(t *testing.T) { function TestGetLabelsAndMetricNameWithReplace (line 76) | func TestGetLabelsAndMetricNameWithReplace(t *testing.T) { function TestSplitBinaryOp (line 172) | func TestSplitBinaryOp(t *testing.T) { FILE: pkg/promql/promql.go type ModifierExpr (line 9) | type ModifierExpr struct type Expression (line 17) | type Expression struct function ParseExpr (line 53) | func ParseExpr(expr metricsql.Expr, mustBeExpression bool, m map[string]... FILE: pkg/secu/aes.go function BASE64StdEncode (line 12) | func BASE64StdEncode(src []byte) string { function BASE64StdDecode (line 17) | func BASE64StdDecode(src string) ([]byte, error) { function PKCS7Padding (line 25) | func PKCS7Padding(ciphertext []byte, blockSize int) []byte { function PKCS7UnPadding (line 31) | func PKCS7UnPadding(originData []byte) []byte { function AesEncrypt (line 38) | func AesEncrypt(origData, key []byte) ([]byte, error) { function AesDecrypt (line 55) | func AesDecrypt(encrypted, key []byte) ([]byte, error) { function DealWithDecrypt (line 71) | func DealWithDecrypt(src string, key string) (string, error) { function DealWithEncrypt (line 92) | func DealWithEncrypt(src string, key string) (string, error) { FILE: pkg/secu/rsa.go function Decrypt (line 14) | func Decrypt(cipherText string, privateKeyByte []byte, password string) ... function EncryptValue (line 46) | func EncryptValue(value string, publicKeyData []byte) (string, error) { function GenerateRsaKeyPair (line 65) | func GenerateRsaKeyPair(password string) (privateByte, publicByte []byte... FILE: pkg/slice/contains.go function HaveIntersection (line 3) | func HaveIntersection[T comparable](slice1, slice2 []T) bool { FILE: pkg/strx/verify.go function IsValidURL (line 12) | func IsValidURL(url string) bool { function IdsInt64ForAPI (line 17) | func IdsInt64ForAPI(ids string, sep ...string) []int64 { FILE: pkg/tlsx/common.go function ParseCiphers (line 45) | func ParseCiphers(ciphers []string) ([]uint16, error) { function ParseTLSVersion (line 61) | func ParseTLSVersion(version string) (uint16, error) { FILE: pkg/tlsx/config.go type ClientConfig (line 14) | type ClientConfig struct method TLSConfig (line 40) | func (c *ClientConfig) TLSConfig() (*tls.Config, error) { type ServerConfig (line 27) | type ServerConfig struct method TLSConfig (line 94) | func (c *ServerConfig) TLSConfig() (*tls.Config, error) { method verifyPeerCertificate (line 186) | func (c *ServerConfig) verifyPeerCertificate(rawCerts [][]byte, verifi... function makeCertPool (line 158) | func makeCertPool(certFiles []string) (*x509.CertPool, error) { function loadCertificate (line 174) | func loadCertificate(config *tls.Config, certFile, keyFile string) error { FILE: pkg/tplx/conv.go function ToFloat64 (line 9) | func ToFloat64(val interface{}) (float64, error) { FILE: pkg/tplx/fns.go type sample (line 26) | type sample struct type QueryFunc (line 31) | type QueryFunc function RegisterQueryFunc (line 36) | func RegisterQueryFunc(f QueryFunc) { type QueryResult (line 40) | type QueryResult type queryResultByLabelSorter (line 42) | type queryResultByLabelSorter struct method Len (line 47) | func (q queryResultByLabelSorter) Len() int { method Less (line 51) | func (q queryResultByLabelSorter) Less(i, j int) bool { method Swap (line 55) | func (q queryResultByLabelSorter) Swap(i, j int) { function Unescaped (line 59) | func Unescaped(str string) interface{} { function Urlconvert (line 63) | func Urlconvert(str string) interface{} { function Timeformat (line 67) | func Timeformat(ts int64, pattern ...string) string { function Timestamp (line 75) | func Timestamp(pattern ...string) string { function Now (line 83) | func Now() time.Time { function Args (line 87) | func Args(args ...interface{}) map[string]interface{} { function ReReplaceAll (line 95) | func ReReplaceAll(pattern, repl, text string) string { function Humanize (line 100) | func Humanize(s string) string { function Humanize1024 (line 130) | func Humanize1024(s string) string { function ToString (line 149) | func ToString(v interface{}) string { function HumanizeDuration (line 153) | func HumanizeDuration(s string) string { function HumanizeDurationInterface (line 161) | func HumanizeDurationInterface(i interface{}) string { function HumanizeDurationFloat64 (line 169) | func HumanizeDurationFloat64(v float64) string { function HumanizePercentage (line 210) | func HumanizePercentage(s string) string { function HumanizePercentageH (line 218) | func HumanizePercentageH(s string) string { function HumanizeTimestamp (line 226) | func HumanizeTimestamp(i interface{}) (string, error) { function Add (line 244) | func Add(a, b interface{}) (interface{}, error) { function Subtract (line 288) | func Subtract(a, b interface{}) (interface{}, error) { function Multiply (line 332) | func Multiply(a, b interface{}) (interface{}, error) { function Divide (line 376) | func Divide(a, b interface{}) (interface{}, error) { function FormatDecimal (line 419) | func FormatDecimal(s string, n int) string { function First (line 429) | func First(v QueryResult) (*sample, error) { function Label (line 436) | func Label(label string, s *sample) string { function Value (line 440) | func Value(s *sample) float64 { function StrValue (line 444) | func StrValue(s *sample) string { function SafeHtml (line 448) | func SafeHtml(text string) template.HTML { function Match (line 452) | func Match(pattern, s string) (bool, error) { function Title (line 455) | func Title(s string) string { function ToUpper (line 459) | func ToUpper(s string) string { function ToLower (line 463) | func ToLower(s string) string { function GraphLink (line 467) | func GraphLink(expr string) string { function TableLink (line 471) | func TableLink(expr string) string { function SortByLabel (line 475) | func SortByLabel(label string, v QueryResult) QueryResult { function StripPort (line 481) | func StripPort(hostPort string) string { function StripDomain (line 489) | func StripDomain(hostPort string) string { function ToTime (line 505) | func ToTime(i interface{}) (*time.Time, error) { function PathPrefix (line 513) | func PathPrefix(externalURL *url.URL) string { function ExternalURL (line 517) | func ExternalURL(externalURL *url.URL) string { function ParseDuration (line 521) | func ParseDuration(d string) (float64, error) { function Printf (line 529) | func Printf(format string, value interface{}) string { function isValueWithUnit (line 555) | func isValueWithUnit(s string) bool { function floatToTime (line 578) | func floatToTime(v float64) (*time.Time, error) { function convertToFloat (line 590) | func convertToFloat(i interface{}) (float64, error) { function Query (line 609) | func Query(datasourceID int64, promql string) model.Value { function ConvertToQueryResult (line 620) | func ConvertToQueryResult(value model.Value) QueryResult { function MappingAndJoin (line 696) | func MappingAndJoin(arr interface{}, prefix, suffix, join string) string { function StrMappingAndJoin (line 727) | func StrMappingAndJoin(str, split, prefix, suffix, join string) string { function Ats (line 732) | func Ats(str string) string { function BatchContactsAts (line 746) | func BatchContactsAts(arr interface{}) string { function BatchContactsJsonMarshal (line 750) | func BatchContactsJsonMarshal(arr interface{}) template.HTML { function BatchContactsJoinComma (line 754) | func BatchContactsJoinComma(arr interface{}) string { function BatchContactsAtsInFeishuEmail (line 758) | func BatchContactsAtsInFeishuEmail(arr interface{}) template.HTML { function BatchContactsAtsInFeishuId (line 762) | func BatchContactsAtsInFeishuId(arr interface{}) template.HTML { function JsonMarshal (line 766) | func JsonMarshal(v interface{}) template.HTML { function MapDifference (line 774) | func MapDifference(firstMap, secondMap map[string]string) (map[string]st... function TagsMapToStr (line 787) | func TagsMapToStr(m map[string]string) string { FILE: pkg/tplx/tpl_test.go function TestBatchContactJsonMarshal (line 8) | func TestBatchContactJsonMarshal(t *testing.T) { function TestBatchContactJoinComma (line 41) | func TestBatchContactJoinComma(t *testing.T) { function TestMappingAndJoin (line 79) | func TestMappingAndJoin(t *testing.T) { FILE: pkg/tplx/tplx.go function NewTemplateFuncMap (line 80) | func NewTemplateFuncMap() template.FuncMap { function ReplaceTemplateUseHtml (line 119) | func ReplaceTemplateUseHtml(name string, templateText string, templateDa... function ReplaceTemplateUseText (line 133) | func ReplaceTemplateUseText(name string, templateText string, templateDa... FILE: pkg/unit/unit_convert.go type FormattedValue (line 11) | type FormattedValue struct type FormatOptions (line 19) | type FormatOptions struct constant NanosecondVal (line 28) | NanosecondVal = 0.000000001 constant MicrosecondVal (line 29) | MicrosecondVal = 0.000001 constant MillisecondVal (line 30) | MillisecondVal = 0.001 constant SecondVal (line 31) | SecondVal = 1 constant MinuteVal (line 32) | MinuteVal = 60 constant HourVal (line 33) | HourVal = 3600 constant DayVal (line 34) | DayVal = 86400 constant WeekVal (line 35) | WeekVal = 86400 * 7 constant YearVal (line 36) | YearVal = 86400 * 365 function ValueFormatter (line 64) | func ValueFormatter(unit string, decimals int, value float64) FormattedV... function formatDuration (line 172) | func formatDuration(originValue float64, unit string, decimals int) Form... function formatBytes (line 234) | func formatBytes(value float64, opts FormatOptions) FormattedValue { function formatPercent (line 293) | func formatPercent(value float64, decimals int, isUnit bool) FormattedVa... function formatNone (line 306) | func formatNone(value float64, decimals int) FormattedValue { function formatDateTime (line 316) | func formatDateTime(uint string, value float64) FormattedValue { function roundFloat (line 335) | func roundFloat(val float64, precision int) float64 { FILE: pkg/unit/unit_convert_test.go function TestValueFormatter (line 8) | func TestValueFormatter(t *testing.T) { function TestEdgeCases (line 254) | func TestEdgeCases(t *testing.T) { function compareFormattedValues (line 303) | func compareFormattedValues(a, b FormattedValue) bool { FILE: pkg/version/version.go function CompareVersion (line 15) | func CompareVersion(v1, v2 string) (int, error) { function GetGithubVersion (line 34) | func GetGithubVersion() { type GithubRelease (line 48) | type GithubRelease struct FILE: prom/client.go type PromClientMap (line 10) | type PromClientMap struct method Set (line 17) | func (pc *PromClientMap) Set(datasourceId int64, r prom.API, w prom.Wr... method GetDatasourceIds (line 27) | func (pc *PromClientMap) GetDatasourceIds() []int64 { method GetCli (line 38) | func (pc *PromClientMap) GetCli(datasourceId int64) prom.API { method GetWriterCli (line 45) | func (pc *PromClientMap) GetWriterCli(datasourceId int64) prom.WriterT... method IsNil (line 52) | func (pc *PromClientMap) IsNil(datasourceId int64) bool { method Reset (line 64) | func (pc *PromClientMap) Reset() { method Del (line 72) | func (pc *PromClientMap) Del(datasourceId int64) { FILE: prom/option.go type PromOption (line 9) | type PromOption struct method Equal (line 27) | func (po *PromOption) Equal(target PromOption) bool { type PromOptionsStruct (line 92) | type PromOptionsStruct struct method Set (line 97) | func (pos *PromOptionsStruct) Set(datasourceId int64, po PromOption) { method Del (line 103) | func (pos *PromOptionsStruct) Del(datasourceId int64) { method Get (line 109) | func (pos *PromOptionsStruct) Get(datasourceId int64) (PromOption, boo... FILE: prom/reader.go function NewPromClient (line 19) | func NewPromClient(ctx *ctx.Context) *PromClientMap { method InitReader (line 29) | func (pc *PromClientMap) InitReader() error { method loadFromDatabase (line 39) | func (pc *PromClientMap) loadFromDatabase() { method newReaderClientFromPromOption (line 147) | func (pc *PromClientMap) newReaderClientFromPromOption(po PromOption) (a... method newWriterClientFromPromOption (line 167) | func (pc *PromClientMap) newWriterClientFromPromOption(po PromOption) (a... method setClientFromPromOption (line 187) | func (pc *PromClientMap) setClientFromPromOption(datasourceId int64, po ... FILE: pushgw/idents/idents.go type Set (line 21) | type Set struct method Init (line 43) | func (s *Set) Init() { method MSet (line 47) | func (s *Set) MSet(items map[string]struct{}) { method LoopPersist (line 55) | func (s *Set) LoopPersist() { method persist (line 62) | func (s *Set) persist() { method updateTimestamp (line 78) | func (s *Set) updateTimestamp(items map[string]struct{}) { method UpdateTargets (line 104) | func (s *Set) UpdateTargets(lst []string, now int64) error { method updateTargetsUpdateTs (line 155) | func (s *Set) updateTargetsUpdateTs(lst []string, now int64, redis sto... method updateTargetTsInRedis (line 173) | func (s *Set) updateTargetTsInRedis(newMap map[string]interface{}, red... method writeTargetTsInRedis (line 210) | func (s *Set) writeTargetTsInRedis(ctx context.Context, redis storage.... function New (line 30) | func New(ctx *ctx.Context, redis storage.Redis, configs pconf.Pushgw) *S... type TargetUpdate (line 99) | type TargetUpdate struct FILE: pushgw/kafka/producer.go constant AsyncProducer (line 11) | AsyncProducer = "async" constant SyncProducer (line 12) | SyncProducer = "sync" function init (line 33) | func init() { type Producer (line 41) | type Producer interface type AsyncProducerWrapper (line 46) | type AsyncProducerWrapper struct method Send (line 83) | func (p *AsyncProducerWrapper) Send(msg *sarama.ProducerMessage) error { method Close (line 88) | func (p *AsyncProducerWrapper) Close() error { method errorWorker (line 93) | func (p *AsyncProducerWrapper) errorWorker() { method successWorker (line 104) | func (p *AsyncProducerWrapper) successWorker() { type SyncProducerWrapper (line 51) | type SyncProducerWrapper struct method Send (line 115) | func (p *SyncProducerWrapper) Send(msg *sarama.ProducerMessage) error { method Close (line 125) | func (p *SyncProducerWrapper) Close() error { function New (line 57) | func New(typ string, brokers []string, config *sarama.Config) (Producer,... FILE: pushgw/pconf/conf.go type Pushgw (line 16) | type Pushgw struct method PreCheck (line 114) | func (p *Pushgw) PreCheck() { type WriterGlobalOpt (line 39) | type WriterGlobalOpt struct type WriterOptions (line 51) | type WriterOptions struct type SASLConfig (line 79) | type SASLConfig struct type KafkaWriterOptions (line 89) | type KafkaWriterOptions struct type RelabelConfig (line 101) | type RelabelConfig struct FILE: pushgw/pstat/pstat.go constant namespace (line 6) | namespace = "n9e" constant subsystem (line 7) | subsystem = "pushgw" function init (line 121) | func init() { FILE: pushgw/pushgw.go type PushgwProvider (line 20) | type PushgwProvider struct function Initialize (line 25) | func Initialize(configDir string, cryptoKey string) (func(), error) { FILE: pushgw/router/fns.go method AppendLabels (line 12) | func (rt *Router) AppendLabels(pt *prompb.TimeSeries, target *models.Tar... method debugSample (line 82) | func (rt *Router) debugSample(remoteAddr string, v *prompb.TimeSeries) { method DropSample (line 111) | func (rt *Router) DropSample(v *prompb.TimeSeries) bool { function matchSample (line 144) | func matchSample(filterMap, sampleMap map[string]string) bool { method ForwardToQueue (line 158) | func (rt *Router) ForwardToQueue(clientIP string, queueid string, v *pro... method BeforePush (line 172) | func (rt *Router) BeforePush(clientIP string, v *prompb.TimeSeries) *pro... FILE: pushgw/router/router.go type HandleTSFunc (line 23) | type HandleTSFunc type Router (line 25) | type Router struct method initDropSampleFilters (line 80) | func (rt *Router) initDropSampleFilters() { method Config (line 105) | func (rt *Router) Config(r *gin.Engine) { function stat (line 43) | func stat() gin.HandlerFunc { function New (line 56) | func New(httpConfig httpx.Config, pushgw pconf.Pushgw, aconf aconf.Alert... FILE: pushgw/router/router_datadog.go type TimeSeries (line 20) | type TimeSeries struct type DatadogMetric (line 25) | type DatadogMetric struct method Clean (line 35) | func (m *DatadogMetric) Clean() error { method ToProm (line 42) | func (m *DatadogMetric) ToProm() (*prompb.TimeSeries, string, error) { type DatadogPoint (line 33) | type DatadogPoint function datadogCheckRun (line 139) | func datadogCheckRun(c *gin.Context) { function datadogValidate (line 143) | func datadogValidate(c *gin.Context) { function datadogIntake (line 147) | func datadogIntake(c *gin.Context) { function datadogMetadata (line 151) | func datadogMetadata(c *gin.Context) { function readDatadogBody (line 157) | func readDatadogBody(c *gin.Context) ([]byte, error) { method datadogSeries (line 185) | func (r *Router) datadogSeries(c *gin.Context) { FILE: pushgw/router/router_datadog_easyjson.go function easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter (line 20) | func easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter(in ... function easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter (line 80) | func easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter(out... method MarshalJSON (line 108) | func (v TimeSeries) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 115) | func (v TimeSeries) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 120) | func (v *TimeSeries) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 127) | func (v *TimeSeries) UnmarshalEasyJSON(l *jlexer.Lexer) { function easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter1 (line 130) | func easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter1(in... function easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter1 (line 152) | func easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter1(ou... method MarshalJSON (line 164) | func (v DatadogPoint) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 171) | func (v DatadogPoint) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 176) | func (v *DatadogPoint) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 183) | func (v *DatadogPoint) UnmarshalEasyJSON(l *jlexer.Lexer) { function easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter2 (line 186) | func easyjsonF301f710DecodeGithubComDidiNightingaleV5SrcServerRouter2(in... function easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter2 (line 265) | func easyjsonF301f710EncodeGithubComDidiNightingaleV5SrcServerRouter2(ou... method MarshalJSON (line 313) | func (v DatadogMetric) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 320) | func (v DatadogMetric) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 325) | func (v *DatadogMetric) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 332) | func (v *DatadogMetric) UnmarshalEasyJSON(l *jlexer.Lexer) { FILE: pushgw/router/router_heartbeat.go method heartbeat (line 19) | func (rt *Router) heartbeat(c *gin.Context) { function HandleHeartbeat (line 40) | func HandleHeartbeat(c *gin.Context, engineName string, metaSet *metas.S... FILE: pushgw/router/router_openfalcon.go type FalconMetric (line 20) | type FalconMetric struct method Clean (line 32) | func (m *FalconMetric) Clean(ts int64) error { method ToProm (line 69) | func (m *FalconMetric) ToProm() (*prompb.TimeSeries, string, error) { type FalconMetricArr (line 30) | type FalconMetricArr method falconPush (line 142) | func (rt *Router) falconPush(c *gin.Context) { FILE: pushgw/router/router_openfalcon_easyjson.go function easyjson61ba9b47DecodeGithubComDidiNightingaleV5SrcServerRouter (line 20) | func easyjson61ba9b47DecodeGithubComDidiNightingaleV5SrcServerRouter(in ... function easyjson61ba9b47EncodeGithubComDidiNightingaleV5SrcServerRouter (line 48) | func easyjson61ba9b47EncodeGithubComDidiNightingaleV5SrcServerRouter(out... method MarshalJSON (line 64) | func (v FalconMetricArr) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 71) | func (v FalconMetricArr) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 76) | func (v *FalconMetricArr) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 83) | func (v *FalconMetricArr) UnmarshalEasyJSON(l *jlexer.Lexer) { function easyjson61ba9b47DecodeGithubComDidiNightingaleV5SrcServerRouter1 (line 86) | func easyjson61ba9b47DecodeGithubComDidiNightingaleV5SrcServerRouter1(in... function easyjson61ba9b47EncodeGithubComDidiNightingaleV5SrcServerRouter1 (line 131) | func easyjson61ba9b47EncodeGithubComDidiNightingaleV5SrcServerRouter1(ou... method MarshalJSON (line 170) | func (v FalconMetric) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 177) | func (v FalconMetric) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 182) | func (v *FalconMetric) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 189) | func (v *FalconMetric) UnmarshalEasyJSON(l *jlexer.Lexer) { FILE: pushgw/router/router_opentsdb.go type HTTPMetric (line 23) | type HTTPMetric struct method Clean (line 34) | func (m *HTTPMetric) Clean(ts int64) error { method ToProm (line 71) | func (m *HTTPMetric) ToProm() (*prompb.TimeSeries, error) { type HTTPMetricArr (line 32) | type HTTPMetricArr method openTSDBPut (line 127) | func (rt *Router) openTSDBPut(c *gin.Context) { FILE: pushgw/router/router_opentsdb_easyjson.go function easyjson30864de9DecodeGithubComDidiNightingaleV5SrcServerRouter (line 20) | func easyjson30864de9DecodeGithubComDidiNightingaleV5SrcServerRouter(in ... function easyjson30864de9EncodeGithubComDidiNightingaleV5SrcServerRouter (line 48) | func easyjson30864de9EncodeGithubComDidiNightingaleV5SrcServerRouter(out... method MarshalJSON (line 64) | func (v HTTPMetricArr) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 71) | func (v HTTPMetricArr) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 76) | func (v *HTTPMetricArr) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 83) | func (v *HTTPMetricArr) UnmarshalEasyJSON(l *jlexer.Lexer) { function easyjson30864de9DecodeGithubComDidiNightingaleV5SrcServerRouter1 (line 86) | func easyjson30864de9DecodeGithubComDidiNightingaleV5SrcServerRouter1(in... function easyjson30864de9EncodeGithubComDidiNightingaleV5SrcServerRouter1 (line 143) | func easyjson30864de9EncodeGithubComDidiNightingaleV5SrcServerRouter1(ou... method MarshalJSON (line 193) | func (v HTTPMetric) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 200) | func (v HTTPMetric) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 205) | func (v *HTTPMetric) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 212) | func (v *HTTPMetric) UnmarshalEasyJSON(l *jlexer.Lexer) { FILE: pushgw/router/router_proxy_remotewrite.go method proxyRemoteWrite (line 18) | func (rt *Router) proxyRemoteWrite(c *gin.Context) { FILE: pushgw/router/router_remotewrite.go function extractMetricFromTimeSeries (line 19) | func extractMetricFromTimeSeries(s *prompb.TimeSeries) string { function extractIdentFromTimeSeries (line 29) | func extractIdentFromTimeSeries(s *prompb.TimeSeries, ignoreIdent, ignor... function duplicateLabelKey (line 87) | func duplicateLabelKey(series *prompb.TimeSeries) bool { method remoteWrite (line 105) | func (rt *Router) remoteWrite(c *gin.Context) { function DecodeWriteRequest (line 173) | func DecodeWriteRequest(r io.Reader) (*prompb.WriteRequest, error) { FILE: pushgw/router/router_target.go method targetUpdate (line 9) | func (rt *Router) targetUpdate(c *gin.Context) { FILE: pushgw/writer/kafka_writer.go type KafkaWriterType (line 14) | type KafkaWriterType struct method Write (line 22) | func (w KafkaWriterType) Write(key string, items []prompb.TimeSeries, ... FILE: pushgw/writer/queue.go type SafeList (line 10) | type SafeList struct method PushFront (line 19) | func (sl *SafeList) PushFront(v interface{}) *list.Element { method PushFrontBatch (line 26) | func (sl *SafeList) PushFrontBatch(vs []interface{}) { method PopBack (line 34) | func (sl *SafeList) PopBack(max int) []prompb.TimeSeries { method RemoveAll (line 60) | func (sl *SafeList) RemoveAll() { method Len (line 66) | func (sl *SafeList) Len() int { function NewSafeList (line 15) | func NewSafeList() *SafeList { type SafeListLimited (line 74) | type SafeListLimited struct method PopBack (line 83) | func (sll *SafeListLimited) PopBack(max int) []prompb.TimeSeries { method PushFront (line 87) | func (sll *SafeListLimited) PushFront(v interface{}) bool { method PushFrontBatch (line 96) | func (sll *SafeListLimited) PushFrontBatch(vs []interface{}) bool { method RemoveAll (line 105) | func (sll *SafeListLimited) RemoveAll() { method Len (line 109) | func (sll *SafeListLimited) Len() int { function NewSafeListLimited (line 79) | func NewSafeListLimited(maxSize int) *SafeListLimited { FILE: pushgw/writer/relabel.go constant Replace (line 18) | Replace string = "replace" constant Keep (line 19) | Keep string = "keep" constant Drop (line 20) | Drop string = "drop" constant HashMod (line 21) | HashMod string = "hashmod" constant LabelMap (line 22) | LabelMap string = "labelmap" constant LabelDrop (line 23) | LabelDrop string = "labeldrop" constant LabelKeep (line 24) | LabelKeep string = "labelkeep" constant Lowercase (line 25) | Lowercase string = "lowercase" constant Uppercase (line 26) | Uppercase string = "uppercase" constant DropIfEqual (line 27) | DropIfEqual string = "drop_if_equal" function Process (line 30) | func Process(labels []prompb.Label, cfgs ...*pconf.RelabelConfig) []prom... function Relabel (line 40) | func Relabel(items []prompb.TimeSeries, rc []*pconf.RelabelConfig) []pro... function getValue (line 53) | func getValue(ls []prompb.Label, name model.LabelName) string { type LabelBuilder (line 62) | type LabelBuilder struct method set (line 74) | func (l *LabelBuilder) set(k, v string) *LabelBuilder { method del (line 79) | func (l *LabelBuilder) del(ns ...string) *LabelBuilder { method labels (line 86) | func (l *LabelBuilder) labels() []prompb.Label { function newBuilder (line 66) | func newBuilder(ls []prompb.Label) *LabelBuilder { function relabel (line 105) | func relabel(lset []prompb.Label, cfg *pconf.RelabelConfig) []prompb.Lab... function handleReplace (line 169) | func handleReplace(lb *LabelBuilder, regx *regexp.Regexp, cfg *pconf.Rel... function handleDropIfEqual (line 215) | func handleDropIfEqual(lb *LabelBuilder, cfg *pconf.RelabelConfig, lset ... function compileRegex (line 233) | func compileRegex(expr string) *regexp.Regexp { function sum64 (line 243) | func sum64(hash [md5.Size]byte) uint64 { FILE: pushgw/writer/relabel_test.go function TestProcess (line 16) | func TestProcess(t *testing.T) { FILE: pushgw/writer/writer.go type WriterType (line 28) | type WriterType struct method Write (line 101) | func (w WriterType) Write(key string, items []prompb.TimeSeries, heade... method Post (line 139) | func (w WriterType) Post(req []byte, headers ...map[string]string) err... function beforeWrite (line 36) | func beforeWrite(key string, items []prompb.TimeSeries, forceUseServerTS... function filterNaNSamples (line 60) | func filterNaNSamples(items []prompb.TimeSeries) []prompb.TimeSeries { type WritersType (line 224) | type WritersType struct method ReportQueueStats (line 239) | func (ws *WritersType) ReportQueueStats(queueid string, identQueue *Id... method SetAllQueueLen (line 247) | func (ws *WritersType) SetAllQueueLen() { method Put (line 275) | func (ws *WritersType) Put(name string, writer Writer) { method isCriticalBackend (line 279) | func (ws *WritersType) isCriticalBackend(key string) bool { method CleanExpQueue (line 304) | func (ws *WritersType) CleanExpQueue() { method PushSample (line 325) | func (ws *WritersType) PushSample(queueid string, v interface{}) error { method StartConsumer (line 359) | func (ws *WritersType) StartConsumer(identQueue *IdentQueue) { method writeToNonCriticalBackend (line 384) | func (ws *WritersType) writeToNonCriticalBackend(key string, series []... method deepCopySeries (line 414) | func (ws *WritersType) deepCopySeries(series []prompb.TimeSeries) []pr... method Init (line 430) | func (ws *WritersType) Init() error { method initWriters (line 440) | func (ws *WritersType) initWriters() error { method initKafkaWriters (line 479) | func (ws *WritersType) initKafkaWriters() error { type IdentQueue (line 233) | type IdentQueue struct function NewWriters (line 260) | func NewWriters(pushgwConfig pconf.Pushgw) *WritersType { type Writer (line 355) | type Writer interface function initKafkaSASL (line 467) | func initKafkaSASL(cfg *sarama.Config, opt pconf.KafkaWriterOptions) { FILE: storage/redis.go type RedisConfig (line 17) | type RedisConfig struct type Redis (line 32) | type Redis function NewRedis (line 34) | func NewRedis(cfg RedisConfig) (Redis, error) { function MGet (line 141) | func MGet(ctx context.Context, r Redis, keys []string) [][]byte { function MSet (line 166) | func MSet(ctx context.Context, r Redis, m map[string]interface{}, expira... FILE: storage/redis_test.go function TestMiniRedisMGet (line 12) | func TestMiniRedisMGet(t *testing.T) { FILE: storage/storage.go function New (line 9) | func New(cfg ormx.DBConfig) (*gorm.DB, error) {