Documentation
¶
Index ¶
- func NewIncomingReporter(ctx controller.ControllerContext, components []string, schedule []string, ...) factory.Controller
- func NewIncomingStatsReporter(ctx controller.ControllerContext, components, schedule []string, ...) factory.Controller
- func Report(ctx context.Context, client cache.BugzillaClient, recorder events.Recorder, ...) (string, map[string]AssigneeReport, []*bugzilla.Bug, error)
- func ReportStats(ctx context.Context, controllerCtx controller.ControllerContext, ...) (string, error)
- type AssigneeReport
- type ComponentCount
- type IncomingDailyReport
- type IncomingReport
- type IncomingReporter
- type IncomingStatsReporter
- type SeverityCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIncomingReporter ¶
func NewIncomingReporter(ctx controller.ControllerContext, components []string, schedule []string, operatorConfig config.OperatorConfig, recorder events.Recorder) factory.Controller
func NewIncomingStatsReporter ¶
func NewIncomingStatsReporter(ctx controller.ControllerContext, components, schedule []string, recorder events.Recorder) factory.Controller
func ReportStats ¶
func ReportStats(ctx context.Context, controllerCtx controller.ControllerContext, recorder events.Recorder) (string, error)
Types ¶
type AssigneeReport ¶
type AssigneeReport struct {
// contains filtered or unexported fields
}
type ComponentCount ¶
ComponentCount is a single component name with the bug count.
type IncomingDailyReport ¶
type IncomingDailyReport struct { Timestamp time.Time `json:"timestamp"` // Count daily incoming numbers for components Components []ComponentCount `json:"components"` // Count daily incoming numbers for severity Severities []SeverityCount `json:"severities"` }
IncomingDailyReport represents a single day report of incoming bugs broke down to components and severities for incoming bugs.
type IncomingReport ¶
type IncomingReport struct {
Reports []IncomingDailyReport `json:"reports"`
}
IncomingReport is structure we serialize into JSON and store in config map that contain list of daily incoming bug reports.
type IncomingReporter ¶
type IncomingReporter struct { controller.ControllerContext // contains filtered or unexported fields }
IncomingReport reports bugs that are NEW and haven't been assigned yet. To track new bugs, we chose to tag bugs we have seen with 'AssigneeNotified' keyword (in DevWhiteboard). This reported will notify assignees about new bugs based on the reporter schedule (2x a day). Additionally, a report of new bugs will be sent to the status channel.
type IncomingStatsReporter ¶
type IncomingStatsReporter struct { controller.ControllerContext // contains filtered or unexported fields }
type SeverityCount ¶
SeverityCount is a single severity (urgent, high, medium, low, unspecified) with bug count.