types

package
v0.0.0-...-cb472e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 2 Imported by: 0

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

func EventCacheSubscriberCursorKey(eventType string, subid int64) string

EventCacheSubscriberCursorKey returns redis key for subscriber cursor cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL