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 ¶
func New(reg prometheus.Registerer) *PrometheusMetrics
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.
Click to show internal directories.
Click to hide internal directories.