esanalyzer

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Pinot readMode = "pinot"
	ES    readMode = "es"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer is the background sub-system to query ElasticSearch and execute mitigations

func New

func New(
	svcClient workflowserviceclient.Interface,
	frontendClient frontend.Client,
	clientBean client.Bean,
	esClient es.GenericClient,
	pinotClient pinot.GenericClient,
	esConfig *config.ElasticSearchConfig,
	pinotConfig *config.PinotVisibilityConfig,
	logger log.Logger,
	tallyScope tally.Scope,
	resource resource.Resource,
	domainCache cache.DomainCache,
	config *Config,
) *Analyzer

New returns a new instance as daemon

func (*Analyzer) Start

func (a *Analyzer) Start() error

Start starts the scanner

func (*Analyzer) StartDomainWFTypeCountWorkflow added in v1.0.0

func (a *Analyzer) StartDomainWFTypeCountWorkflow(ctx context.Context)

func (*Analyzer) StartWorkflow

func (a *Analyzer) StartWorkflow(ctx context.Context)

type Config

type Config struct {
	ESAnalyzerPause                          dynamicproperties.BoolPropertyFn
	ESAnalyzerTimeWindow                     dynamicproperties.DurationPropertyFn
	ESAnalyzerMaxNumDomains                  dynamicproperties.IntPropertyFn
	ESAnalyzerMaxNumWorkflowTypes            dynamicproperties.IntPropertyFn
	ESAnalyzerLimitToTypes                   dynamicproperties.StringPropertyFn
	ESAnalyzerEnableAvgDurationBasedChecks   dynamicproperties.BoolPropertyFn
	ESAnalyzerLimitToDomains                 dynamicproperties.StringPropertyFn
	ESAnalyzerNumWorkflowsToRefresh          dynamicproperties.IntPropertyFnWithWorkflowTypeFilter
	ESAnalyzerBufferWaitTime                 dynamicproperties.DurationPropertyFnWithWorkflowTypeFilter
	ESAnalyzerMinNumWorkflowsForAvg          dynamicproperties.IntPropertyFnWithWorkflowTypeFilter
	ESAnalyzerWorkflowDurationWarnThresholds dynamicproperties.StringPropertyFn
	ESAnalyzerWorkflowVersionDomains         dynamicproperties.StringPropertyFn
	ESAnalyzerWorkflowTypeDomains            dynamicproperties.StringPropertyFn
}

Config contains all configs for ElasticSearch Analyzer

type DomainWorkflowTypeCount added in v1.0.0

type DomainWorkflowTypeCount struct {
	WorkflowTypes []EsAggregateCount `json:"buckets"`
}

type DomainWorkflowVersionCount added in v1.0.0

type DomainWorkflowVersionCount struct {
	WorkflowTypes []WorkflowTypeCount `json:"buckets"`
}

type EsAggregateCount added in v1.0.0

type EsAggregateCount struct {
	AggregateKey   string `json:"key"`
	AggregateCount int64  `json:"doc_count"`
}

type Workflow

type Workflow struct {
	// contains filtered or unexported fields
}

type WorkflowTypeCount added in v1.0.0

type WorkflowTypeCount struct {
	EsAggregateCount
	WorkflowVersions WorkflowVersionCount `json:"versions"`
}

type WorkflowVersionCount added in v1.0.0

type WorkflowVersionCount struct {
	WorkflowVersions []EsAggregateCount `json:"buckets"`
}

Jump to

Keyboard shortcuts

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