analitycs

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements gRPC service to communicate with QAN-APP.

func NewService

func NewService(rm models.Reporter, mm models.Metrics) *Service

NewService create new insstance of Service.

func (*Service) Get

Get implements rpc to get list of available labels.

func (*Service) GetLabels

GetLabels gets labels in given time range for object.

func (*Service) GetMetrics

func (s *Service) GetMetrics(ctx context.Context, in *qanpb.MetricsRequest) (*qanpb.MetricsReply, error)

GetMetrics implements rpc to get metrics for specific filtering.

func (*Service) GetMetricsNames

GetMetricsNames implements rpc to get list of available metrics.

func (*Service) GetQueryExample

func (s *Service) GetQueryExample(ctx context.Context, in *qanpb.QueryExampleRequest) (*qanpb.QueryExampleReply, error)

GetQueryExample gets query examples in given time range for queryid.

func (*Service) GetReport

func (s *Service) GetReport(ctx context.Context, in *qanpb.ReportRequest) (*qanpb.ReportReply, error)

GetReport implements rpc to get report for given filtering.

Jump to

Keyboard shortcuts

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