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

Method RequestSummary

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

Source from the content-addressed store, hash-verified

1141}
1142
1143func (i *imlMonitorStatisticModule) RequestSummary(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonSummaryOutput, error) {
1144 clusterId := cluster.DefaultClusterID
1145 wheres, err := i.genCommonWheres(ctx, clusterId)
1146 if err != nil {
1147 return nil, err
1148 }
1149 executor, err := i.getExecutor(ctx, clusterId)
1150 if err != nil {
1151 return nil, err
1152
1153 }
1154 summary, err := executor.RequestSummary(ctx, formatTimeByMinute(input.Start), formatTimeByMinute(input.End), wheres)
1155 if err != nil {
1156 return nil, err
1157 }
1158
1159 return monitor_dto.ToMonSummaryOutput(summary), nil
1160}
1161
1162func (i *imlMonitorStatisticModule) ProxySummary(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonSummaryOutput, error) {
1163 clusterId := cluster.DefaultClusterID

Callers

nothing calls this directly

Calls 4

genCommonWheresMethod · 0.95
getExecutorMethod · 0.95
formatTimeByMinuteFunction · 0.70
RequestSummaryMethod · 0.65

Tested by

no test coverage detected