metrics

package
v0.0.0-...-8f1e39b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Will return a middleware to instrument http routers.
	Instrument(serverLabel string, metricsCfg *config.MetricsConfig) func(next http.Handler) http.Handler
	// Will return a handler to expose metrics over a http server.
	GetExposeHandler() http.Handler
	// Will increase counter of S3 operations done by service.
	IncS3Operations(targetName, bucketName, operation string)
	// Will increase counter of authenticated user.
	IncAuthenticated(providerType, providerName string)
	// Will increase counter of authorized user.
	IncAuthorized(providerType string)
	// Will increase counter of succeed webhooks
	IncSucceedWebhooks(targetName, actionName string)
	// Will increase counter of failed webhooks
	IncFailedWebhooks(targetName, actionName string)
}

Client Client metrics interface.

func NewClient

func NewClient() Client

NewClient will generate a new client instance.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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