(ctx context.Context, limit int, input *monitor_dto.CommonInput)
| 1074 | } |
| 1075 | |
| 1076 | func (i *imlMonitorStatisticModule) TopProviderStatistics(ctx context.Context, limit int, input *monitor_dto.CommonInput) ([]*monitor_dto.ServiceStatisticItem, error) { |
| 1077 | clusterId := cluster.DefaultClusterID |
| 1078 | _, err := i.clusterService.Get(ctx, clusterId) |
| 1079 | if err != nil { |
| 1080 | return nil, err |
| 1081 | } |
| 1082 | return i.topProjectStatistics(ctx, clusterId, "provider", input, limit) |
| 1083 | } |
| 1084 | |
| 1085 | func (i *imlMonitorStatisticModule) topProjectStatistics(ctx context.Context, clusterId string, groupBy string, input *monitor_dto.CommonInput, limit int) ([]*monitor_dto.ServiceStatisticItem, error) { |
| 1086 | wheres, err := i.genCommonWheres(ctx, clusterId) |
nothing calls this directly
no test coverage detected