(ctx context.Context, input *monitor_dto.CommonInput)
| 1160 | } |
| 1161 | |
| 1162 | func (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 | |
| 1181 | var ( |
| 1182 | _ IMonitorConfigModule = (*imlMonitorConfig)(nil) |
nothing calls this directly
no test coverage detected