dashboard

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateFunction added in v0.8.0

type AggregateFunction string
const (
	FunctionSum        AggregateFunction = "sum"
	FunctionAvg        AggregateFunction = "avg"
	FunctionMax        AggregateFunction = "max"
	FunctionMin        AggregateFunction = "min"
	FunctionCount      AggregateFunction = "count"
	FunctionPercentile AggregateFunction = "percentile"
)

type AlertHandler added in v0.8.0

type AlertHandler struct {
	ID      string                 `json:"id"`
	Name    string                 `json:"name"`
	Type    HandlerType            `json:"type"`
	Config  map[string]interface{} `json:"config"`
	Enabled bool                   `json:"enabled"`
}

type AlertRule

type AlertRule struct {
	ID        string                 `json:"id"`
	Name      string                 `json:"name"`
	Condition string                 `json:"condition"`
	Threshold float64                `json:"threshold"`
	Severity  AlertSeverity          `json:"severity"`
	Enabled   bool                   `json:"enabled"`
	Metadata  map[string]interface{} `json:"metadata"`
}

type AlertSeverity

type AlertSeverity string
const (
	AlertCritical AlertSeverity = "critical"
	AlertHigh     AlertSeverity = "high"
	AlertMedium   AlertSeverity = "medium"
	AlertLow      AlertSeverity = "low"
	AlertInfo     AlertSeverity = "info"
)

type AlertSystem

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

AlertSystem manages dashboard alerts

func NewAlertSystem

func NewAlertSystem() *AlertSystem

type AnalyzerType added in v0.8.0

type AnalyzerType string
const (
	AnalyzerTrend    AnalyzerType = "trend"
	AnalyzerAnomaly  AnalyzerType = "anomaly"
	AnalyzerPattern  AnalyzerType = "pattern"
	AnalyzerForecast AnalyzerType = "forecast"
)

type Chart

type Chart struct {
	ID         string                 `json:"id"`
	Title      string                 `json:"title"`
	Type       ChartType              `json:"type"`
	Data       interface{}            `json:"data"`
	Options    map[string]interface{} `json:"options"`
	LastUpdate time.Time              `json:"last_update"`
}

type ChartTemplate added in v0.8.0

type ChartTemplate struct {
	ID        string                 `json:"id"`
	Name      string                 `json:"name"`
	Type      ChartType              `json:"type"`
	Structure map[string]interface{} `json:"structure"`
	Defaults  map[string]interface{} `json:"defaults"`
}

type ChartType

type ChartType string
const (
	ChartLine    ChartType = "line"
	ChartBar     ChartType = "bar"
	ChartPie     ChartType = "pie"
	ChartScatter ChartType = "scatter"
	ChartHeatmap ChartType = "heatmap"
	ChartGauge   ChartType = "gauge"
)

type CollectorStatus

type CollectorStatus string
const (
	CollectorActive   CollectorStatus = "active"
	CollectorInactive CollectorStatus = "inactive"
	CollectorError    CollectorStatus = "error"
)

type DashboardConfig

type DashboardConfig struct {
	RefreshInterval   time.Duration
	DataRetention     time.Duration
	AlertThresholds   map[string]float64
	EnableForecasting bool
	EnableRealtime    bool
	MaxWidgets        int
}

DashboardConfig holds configuration for executive dashboard

type DataVisualizer

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

DataVisualizer handles data visualization

func NewDataVisualizer

func NewDataVisualizer() *DataVisualizer

type ExecutiveDashboard

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

ExecutiveDashboard provides high-level security insights for LLM red teaming

func NewExecutiveDashboard

func NewExecutiveDashboard(config DashboardConfig) *ExecutiveDashboard

Constructor functions

func (*ExecutiveDashboard) AddWidget

func (ed *ExecutiveDashboard) AddWidget(widget *Widget) error

Basic methods

func (*ExecutiveDashboard) CreateLayout

func (ed *ExecutiveDashboard) CreateLayout(layout *Layout) error

