metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusMetrics

type PrometheusMetrics struct {
	// contains filtered or unexported fields
}

PrometheusMetrics is a value that provides a wrapper around Prometheus metrics for counting events in the system.

func New

New creates and returns a PrometheusMetrics initialised with prometheus counters.

func (*PrometheusMetrics) CountHook

func (m *PrometheusMetrics) CountHook(h scm.Webhook)

CountHook records this hook as having been received, along with it's kind.

func (*PrometheusMetrics) CountInvalidHook

func (m *PrometheusMetrics) CountInvalidHook()

CountInvalidHook records "bad" hooks, probably due to non-matching secrets.

Jump to

Keyboard shortcuts

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