(ctx *gin.Context, dataType string, id string, input *monitor_dto.CommonInput)
| 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 { |
| 96 | case monitor_dto.DataTypeApi: |
| 97 | return i.module.APITrend(ctx, id, input) |
| 98 | case monitor_dto.DataTypeProvider: |
| 99 | return i.module.ProviderTrend(ctx, id, input) |
| 100 | case monitor_dto.DataTypeSubscriber: |
| 101 | return i.module.SubscriberTrend(ctx, id, input) |
| 102 | default: |
| 103 | return nil, "", fmt.Errorf("unsupported data type: %s", dataType) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func (i *imlMonitorStatisticController) InvokeTrendInner(ctx *gin.Context, dataType string, typ string, api string, provider string, subscriber string, input *monitor_dto.CommonInput) (*monitor_dto.MonInvokeCountTrend, string, error) { |
| 108 | if dataType == monitor_dto.DataTypeApi && typ == monitor_dto.DataTypeSubscriber || dataType == monitor_dto.DataTypeSubscriber && typ == monitor_dto.DataTypeApi { |
nothing calls this directly
no test coverage detected