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

Method TopSubscriberStatistics

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

Source from the content-addressed store, hash-verified

1065}
1066
1067func (i *imlMonitorStatisticModule) TopSubscriberStatistics(ctx context.Context, limit int, input *monitor_dto.CommonInput) ([]*monitor_dto.ServiceStatisticItem, error) {
1068 clusterId := cluster.DefaultClusterID
1069 _, err := i.clusterService.Get(ctx, clusterId)
1070 if err != nil {
1071 return nil, err
1072 }
1073 return i.topProjectStatistics(ctx, clusterId, "app", input, limit)
1074}
1075
1076func (i *imlMonitorStatisticModule) TopProviderStatistics(ctx context.Context, limit int, input *monitor_dto.CommonInput) ([]*monitor_dto.ServiceStatisticItem, error) {
1077 clusterId := cluster.DefaultClusterID

Callers

nothing calls this directly

Calls 2

topProjectStatisticsMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected