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

Method TopProviderStatistics

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

Source from the content-addressed store, hash-verified

1074}
1075
1076func (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
1085func (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)

Callers

nothing calls this directly

Calls 2

topProjectStatisticsMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected