Documentation
¶
Overview ¶
Package anomaly provides cost anomaly detection
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anomaly ¶
type Anomaly struct {
Type string
Description string
Severity string
DetectedAt time.Time
Value float64
Expected float64
Deviation float64
}
Anomaly represents a detected anomaly
type AnomalyReport ¶
type AnomalyReport struct {
TotalAnomalies int
BySeverity map[string]int
ByType map[string]int
Anomalies []Anomaly
Summary string
}
AnomalyReport represents a report of detected anomalies
func GenerateReport ¶
func GenerateReport(anomalies []Anomaly) *AnomalyReport
GenerateReport generates an anomaly report
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector detects cost anomalies
func NewDetector ¶
NewDetector creates a new anomaly detector
func (*Detector) DetectSuddenChange ¶
DetectSuddenChange detects sudden changes in cost
func (*Detector) DetectTrendChange ¶
DetectTrendChange detects changes in cost trend
Click to show internal directories.
Click to hide internal directories.