Documentation
¶
Index ¶
- type AggregateFunction
- type AlertHandler
- type AlertRule
- type AlertSeverity
- type AlertSystem
- type AnalyzerType
- type Chart
- type ChartTemplate
- type ChartType
- type CollectorStatus
- type DashboardConfig
- type DataVisualizer
- type ExecutiveDashboard
- func (ed *ExecutiveDashboard) AddWidget(widget *Widget) error
- func (ed *ExecutiveDashboard) CreateLayout(layout *Layout) error
- func (ed *ExecutiveDashboard) GenerateReport(ctx context.Context, templateID string) ([]byte, error)
- func (ed *ExecutiveDashboard) GetMetrics(ctx context.Context) (map[string]interface{}, error)
- type ExecutiveReporting
- type ForecastAlgorithm
- type ForecastModel
- type GridConfig
- type HandlerType
- type InsightAnalyzer
- type InsightsEngine
- type Layout
- type MLEngine
- type MLModel
- type MLPipeline
- type MetricAggregator
- type MetricCollector
- type MetricPoint
- type MetricStorage
- type MetricType
- type MetricsSystem
- type ModelStatus
- type ModelType
- type PipelineStatus
- type PipelineStep
- type Position
- type Prediction
- type PredictionPoint
- type ReportFormat
- type ReportGenerator
- type ReportTemplate
- type ReportType
- type RiskAnalyzer
- type RiskAssessment
- type RiskFactor
- type RiskLevel
- type RiskModel
- type Score
- type ScoreGrade
- type ScoreMetric
- type SecurityScorecard
- type Size
- type StepType
- type TrendForecaster
- type Widget
- type WidgetType
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 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 ChartTemplate ¶ added in v0.8.0
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 (*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 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 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 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 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 Prediction ¶ added in v0.8.0
type PredictionPoint ¶ added in v0.8.0
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 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 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 SecurityScorecard ¶
type SecurityScorecard struct {
// contains filtered or unexported fields
}
SecurityScorecard provides security scoring
func NewSecurityScorecard ¶
func NewSecurityScorecard() *SecurityScorecard
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" )