func (*ExecutiveDashboard) GenerateReport added in v0.8.0

func (ed *ExecutiveDashboard) GenerateReport(ctx context.Context, templateID string) ([]byte, error)

func (*ExecutiveDashboard) GetMetrics added in v0.8.0

func (ed *ExecutiveDashboard) GetMetrics(ctx context.Context) (map[string]interface{}, error)

type ExecutiveReporting

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

ExecutiveReporting handles executive reports

func NewExecutiveReporting

func NewExecutiveReporting() *ExecutiveReporting

type ForecastAlgorithm added in v0.8.0

type ForecastAlgorithm string
const (
	AlgorithmARIMA       ForecastAlgorithm = "arima"
	AlgorithmLinear      ForecastAlgorithm = "linear"
	AlgorithmExponential ForecastAlgorithm = "exponential"
	AlgorithmNeural      ForecastAlgorithm = "neural"
)

type ForecastModel

type ForecastModel struct {
	ID        string                 `json:"id"`
	Name      string                 `json:"name"`
	Algorithm ForecastAlgorithm      `json:"algorithm"`
	Accuracy  float64                `json:"accuracy"`
	Config    map[string]interface{} `json:"config"`
}

type GridConfig

type GridConfig struct {
	Columns int `json:"columns"`
	Rows    int `json:"rows"`
	Spacing int `json:"spacing"`
}

type HandlerType added in v0.8.0

type HandlerType string
const (
	HandlerEmail     HandlerType = "email"
	HandlerSlack     HandlerType = "slack"
	HandlerWebhook   HandlerType = "webhook"
	HandlerPagerDuty HandlerType = "pagerduty"
)

type InsightAnalyzer

type InsightAnalyzer struct {
	ID      string                 `json:"id"`
	Name    string                 `json:"name"`
	Type    AnalyzerType           `json:"type"`
	Config  map[string]interface{} `json:"config"`
	Enabled bool                   `json:"enabled"`
}

type InsightsEngine

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

InsightsEngine provides AI-driven insights

func NewInsightsEngine

func NewInsightsEngine() *InsightsEngine

type Layout

