(ctx context.Context, input *monitor_dto.CommonInput)
| 1141 | } |
| 1142 | |
| 1143 | func (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 | |
| 1162 | func (i *imlMonitorStatisticModule) ProxySummary(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonSummaryOutput, error) { |
| 1163 | clusterId := cluster.DefaultClusterID |
nothing calls this directly
no test coverage detected