drift

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordSignal

func RecordSignal(ctx context.Context, agentID string, signal Signal)

Types

type AgentDrift

type AgentDrift struct {
	TenantID string   `json:"tenant_id"`
	AgentID  string   `json:"agent_id"`
	Signals  []Signal `json:"signals"`
}

type Analyzer

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

func NewAnalyzer

func NewAnalyzer(store *evidence.Store) *Analyzer

func (*Analyzer) ComputeSignals

func (a *Analyzer) ComputeSignals(ctx context.Context, tenantID string, now time.Time) ([]AgentDrift, error)

type Signal

type Signal struct {
	Name     string  `json:"name"`
	ZScore   float64 `json:"z_score"`
	Current  float64 `json:"current"`
	Baseline float64 `json:"baseline"`
	Alert    bool    `json:"alert"`
}

Jump to

Keyboard shortcuts

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