type Layout struct {
	ID          string                 `json:"id"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Widgets     []string               `json:"widgets"`
	Grid        GridConfig             `json:"grid"`
	Theme       string                 `json:"theme"`
	Config      map[string]interface{} `json:"config"`
}

Layout represents a dashboard layout

type MLEngine added in v0.8.0

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

func NewMLEngine added in v0.8.0

func NewMLEngine() *MLEngine

type MLModel added in v0.8.0

type MLModel struct {
	ID       string                 `json:"id"`
	Name     string                 `json:"name"`
	Type     ModelType              `json:"type"`
	Version  string                 `json:"version"`
	Status   ModelStatus            `json:"status"`
	Accuracy float64                `json:"accuracy"`
	Config   map[string]interface{} `json:"config"`
}

type MLPipeline added in v0.8.0

type MLPipeline struct {
	ID     string                 `json:"id"`
	Name   string                 `json:"name"`
	Steps  []PipelineStep         `json:"steps"`
	Status PipelineStatus         `json:"status"`
	Config map[string]interface{} `json:"config"`
}

type MetricAggregator

type MetricAggregator struct {
	ID       string                 `json:"id"`
	Name     string                 `json:"name"`
	Function AggregateFunction      `json:"function"`
	Sources  []string               `json:"sources"`
	Window   time.Duration          `json:"window"`
	Config   map[string]interface{} `json:"config"`
}

MetricAggregator aggregates metrics data

type MetricCollector

type MetricCollector struct {
	ID       string                 `json:"id"`
	Name     string                 `json:"name"`
	Type     MetricType             `json:"type"`
	Source   string                 `json:"source"`
	Interval time.Duration          `json:"interval"`
	Config   map[string]interface{} `json:"config"`
	LastRun  time.Time              `json:"last_run"`
	Status   CollectorStatus        `json:"status"`
}

MetricCollector collects specific metrics

type MetricPoint added in v0.8.0

type MetricPoint struct {
	Timestamp time.Time              `json:"timestamp"`
	Value     float64                `json:"value"`
	Tags      map[string]string      `json:"tags"`
	Metadata  map[string]interface{} `json:"metadata"`
}

type MetricStorage

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

MetricStorage stores metrics data

func NewMetricStorage

func NewMetricStorage() *MetricStorage

type MetricType

type MetricType string
const (
	MetricCounter   MetricType = "counter"
	MetricGauge     MetricType = "gauge"
	MetricHistogram MetricType = "histogram"
	MetricTimer     MetricType = "timer"
)

type MetricsSystem

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

MetricsSystem manages dashboard metrics

func NewMetricsSystem

func NewMetricsSystem() *MetricsSystem

type ModelStatus added in v0.8.0

type ModelStatus string
const (
	ModelTrained  ModelStatus = "trained"
	ModelTraining ModelStatus = "training"
	ModelDeploy   ModelStatus = "deployed"
	ModelRetired  ModelStatus = "retired"
)

type ModelType added in v0.8.0

type ModelType string
const (
	ModelRegression     ModelType = "regression"
	ModelClassification ModelType = "classification"
	ModelClustering     ModelType = "clustering"
	ModelTimeSeries     ModelType = "timeseries"
)

type PipelineStatus added in v0.8.0

type PipelineStatus string
const (
	PipelineIdle    PipelineStatus = "idle"
	PipelineRunning PipelineStatus = "running"
	PipelineSuccess PipelineStatus = "success"
	PipelineError   PipelineStatus = "error"
)

type PipelineStep added in v0.8.0

type PipelineStep struct {
	ID     string                 `json:"id"`
	Name   string                 `json:"name"`
	Type   StepType               `json:"type"`
	Config map[string]interface{} `json:"config"`
	Order  int                    `json:"order"`
}

type Position

type Position struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type Prediction added in v0.8.0

type Prediction struct {
	ID         string                 `json:"id"`
	Model      string                 `json:"model"`
	Timestamp  time.Time              `json:"timestamp"`
	Horizon    time.Duration          `json:"horizon"`
	Values     []PredictionPoint      `json:"values"`
	Confidence float64                `json:"confidence"`
	Metadata   map[string]interface{} `json:"metadata"`
}

type PredictionPoint added in v0.8.0

type PredictionPoint struct {
	Timestamp time.Time `json:"timestamp"`
	Value     float64   `json:"value"`
	Lower     float64   `json:"lower_bound"`
	Upper     float64   `json:"upper_bound"`
}

type ReportFormat added in v0.8.0

type ReportFormat string
const (
	FormatPDF   ReportFormat = "pdf"
	FormatHTML  ReportFormat = "html"
	FormatJSON  ReportFormat = "json"
	FormatExcel ReportFormat = "excel"
)

type ReportGenerator added in v0.8.0

type ReportGenerator struct {
	ID     string                 `json:"id"`
	Name   string                 `json:"name"`
	Format ReportFormat           `json:"format"`
	Config map[string]interface{} `json:"config"`
}

type ReportTemplate

type ReportTemplate struct {
	ID         string                 `json:"id"`
	Name       string                 `json:"name"`
	Type       ReportType             `json:"type"`
	Schedule   string                 `json:"schedule"`
	Recipients []string               `json:"recipients"`
	Sections   []string               `json:"sections"`
	Config     map[string]interface{} `json:"config"`
}

type ReportType added in v0.8.0

type ReportType string
const (
	ReportDaily     ReportType = "daily"
	ReportWeekly    ReportType = "weekly"
	ReportMonthly   ReportType = "monthly"
	ReportQuarterly ReportType = "quarterly"
	ReportAdhoc     ReportType = "adhoc"
)

type RiskAnalyzer

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

RiskAnalyzer analyzes security risks

func NewRiskAnalyzer

func NewRiskAnalyzer() *RiskAnalyzer

type RiskAssessment added in v0.8.0

type RiskAssessment struct {
	ID          string                 `json:"id"`
	Name        string                 `json:"name"`
	Scope       string                 `json:"scope"`
	Level       RiskLevel              `json:"level"`
	Score       float64                `json:"score"`
	Factors     []RiskFactor           `json:"factors"`
	Mitigations []string               `json:"mitigations"`
	Timestamp   time.Time              `json:"timestamp"`
	Metadata    map[string]interface{} `json:"metadata"`
}

type RiskFactor added in v0.8.0

type RiskFactor struct {
	ID          string                 `json:"id"`
	Name        string                 `json:"name"`
	Impact      float64                `json:"impact"`
	Probability float64                `json:"probability"`
	Score       float64                `json:"score"`
	Metadata    map[string]interface{} `json:"metadata"`
}

type RiskLevel added in v0.8.0

type RiskLevel string
const (
	RiskCritical RiskLevel = "critical"
	RiskHigh     RiskLevel = "high"
	RiskMedium   RiskLevel = "medium"
	RiskLow      RiskLevel = "low"
	RiskMinimal  RiskLevel = "minimal"
)

type RiskModel added in v0.8.0

type RiskModel struct {
	ID      string                 `json:"id"`
	Name    string                 `json:"name"`
	Type    ModelType              `json:"type"`
	Factors []string               `json:"factors"`
	Weights map[string]float64     `json:"weights"`
	Config  map[string]interface{} `json:"config"`
}

type Score added in v0.8.0

type Score struct {
	ID         string                 `json:"id"`
	Category   string                 `json:"category"`
	Value      float64                `json:"value"`
	Grade      ScoreGrade             `json:"grade"`
	Timestamp  time.Time              `json:"timestamp"`
	Components map[string]float64     `json:"components"`
	Metadata   map[string]interface{} `json:"metadata"`
}

type ScoreGrade added in v0.8.0

type ScoreGrade string
const (
	GradeA ScoreGrade = "A"
	GradeB ScoreGrade = "B"
	GradeC ScoreGrade = "C"
	GradeD ScoreGrade = "D"
	GradeF ScoreGrade = "F"
)

type ScoreMetric

type ScoreMetric struct {
	ID          string                 `json:"id"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Weight      float64                `json:"weight"`
	Formula     string                 `json:"formula"`
	Config      map[string]interface{} `json:"config"`
}

