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

Method ProxySummary

module/monitor/iml.go:1162–1179  ·  view source on GitHub ↗
(ctx context.Context, input *monitor_dto.CommonInput)

Source from the content-addressed store, hash-verified

1160}
1161
1162func (i *imlMonitorStatisticModule) ProxySummary(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonSummaryOutput, error) {
1163 clusterId := cluster.DefaultClusterID
1164 wheres, err := i.genCommonWheres(ctx, clusterId)
1165 if err != nil {
1166 return nil, err
1167 }
1168 executor, err := i.getExecutor(ctx, clusterId)
1169 if err != nil {
1170 return nil, err
1171
1172 }
1173 summary, err := executor.ProxySummary(ctx, formatTimeByMinute(input.Start), formatTimeByMinute(input.End), wheres)
1174 if err != nil {
1175 return nil, err
1176 }
1177
1178 return monitor_dto.ToMonSummaryOutput(summary), nil
1179}
1180
1181var (
1182 _ IMonitorConfigModule = (*imlMonitorConfig)(nil)

Callers

nothing calls this directly

Calls 4

genCommonWheresMethod · 0.95
getExecutorMethod · 0.95
formatTimeByMinuteFunction · 0.70
ProxySummaryMethod · 0.65

Tested by

no test coverage detected