(ctx *gin.Context, dataType string, input *monitor_dto.StatisticInput)
| 79 | } |
| 80 | |
| 81 | func (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 | |
| 94 | func (i *imlMonitorStatisticController) InvokeTrend(ctx *gin.Context, dataType string, id string, input *monitor_dto.CommonInput) (*monitor_dto.MonInvokeCountTrend, string, error) { |
| 95 | switch dataType { |
nothing calls this directly
no test coverage detected