chart

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetChartUnitDefault

func GetChartUnitDefault(chartType pb.ChartType, lang i18n.LanguageCodes, i18n i18n.Translator) string

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 AvgDurationDistributionChart

type AvgDurationDistributionChart struct {
	*BaseChart
}

func (*AvgDurationDistributionChart) GetChart

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

type BaseChart

type BaseChart struct {
	StartTime int64
	EndTime   int64
	Interval  string
	TenantId  string
	ServiceId string
	Layers    []common.TransactionLayerType
	LayerPath string
	FuzzyPath bool
	Metric    metricpb.MetricServiceServer
}

type Chart

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

type ErrorCountChart

type ErrorCountChart struct {
	*BaseChart
}

func (*ErrorCountChart) GetChart

func (errorCount *ErrorCountChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

type ErrorDurationDistributionChart

type ErrorDurationDistributionChart struct {
	*BaseChart
}

func (*ErrorDurationDistributionChart) GetChart

func (avgDuration *ErrorDurationDistributionChart) 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)

type SlowCountChart

type SlowCountChart struct {
	*BaseChart
}

func (*SlowCountChart) GetChart

func (slowCount *SlowCountChart) GetChart(ctx context.Context) (*pb.ServiceChart, error)

type SlowDurationDistributionChart

type SlowDurationDistributionChart struct {
	*BaseChart
}

func (*SlowDurationDistributionChart) GetChart

func (avgDuration *SlowDurationDistributionChart) 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