continuous

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkers

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

func NewCheckers

func NewCheckers(ctx context.Context, moduleMgr *module.Manager, conf *base.ContinuousConfig, triggers *Triggers) (*Checkers, error)

func (*Checkers) CheckProfilingPolicies

func (c *Checkers) CheckProfilingPolicies() error

func (*Checkers) ShouldCheck

func (c *Checkers) ShouldCheck(p api.ProcessInterface, item *base.PolicyItem) bool

func (*Checkers) Start

func (c *Checkers) Start()

func (*Checkers) Stop

func (c *Checkers) Stop() error

type Manager

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

func NewManager

func NewManager(ctx context.Context, taskManager *task.Manager, moduleMgr *module.Manager, config *base.ContinuousConfig) (*Manager, error)

func (*Manager) CheckPolicies

func (m *Manager) CheckPolicies() error

func (*Manager) Shutdown

func (m *Manager) Shutdown() error

func (*Manager) Start

func (m *Manager) Start()

type QueryPolicyUpdate

type QueryPolicyUpdate struct {
	ServiceName string `json:"ServiceName"`
	UUID        string `json:"UUID"`
	Profiling   map[base.TargetProfilingType]map[base.CheckType]*QueryPolicyUpdateItem
}

type QueryPolicyUpdateItem

type QueryPolicyUpdateItem struct {
	Threshold string   `json:"Threshold"`
	Period    int      `json:"Period"`
	Count     int      `json:"Count"`
	URIList   []string `json:"URIList"`
	URIRegex  string   `json:"URIRegex"`
}

func (*QueryPolicyUpdateItem) Validate

func (p *QueryPolicyUpdateItem) Validate() error

type Triggers

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

func NewTriggers

func NewTriggers(ctx context.Context, moduleMgr *module.Manager, taskManager *task.Manager, conf *base.ContinuousConfig) (*Triggers, error)

func (*Triggers) ReportProcesses

func (m *Triggers) ReportProcesses(process api.ProcessInterface, profilingProcesses []api.ProcessInterface, cases []base.ThresholdCause,
	taskSetter func(task *taskBase.ProfilingTask), reportSetter func(report *v3.ContinuousProfilingReport)) (*task.Context, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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