metricsdebug

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Overview

Package metricsdebug contains the implementation of an API endpoint for metrics debug functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type MetricsDebug

type MetricsDebug interface {
	// GetMetrics returns all metrics stored by the state server.
	GetMetrics(arg params.Entities) (params.MetricResults, error)

	// SetMeterStatus will set the meter status on the given entity tag.
	SetMeterStatus(params.MeterStatusParams) (params.ErrorResults, error)
}

MetricsDebug defines the methods on the metricsdebug API end point.

type MetricsDebugAPI

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

MetricsDebugAPI implements the metricsdebug interface and is the concrete implementation of the api end point.

func (*MetricsDebugAPI) GetMetrics

func (api *MetricsDebugAPI) GetMetrics(args params.Entities) (params.MetricResults, error)

GetMetrics returns all metrics stored by the state server.

func (*MetricsDebugAPI) SetMeterStatus

func (api *MetricsDebugAPI) SetMeterStatus(args params.MeterStatusParams) (params.ErrorResults, error)

SetMeterStatus sets meter statuses for entities.

Jump to

Keyboard shortcuts

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