chart

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Layout = "2006-01-02T15:04:05Z"

Variables

This section is empty.

Functions

func Selector

func Selector(chartType string, baseChart *BaseChart, ctx context.Context) (*pb.ServiceChart, error)

Types

type AvgDurationChart

type AvgDurationChart struct {
	*BaseChart
}

func (*AvgDurationChart) GetChart

func (avgDuration *AvgDurationChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

type BaseChart

type BaseChart struct {
	StartTime int64
	EndTime   int64
	Interval  string
	TenantId  string
	ServiceId string
	Metric    metricpb.MetricServiceServer
}

type Chart

type Chart interface {
	GetChart(ctx context.Context) (*pb.ServiceChart, error)
}

type ErrorRateChart

type ErrorRateChart struct {
	*BaseChart
}

func (*ErrorRateChart) GetChart

func (errorRate *ErrorRateChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

type HttpCodeChart

type HttpCodeChart struct {
	*BaseChart
}

func (*HttpCodeChart) GetChart

func (httpCode *HttpCodeChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

type RpsChart

type RpsChart struct {
	*BaseChart
}

func (*RpsChart) GetChart

func (rps *RpsChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

Jump to

Keyboard shortcuts

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