MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / statistics

Method statistics

module/catalogue/iml.go:147–157  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, groupBy string, start, end time.Time, wheres []monitor.MonWhereItem, limit int)

Source from the content-addressed store, hash-verified

145}
146
147func (i *imlCatalogueModule) statistics(ctx context.Context, clusterId string, groupBy string, start, end time.Time, wheres []monitor.MonWhereItem, limit int) (map[string]monitor.MonCommonData, error) {
148 executor, err := i.getExecutor(ctx, clusterId)
149 if err != nil {
150 return nil, err
151 }
152 result, err := executor.CommonStatistics(ctx, start, end, groupBy, limit, wheres)
153 if err != nil {
154 return nil, err
155 }
156 return result, nil
157}
158
159func (i *imlCatalogueModule) genCommonWheres(ctx context.Context, clusterIds ...string) ([]monitor.MonWhereItem, error) {
160

Callers 1

ProviderStatisticsMethod · 0.95

Calls 2

getExecutorMethod · 0.95
CommonStatisticsMethod · 0.65

Tested by

no test coverage detected