juju: github.com/juju/juju/apiserver/facades/client/metricsdebug Index | Files

package metricsdebug

import "github.com/juju/juju/apiserver/facades/client/metricsdebug"

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


Package Files


type MetricsDebug Uses

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 Uses

type MetricsDebugAPI struct {
    // contains filtered or unexported fields

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

func NewMetricsDebugAPI Uses

func NewMetricsDebugAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*MetricsDebugAPI, error)

NewMetricsDebugAPI creates a new API endpoint for calling metrics debug functions.

func (*MetricsDebugAPI) GetMetrics Uses

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

GetMetrics returns all metrics stored by the state server.

func (*MetricsDebugAPI) SetMeterStatus Uses

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

SetMeterStatus sets meter statuses for entities.

Package metricsdebug imports 9 packages (graph) and is imported by 4 packages. Updated 2020-07-20. Refresh now. Tools for package owners.