Documentation ¶
Index ¶
- type Recorder
- func (cr *Recorder) SetAnalysis(cd *flaggerv1.Canary, metricTemplateName string, val float64)
- func (cr *Recorder) SetDuration(cd *flaggerv1.Canary, duration time.Duration)
- func (cr *Recorder) SetInfo(version string, meshProvider string)
- func (cr *Recorder) SetStatus(cd *flaggerv1.Canary, phase flaggerv1.CanaryPhase)
- func (cr *Recorder) SetTotal(namespace string, total int)
- func (cr *Recorder) SetWeight(cd *flaggerv1.Canary, primary int, canary int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder records the canary analysis as Prometheus metrics
func NewRecorder ¶
NewRecorder creates a new recorder and registers the Prometheus metrics
func (*Recorder) SetAnalysis ¶ added in v1.20.0
func (*Recorder) SetDuration ¶
SetDuration sets the time spent in seconds performing canary analysis
func (*Recorder) SetStatus ¶
func (cr *Recorder) SetStatus(cd *flaggerv1.Canary, phase flaggerv1.CanaryPhase)
SetStatus sets the last known canary analysis status
Click to show internal directories.
Click to hide internal directories.