incoming

package
v0.0.0-...-35c0fb1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 Report

func Report(ctx context.Context, client cache.BugzillaClient, recorder events.Recorder, components []string) (string, map[string]AssigneeReport, []*bugzilla.Bug, error)

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

type ComponentCount struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

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

type SeverityCount struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

SeverityCount is a single severity (urgent, high, medium, low, unspecified) with bug count.

Jump to

Keyboard shortcuts

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