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

Method RequestSummary

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

Source from the content-addressed store, hash-verified

278}
279
280func (e *executor) RequestSummary(ctx context.Context, start time.Time, end time.Time, wheres []monitor.MonWhereItem) (*monitor.Summary, error) {
281 newStartTime, _, _, bucket := getTimeIntervalAndBucket(start, end)
282 return e.summary(ctx, newStartTime, end, bucket, formatFilter(wheres), &flux.StatisticsFilterConf{
283 Measurement: "request",
284 AggregateFn: "sum()",
285 Fields: []string{"total", "success", "s4xx", "s5xx"},
286 }, "")
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)

Callers

nothing calls this directly

Calls 3

summaryMethod · 0.95
getTimeIntervalAndBucketFunction · 0.85
formatFilterFunction · 0.85

Tested by

no test coverage detected