MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Statistics

Method Statistics

controller/monitor/iml.go:81–92  ·  view source on GitHub ↗
(ctx *gin.Context, dataType string, input *monitor_dto.StatisticInput)

Source from the content-addressed store, hash-verified

79}
80
81func (i *imlMonitorStatisticController) Statistics(ctx *gin.Context, dataType string, input *monitor_dto.StatisticInput) (interface{}, error) {
82 switch dataType {
83 case monitor_dto.DataTypeApi:
84 return i.module.ApiStatistics(ctx, input)
85 case monitor_dto.DataTypeProvider:
86 return i.module.ProviderStatistics(ctx, input)
87 case monitor_dto.DataTypeSubscriber:
88 return i.module.SubscriberStatistics(ctx, input)
89 default:
90 return nil, fmt.Errorf("unsupported data type: %s", dataType)
91 }
92}
93
94func (i *imlMonitorStatisticController) InvokeTrend(ctx *gin.Context, dataType string, id string, input *monitor_dto.CommonInput) (*monitor_dto.MonInvokeCountTrend, string, error) {
95 switch dataType {

Callers

nothing calls this directly

Calls 3

ApiStatisticsMethod · 0.65
ProviderStatisticsMethod · 0.65
SubscriberStatisticsMethod · 0.65

Tested by

no test coverage detected