(ctx context.Context, clusterId string, groupBy string, start, end time.Time, wheres []monitor.MonWhereItem, limit int)
| 145 | } |
| 146 | |
| 147 | func (i *imlCatalogueModule) statistics(ctx context.Context, clusterId string, groupBy string, start, end time.Time, wheres []monitor.MonWhereItem, limit int) (map[string]monitor.MonCommonData, error) { |
| 148 | executor, err := i.getExecutor(ctx, clusterId) |
| 149 | if err != nil { |
| 150 | return nil, err |
| 151 | } |
| 152 | result, err := executor.CommonStatistics(ctx, start, end, groupBy, limit, wheres) |
| 153 | if err != nil { |
| 154 | return nil, err |
| 155 | } |
| 156 | return result, nil |
| 157 | } |
| 158 | |
| 159 | func (i *imlCatalogueModule) genCommonWheres(ctx context.Context, clusterIds ...string) ([]monitor.MonWhereItem, error) { |
| 160 |
no test coverage detected