Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type AvgDurationCard struct + func (r *AvgDurationCard) GetCard(ctx context.Context) (*ServiceCard, error) + type BaseCard struct + EndTime int64 + FuzzyPath bool + Layer common.TransactionLayerType + LayerPath string + Metric metricpb.MetricServiceServer + ServiceId string + StartTime int64 + TenantId string + func (b *BaseCard) QueryAsServiceCard(ctx context.Context, statement string, params map[string]*structpb.Value, ...) (*ServiceCard, error) + type Card interface + GetCard func(ctx context.Context) (*ServiceCard, error) + type CardType string + const CardTypeAvgDuration + const CardTypeErrorCount + const CardTypeErrorRate + const CardTypeReqCount + const CardTypeRps + const CardTypeSlowCount + type ErrorCountCard struct + func (r *ErrorCountCard) GetCard(ctx context.Context) (*ServiceCard, error) + type ErrorRateCard struct + func (r *ErrorRateCard) GetCard(ctx context.Context) (*ServiceCard, error) + type ReqCountCard struct + func (r *ReqCountCard) GetCard(ctx context.Context) (*ServiceCard, error) + type RpsCard struct + func (r *RpsCard) GetCard(ctx context.Context) (*ServiceCard, error) + type ServiceCard struct + Name string + Unit string + Value float64 + func GetCard(ctx context.Context, cardType CardType, baseCard *BaseCard) (*ServiceCard, error) + type SlowCountCard struct + func (r *SlowCountCard) GetCard(ctx context.Context) (*ServiceCard, error)