canopsis

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "canopsis"

	ActionEngineName            = "engine-action"
	ActionQueueName             = "Engine_action"
	ActionAxeRPCClientQueueName = "Engine_action_axe_rpc_client"
	ActionConsumerName          = "action"
	ActionRPCConsumerName       = "action_rpc"

	AxeEngineName                     = "engine-axe"
	AxeQueueName                      = "Engine_axe"
	AxePbehaviorRPCClientQueueName    = "Engine_axe_pbehavior_rpc_client"
	AxeDynamicInfosRPCClientQueueName = "Engine_axe_dynamic_infos_rpc_client"
	AxeRPCQueueServerName             = "Engine_axe_rpc_server"
	AxeConsumerName                   = "axe"
	AxeRPCConsumerName                = "axe_rpc"
	AxeConnector                      = "axe"

	CheExchangeName = ""
	CheEngineName   = "engine-che"
	CheQueueName    = "Engine_che"
	CheConsumerName = "che"

	DefaultBulkSize      = 1000
	DefaultBulkBytesSize = 16000000 // < MongoDB limit (16 megabytes)
	DefaultEventAuthor   = "system"

	DynamicInfosEngineName         = "engine-dynamic-infos"
	DynamicInfosQueueName          = "Engine_dynamic_infos"
	DynamicInfosConsumerName       = "dynamic-infos"
	DynamicInfosRPCConsumerName    = "dynamic-infos_rpc"
	DynamicInfosRPCQueueServerName = "Engine_dynamic_infos_rpc_server"

	PBehaviorEngineName         = "engine-pbehavior"
	PBehaviorRPCQueueServerName = "Engine_pbehavior_rpc_server"
	PBehaviorQueueRecomputeName = "Engine_pbehavior_recompute"
	PBehaviorRPCConsumerName    = "pbehavior_rpc"
	PBehaviorConsumerName       = "pbehavior"

	WebhookEngineName         = "engine-webhook"
	WebhookRPCQueueServerName = "Engine_webhook_rpc_server"
	WebhookRPCConsumerName    = "webhook_rpc"

	FIFOEngineName      = "engine-fifo"
	FIFOExchangeName    = ""
	FIFOQueueName       = "Engine_fifo"
	FIFOAckExchangeName = ""
	FIFOAckQueueName    = "FIFO_ack"
	FIFOConsumerName    = "fifo"
	FIFOAckConsumerName = "fifo_ack"

	CorrelationEngineName            = "engine-correlation"
	CorrelationQueueName             = "Engine_correlation"
	CorrelationAxeRPCClientQueueName = "Engine_correlation_axe_rpc_client"
	CorrelationConsumerName          = "correlation"
	CorrelationRPCConsumerName       = "correlation_rpc"
	CorrelationConnector             = "correlation"

	PeriodicalWaitTime     = time.Minute
	JsonContentType        = "application/json"
	CanopsisEventsExchange = "canopsis.events"

	RemediationEngineName            = "engine-remediation"
	RemediationConsumerName          = "remediation"
	RemediationRPCConsumerName       = "remediation_rpc"
	RemediationRPCQueueServerName    = "Engine_remediation_rpc_server"
	RemediationRPCQueueServerJobName = "Engine_remediation_rpc_server_job"

	SnmpEngineName = "engine-snmp"

	TechMetricsFlushInterval = time.Second * 10

	DefaultFlushInterval = time.Second * 5

	EngineConnector = "engine"

	FacetLimit = 1000

	ApiName = "api"

	DefaultEventWorkers = 10
)

Globals

Variables

View Source
var BuildDate string

BuildDate is a Unix timestamp (as a string).

View Source
var Version string

Version is a version of service.

Functions

func PrintVersionInfo

func PrintVersionInfo()

Types

type BuildInfo

type BuildInfo struct {
	Name        string
	Version     string
	Edition     string
	Date        time.Time
	VcsRevision string
	GoVersion   string
	Os          string
}

func GetBuildInfo

func GetBuildInfo() BuildInfo

Directories

Path Synopsis
Package contextgraph contains a service, which is responsible for building canopsis context graph.
Package contextgraph contains a service, which is responsible for building canopsis context graph.
xml
Package engine contain implementation of canopsis engine.
Package engine contain implementation of canopsis engine.
Package idlealarm implements alarm modification on idle alarm.
Package idlealarm implements alarm modification on idle alarm.
Package idlerule contains idle rule model and adapter.
Package idlerule contains idle rule model and adapter.
v1
v2
Package pattern provides functionality for filtering and matching models.
Package pattern provides functionality for filtering and matching models.
db

Jump to

Keyboard shortcuts

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