metrics

package
v2.0.0-beta-001+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointType  = "metrics"
	CLIENT_ID_KEY = "METRICS_CLIENT"
)

Variables

This section is empty.

Functions

func Init

Types

type EndpointMetricsRelation

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

type MetricsMetadata

type MetricsMetadata struct {
	Type         string
	URL          string
	Job          string
	EndpointGUID string
}

type MetricsProviderMetadata

type MetricsProviderMetadata struct {
	Type string `json:"type"`
	URL  string `json:"url"`
	Job  string `json:"job"`
}

type MetricsSpecification

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

func (*MetricsSpecification) AddAdminGroupRoutes

func (m *MetricsSpecification) AddAdminGroupRoutes(echoContext *echo.Group)

Metrics endpoints - admin

func (*MetricsSpecification) AddSessionGroupRoutes

func (m *MetricsSpecification) AddSessionGroupRoutes(echoContext *echo.Group)

Metrics API endpoints - non-admin

func (*MetricsSpecification) Connect

func (m *MetricsSpecification) Connect(ec echo.Context, cnsiRecord interfaces.CNSIRecord, userId string) (*interfaces.TokenRecord, bool, error)

func (*MetricsSpecification) GetClientId

func (m *MetricsSpecification) GetClientId() string

func (*MetricsSpecification) GetEndpointPlugin

func (m *MetricsSpecification) GetEndpointPlugin() (interfaces.EndpointPlugin, error)

func (*MetricsSpecification) GetMiddlewarePlugin

func (m *MetricsSpecification) GetMiddlewarePlugin() (interfaces.MiddlewarePlugin, error)

func (*MetricsSpecification) GetRoutePlugin

func (m *MetricsSpecification) GetRoutePlugin() (interfaces.RoutePlugin, error)

func (*MetricsSpecification) GetType

func (m *MetricsSpecification) GetType() string

func (*MetricsSpecification) Info

func (m *MetricsSpecification) Info(apiEndpoint string, skipSSLValidation bool) (interfaces.CNSIRecord, interface{}, error)

func (*MetricsSpecification) Init

func (m *MetricsSpecification) Init() error

func (*MetricsSpecification) Register

func (m *MetricsSpecification) Register(echoContext echo.Context) error

func (*MetricsSpecification) UpdateMetadata

func (m *MetricsSpecification) UpdateMetadata(info *interfaces.Info, userGUID string, echoContext echo.Context)

Jump to

Keyboard shortcuts

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