metrics

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReviewerAttemptCount is a counter of attempts of reviewing a CL.
	// We should have:
	// ReviewerAttemptsCount = ReviewerApprovedCount + ReviewerDeclinedCount + (Count of errors returned by func reviewer)
	// review_type can be decided by the getReviewType func in reviewer.go.
	ReviewerAttemptCount = metric.NewCounter(
		"rubber-stamper/reviewer/attempt",
		"Counter of attempts of reviewing a CL",
		nil,
		field.String("host"),
		field.String("repo"),
		field.String("review_type"),
	)

	// ReviewerApprovedCount is a counter of approving a CL.
	ReviewerApprovedCount = metric.NewCounter(
		"rubber-stamper/reviewer/approved",
		"Counter of approving a CL",
		nil,
		field.String("host"),
		field.String("repo"),
		field.String("review_type"),
	)

	// ReviewerDeclinedCount is a counter of declining a CL.
	ReviewerDeclinedCount = metric.NewCounter(
		"rubber-stamper/reviewer/declined",
		"Counter of declining a CL",
		nil,
		field.String("host"),
		field.String("repo"),
		field.String("review_type"),
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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