MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ProxySummary

Method ProxySummary

module/monitor/driver/influxdb-v2/executor.go:289–296  ·  view source on GitHub ↗
(ctx context.Context, start time.Time, end time.Time, wheres []monitor.MonWhereItem)

Source from the content-addressed store, hash-verified

287}
288
289func (e *executor) ProxySummary(ctx context.Context, start time.Time, end time.Time, wheres []monitor.MonWhereItem) (*monitor.Summary, error) {
290 newStartTime, _, _, bucket := getTimeIntervalAndBucket(start, end)
291 return e.summary(ctx, newStartTime, end, bucket, formatFilter(wheres), &flux.StatisticsFilterConf{
292 Measurement: "proxy",
293 AggregateFn: "sum()",
294 Fields: []string{"p_total", "p_success", "p_s4xx", "p_s5xx"},
295 }, "p_")
296}
297
298func (e *executor) CommonStatistics(ctx context.Context, start, end time.Time, groupBy string, limit int, wheres []monitor.MonWhereItem) (map[string]monitor.MonCommonData, error) {
299 filters := formatFilter(wheres)

Callers

nothing calls this directly

Calls 3

summaryMethod · 0.95
getTimeIntervalAndBucketFunction · 0.85
formatFilterFunction · 0.85

Tested by

no test coverage detected