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

Method getExecutor

module/monitor/iml.go:1135–1141  ·  view source on GitHub ↗
(ctx context.Context, clusterId string)

Source from the content-addressed store, hash-verified

1133 return result, nil
1134}
1135func (i *imlMonitorStatisticModule) getExecutor(ctx context.Context, clusterId string) (driver.IExecutor, error) {
1136 info, err := i.monitorService.GetByCluster(ctx, clusterId)
1137 if err != nil {
1138 return nil, err
1139 }
1140 return driver.CreateExecutor(info.Driver, info.Config)
1141}
1142
1143func (i *imlMonitorStatisticModule) RequestSummary(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonSummaryOutput, error) {
1144 clusterId := cluster.DefaultClusterID

Callers 13

AIChartOverviewMethod · 0.95
RestChartOverviewMethod · 0.95
TopMethod · 0.95
APITrendMethod · 0.95
ProviderTrendMethod · 0.95
SubscriberTrendMethod · 0.95
MessageTrendMethod · 0.95
InvokeTrendMethod · 0.95
statisticsMethod · 0.95
RequestSummaryMethod · 0.95

Calls 2

CreateExecutorFunction · 0.92
GetByClusterMethod · 0.65

Tested by

no test coverage detected