Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetricsNamespacePrefix is prefix of metrics namespace. MetricsNamespacePrefix = "cmdb_eventserver" // EventCacheEventIDKey the event instance id key in cache EventCacheEventIDKey = common.BKCacheKeyV3Prefix + "event:inst_id" // EventCacheDistIDPrefix is prefix of event dist id key in cache. EventCacheDistIDPrefix = common.BKCacheKeyV3Prefix + "event:dist_id_" // EventCacheIdentInstPrefix is prefix of host identifier instance key in cache. EventCacheIdentInstPrefix = common.BKCacheKeyV3Prefix + "ident:inst_" // EventCacheEventQueueKey is main event queue key in cache. EventCacheEventQueueKey = common.BKCacheKeyV3Prefix + "event:queue" // EventCacheEventQueueDuplicateKey is duplicate event queue key in cache. EventCacheEventQueueDuplicateKey = common.BKCacheKeyV3Prefix + "event:duplicate_queue" // EventCacheSubscriberEventQueueKeyPrefix is prefix of subscriber event queue key in cache. EventCacheSubscriberEventQueueKeyPrefix = common.BKCacheKeyV3Prefix + "event:subscriber_queue_" // EventCacheSubscriberCursorPrefixis prefix for subscriber on target resource event type. // e.g: cc:v3:event:subscriber_cursor_hostcreate:1 -> MarshalChainNodeStr EventCacheSubscriberCursorPrefix = common.BKCacheKeyV3Prefix + "event:subscriber_cursor" // EventCacheDistCallBackCountPrefix is prefix of event callback stats key in cache. EventCacheDistCallBackCountPrefix = common.BKCacheKeyV3Prefix + "event:dist_callback_" )
Variables ¶
View Source
var (
// NilStr is special NIL string.
NilStr = "nil"
)
Functions ¶
func EventCacheSubscriberCursorKey ¶
EventCacheSubscriberCursorKey returns redis key for subscriber cursor cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.