Documentation ¶
Overview ¶
Package analytics contains business logic of preparing query analytics for UI.
Index ¶
- type Service
- func (s *Service) Get(ctx context.Context, in *qanpb.FiltersRequest) (*qanpb.FiltersReply, error)
- func (s *Service) GetLabels(ctx context.Context, in *qanpb.ObjectDetailsLabelsRequest) (*qanpb.ObjectDetailsLabelsReply, error)
- func (s *Service) GetMetrics(ctx context.Context, in *qanpb.MetricsRequest) (*qanpb.MetricsReply, error)
- func (s *Service) GetMetricsNames(_ context.Context, _ *qanpb.MetricsNamesRequest) (*qanpb.MetricsNamesReply, error)
- func (s *Service) GetQueryExample(ctx context.Context, in *qanpb.QueryExampleRequest) (*qanpb.QueryExampleReply, error)
- func (s *Service) GetReport(ctx context.Context, in *qanpb.ReportRequest) (*qanpb.ReportReply, error)
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 ¶
NewService create new insstance of Service.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, in *qanpb.FiltersRequest) (*qanpb.FiltersReply, error)
Get implements rpc to get list of available labels.
func (*Service) GetLabels ¶
func (s *Service) GetLabels(ctx context.Context, in *qanpb.ObjectDetailsLabelsRequest) (*qanpb.ObjectDetailsLabelsReply, error)
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 ¶
func (s *Service) GetMetricsNames(_ context.Context, _ *qanpb.MetricsNamesRequest) (*qanpb.MetricsNamesReply, error)
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.
Click to show internal directories.
Click to hide internal directories.