MCPcopy Create free account

hub / github.com/EBWi11/AgentSmith-HUB / functions

Functions2,165 in github.com/EBWi11/AgentSmith-HUB

↓ 7 callersMethodensureStopChan
()
src/output/output.go:476
↓ 7 callersMethodexecuteCheckNode
executeCheckNode executes a single check node
src/rules_engine/engine_core.go:1016
↓ 7 callersFunctionhandleApiError
(error, defaultMessage, returnEmptyArray = false)
web/src/api/index.js:43
↓ 7 callersMethodinstall
(t *testing.T)
src/cluster/instruction_sync_integration_test.go:96
↓ 7 callersFunctionnewFakeClusterRedis
()
src/cluster/instruction_sync_integration_test.go:30
↓ 7 callersFunctionnewLocalClassifyCounter
()
src/rules_engine/engine_threshold_cache.go:150
↓ 7 callersFunctionnewLocalThresholdCounter
()
src/rules_engine/engine_threshold_cache.go:26
↓ 7 callersFunctionnormalizeComponentType
(type = '', target = 'plural')
web/src/api/index.js:75
↓ 7 callersFunctionresetProjectStateForTest
()
src/cluster/instruction_sync_integration_test.go:116
↓ 7 callersMethodsetCurrentVersion
setCurrentVersion updates version and persists to Redis (must be called with lock held)
src/cluster/instruction_sync.go:143
↓ 7 callersFunctionsimpleRuleFingerprintFromXML
simpleRuleFingerprintFromXML 解析单条 rule XML 并计算指纹。 忽略 ConditionAST,仅基于结构和字段内容。
src/api/components.go:2849
↓ 7 callersFunctionupdateComponent
(componentType string, c echo.Context)
src/api/components.go:1313
↓ 6 callersFunctionCachedRegexMatch
CachedRegexMatch performs regex matching with caching for non-raw values Uses the same logic as REGEX function to ensure compatibility
src/rules_engine/regex_result_cache.go:125
↓ 6 callersMethodCheckAbsenceTimeout
CheckAbsenceTimeout checks if any absence stages have timed out (for deferred triggering). This is called when the sequence has not completed normally
src/rules_engine/cep_condition.go:702
↓ 6 callersMethodCleanupKeyLock
CleanupKeyLock is kept for callers that explicitly clean up after deleting a state. Lock entries are now released automatically by UnlockKey once the
src/rules_engine/cep_state.go:236
↓ 6 callersFunctionClearRegexCache
ClearRegexCache clears the global regex cache.
src/rules_engine/regex_cache.go:132
↓ 6 callersMethodClose
()
src/rules_engine/cep_value_store.go:183
↓ 6 callersFunctionEval
Eval performs ThreatBook threat intelligence lookup with caching Args: queryValue string, queryType string, apiKey string (optional) Returns: ThreatBo
src/local_plugin/threatbook/threatbook.go:408
↓ 6 callersFunctionEval
Eval performs Shodan IP lookup with caching Args: ip string, apiKey string (optional) Returns: ShodanResult object with infrastructure information
src/local_plugin/shodan/shodan.go:307
↓ 6 callersMethodFindAbsenceCompletionPath
FindAbsenceCompletionPath checks if the sequence can complete due to absence timeout and returns the match indices used. Returns nil if not triggerabl
src/rules_engine/cep_condition.go:839
↓ 6 callersFunctionGetAST
(ori string)
src/rules_engine/engine_condition.go:262
↓ 6 callersFunctionGetInput
Input accessors
src/project/project_struct.go:377
↓ 6 callersFunctionGetPNSOutput
PNS Output accessors
src/project/project_struct.go:479
↓ 6 callersMethodGetProjectAgents
GetProjectAgents returns all agents used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:636
↓ 6 callersMethodGetProjectRulesets
GetProjectRulesets returns all rulesets used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:237
↓ 6 callersFunctionNewPebbleCEPValueStore
NewPebbleCEPValueStore creates/opens a Pebble DB for a specific ruleset.
src/rules_engine/cep_value_store.go:60
↓ 6 callersFunctionNewRedisErrorLogHandler
NewRedisErrorLogHandler creates a new Redis error log handler
src/logger/logger.go:497
↓ 6 callersFunctionRecordProjectOperation
RecordProjectOperation records a project operation
src/api/operations_history.go:178
↓ 6 callersMethodSetTestCollectionChan
(ch *chan map[string]interface{})
src/output/output.go:483
↓ 6 callersMethodStop
Stop the ruleset engine, waiting for all upstream and downstream data to be processed before shutdown.
src/rules_engine/engine_core.go:492
↓ 6 callersMethodUnlockKey
UnlockKey releases the per-key mutex.
src/rules_engine/cep_state.go:214
↓ 6 callersMethodcleanup
cleanup performs aggressive cleanup when normal stop fails
src/project/project.go:2119
↓ 6 callersFunctionensurePendingChangesSynced
(force bool)
src/api/pending_changes_sync.go:28
↓ 6 callersMethodgetCurrentVersionUnsafe
getCurrentVersionUnsafe returns version string without locking (must be called with lock held)
src/cluster/sync_listener.go:110
↓ 6 callersFunctionisValidRulesetFolderName
(name string)
src/api/ruleset_folders.go:23
↓ 6 callersFunctionjsonError
(c echo.Context, status int, message string)
src/api/http_helpers.go:9
↓ 6 callersMethodkeys
(pattern string)
src/cluster/instruction_sync_integration_test.go:70
↓ 6 callersFunctionloadBuiltRulesetFromTestdata
loadBuiltRulesetFromTestdata reads XML under testdata/, runs ParseRuleset + RulesetBuild + SetTestMode, registers cleanup, and returns a ready ruleset
src/rules_engine/engine_testdata_test.go:31
↓ 6 callersFunctionmarkPendingChangesDirty
()
src/api/pending_changes_sync.go:42
↓ 6 callersMethodplatformOptimizedContainsCaseInsensitive
ARM64-optimized SIMDContainsCaseInsensitive
src/rules_engine/simd_arm64.go:52
↓ 6 callersFunctionprocessCheckNode
processCheckNode handles the common logic for processing check nodes
src/rules_engine/engine_struct.go:3017
↓ 6 callersMethodresolvedLingerDur
()
src/output/output.go:173
↓ 6 callersFunctionshouldRestartProjectForComponentChange
(projectID string, p *Project)
src/project/project.go:45
↓ 6 callersFunctiontokenizeCEPCondition
============================================================================ Tokenizer ===============================================================
src/rules_engine/cep_condition.go:133
↓ 5 callersFunctionCalculateRefCountUnsafe
CalculateRefCountUnsafe performs the same calculation as CalculateRefCount but without acquiring locks This version should only be called when the cal
src/project/project_struct.go:60
↓ 5 callersMethodCheckConnectivity
CheckConnectivity performs a real connectivity test for the input component This method tests actual connection to external systems (Kafka, SLS, etc.)
src/input/input.go:811
↓ 5 callersMethodCollectAllComponentsData
()
src/common/daily_stats_manager.go:284
↓ 5 callersMethodDeleteState
DeleteState removes a SequenceState by key.
src/rules_engine/cep_state.go:259
↓ 5 callersMethodGetActiveFollowers
GetActiveFollowers returns list of followers currently executing instructions
src/cluster/instruction_sync.go:823
↓ 5 callersMethodGetAllChanges
GetAllChanges returns all pending changes
src/api/pending_changes.go:141
↓ 5 callersMethodGetDailyStats
(date, projectID, nodeID string)
src/common/daily_stats_manager.go:195
↓ 5 callersFunctionGetPluginRealArgs
(args []*PluginArg, data map[string]interface{}, cache map[string]common.CheckCoreCache)
src/rules_engine/engine_utils.go:135
↓ 5 callersMethodGetProduceTotal
GetProduceTotal returns the total produced count.
src/output/output.go:950
↓ 5 callersMethodGetProjectOutputs
GetProjectOutputs returns all outputs used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:202
↓ 5 callersFunctionGetRuleValueFromRawFromCache
(cache map[string]common.CheckCoreCache, checkKey string, data map[string]interface{})
src/rules_engine/engine_utils.go:164
↓ 5 callersFunctionGetRuleset
Ruleset accessors
src/project/project_struct.go:445
↓ 5 callersMethodGetRunningTaskCount
()
src/agent/agent.go:366
↓ 5 callersMethodGetStageEventIDs
GetStageEventIDs returns the event IDs referenced in a specific stage.
src/rules_engine/cep_condition.go:905
↓ 5 callersMethodHasAbsenceStages
HasAbsenceStages returns true if any stage in the condition is an absence stage.
src/rules_engine/cep_condition.go:890
↓ 5 callersFunctionNewRuleset
NewRuleset creates a new resource from an XML file path: Path to the resource XML file
src/rules_engine/engine_struct.go:1953
↓ 5 callersMethodPutSnapshot
PutSnapshot serializes data and enqueues an asynchronous write to Pebble. The payload is kept in an inflight map so that an immediate GetSnapshot can
src/rules_engine/cep_value_store.go:107
↓ 5 callersFunctionRecordLocalPush
RecordLocalPush records a local push operation to Redis
src/api/operations_history.go:106
↓ 5 callersMethodSample
Sample attempts to sample the data based on timer (performance optimized version)
src/common/sampler.go:91
↓ 5 callersMethodSetStatus
(status common.Status, err error)
src/agent/agent.go:223
↓ 5 callersMethodStop
Stop stops the output producer and waits for all routines to finish.
src/output/output.go:869
↓ 5 callersFunctionappendUniqueUsage
(values []string, value string)
src/api/component_usage_indexes.go:140
↓ 5 callersFunctionapplyMergedConfig
()
web/src/config/index.js:34
↓ 5 callersMethodcreateComponentInstance
createComponentInstance creates actual component instances from configuration
src/cluster/sync_listener.go:892
↓ 5 callersFunctiondecompressState
decompressState decompresses a zstd-compressed string and deserializes to SequenceState. Transparently handles both compressed and uncompressed (legac
src/rules_engine/cep_state.go:95
↓ 5 callersFunctionextractLineNumber
(errorMessage, componentType = null, editorContent = null)
web/src/utils/common.js:181
↓ 5 callersFunctiongenerateCacheKey
generateCacheKey creates a cache key from regex pattern and input value
src/rules_engine/regex_result_cache.go:46
↓ 5 callersFunctiongetComponentEndpoint
(type, id = '')
web/src/api/index.js:120
↓ 5 callersFunctiongetLineNumber
getLineNumber finds the line number of a pattern in XML content
src/rules_engine/engine_struct.go:503
↓ 5 callersFunctiongetLogDir
getLogDir returns the appropriate log directory based on the operating system
src/logger/logger.go:24
↓ 5 callersMethodgetNextToken
()
src/rules_engine/engine_condition.go:84
↓ 5 callersFunctiongetSASLMechanism
getSASLMechanism returns the appropriate SASL mechanism based on the configuration
src/common/kafka.go:298
↓ 5 callersFunctiongetTLSDialOpt
(cfg *KafkaTLSConfig)
src/common/kafka.go:710
↓ 5 callersFunctionhasFromRawPrefix
Optimized prefix checking - avoid strings.HasPrefix overhead
src/rules_engine/engine_core.go:87
↓ 5 callersFunctionorderedThresholdGroupByFields
(threshold *Threshold)
src/rules_engine/engine_core.go:2369
↓ 5 callersFunctionparseNodeDirect
parseNodeDirect splits "TYPE.name" into ("TYPE", "name")
src/api/testing.go:2176
↓ 5 callersFunctionparseRefFromExpiryKey
(k []byte)
src/rules_engine/cep_value_store.go:355
↓ 5 callersMethodparseWithGrok
parseWithGrok parses the input data using grok pattern if configured
src/input/input.go:221
↓ 5 callersFunctionpendingRuleDuplicate
pendingRuleDuplicate 使用 rules_engine 解析后的结构来做近似"逻辑等价"判断(忽略 ConditionAST)。
src/api/components.go:2863
↓ 5 callersMethodprocessOutputMessage
(msg map[string]interface{}, hasTestCollector bool, testCollectorType string)
src/output/output.go:512
↓ 5 callersFunctionrefreshAffectedProjectsForComponentChange
(componentType, componentID string, affectedProjects []string, source string, recordOperation bool)
src/api/runtime_refresh.go:8
↓ 5 callersFunctionresolveAliyunSLSRoutingValue
(msg map[string]interface{}, staticValue string, fieldPath string)
src/common/aliyun_sls.go:133
↓ 5 callersFunctionrulesetErrorResponse
Helper function to return appropriate error format for ruleset APIs
src/api/testing.go:33
↓ 5 callersFunctionserializeState
serializeState serializes a SequenceState to zstd-compressed JSON.
src/rules_engine/cep_state.go:72
↓ 5 callersMethodstopComponentsInternal
()
src/project/project.go:1934
↓ 5 callersFunctionstringValue
(value interface{})
config/plugin/pushAlertToIris.go:340
↓ 5 callersFunctionvalidatePluginParameters
validatePluginParameters validates the parameters of a plugin call
src/rules_engine/engine_struct.go:1657
↓ 4 callersMethodClear
Clear removes all entries from the cache
src/rules_engine/regex_result_cache.go:106
↓ 4 callersFunctionEval
Eval performs VirusTotal hash lookup with caching Args: hash string, apiKey string (optional) Returns: VirusTotalResult object with detection informat
src/local_plugin/virustotal/virustotal.go:270
↓ 4 callersMethodFindCompletionPath
============================================================================ Completion Path (Phase 3b: find which matches were used) ================
src/rules_engine/cep_condition.go:784
↓ 4 callersMethodGetCurrentMetrics
GetCurrentMetrics returns the latest system metrics
src/common/system_monitor.go:383
↓ 4 callersMethodGetIncrementAndUpdate
GetIncrementAndUpdate returns the increment since last call and updates the baseline. This method is thread-safe and designed for statistics collectio
src/input/input.go:796
↓ 4 callersMethodGetOrCreateState
GetOrCreateState atomically gets or creates a SequenceState for the given key. IMPORTANT: The caller MUST hold the per-key lock via LockKey before cal
src/rules_engine/cep_state.go:640
↓ 4 callersFunctionGetOutput
Output accessors
src/project/project_struct.go:411
↓ 4 callersFunctionGetProject
Project accessors
src/project/project_struct.go:340
↓ 4 callersFunctionGetRedisSampleManager
GetRedisSampleManager returns the global Redis sample manager
src/common/redis_sample_manager.go:456
← previousnext →101–200 of 2,165, ranked by callers