Documentation ¶
Index ¶
- Constants
- func GetChartUnitDefault(chartType pb.ChartType, lang i18n.LanguageCodes, i18n i18n.Translator) string
- func Selector(chartType string, baseChart *BaseChart, ctx context.Context) (*pb.ServiceChart, error)
- type AvgDurationChart
- type AvgDurationDistributionChart
- type BaseChart
- type Chart
- type ErrorCountChart
- type ErrorDurationDistributionChart
- type ErrorRateChart
- type HttpCodeChart
- type RpsChart
- type SlowCountChart
- type SlowDurationDistributionChart
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
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 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 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)
Click to show internal directories.
Click to hide internal directories.