type SecurityScorecard

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

SecurityScorecard provides security scoring

func NewSecurityScorecard

func NewSecurityScorecard() *SecurityScorecard

type Size

type Size struct {
	Width  int `json:"width"`
	Height int `json:"height"`
}

type StepType added in v0.8.0

type StepType string
const (
	StepPreprocess StepType = "preprocess"
	StepTrain      StepType = "train"
	StepValidate   StepType = "validate"
	StepDeploy     StepType = "deploy"
)

type TrendForecaster

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

TrendForecaster predicts trends

func NewTrendForecaster

func NewTrendForecaster() *TrendForecaster

type Widget

type Widget struct {
	ID         string                 `json:"id"`
	Title      string                 `json:"title"`
	Type       WidgetType             `json:"type"`
	Position   Position               `json:"position"`
	Size       Size                   `json:"size"`
	Config     map[string]interface{} `json:"config"`
	Data       interface{}            `json:"data"`
	LastUpdate time.Time              `json:"last_update"`
}

Widget represents a dashboard widget

type WidgetType

type WidgetType string
const (
	WidgetChart  WidgetType = "chart"
	WidgetMetric WidgetType = "metric"
	WidgetTable  WidgetType = "table"
	WidgetAlert  WidgetType = "alert"
	WidgetScore  WidgetType = "score"
	WidgetTrend  WidgetType = "trend"
)

Jump to

Keyboard shortcuts

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