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

Method getExecutor

module/catalogue/iml.go:139–145  ·  view source on GitHub ↗
(ctx context.Context, clusterId string)

Source from the content-addressed store, hash-verified

137}
138
139func (i *imlCatalogueModule) getExecutor(ctx context.Context, clusterId string) (driver.IExecutor, error) {
140 info, err := i.monitorService.GetByCluster(ctx, clusterId)
141 if err != nil {
142 return nil, err
143 }
144 return driver.CreateExecutor(info.Driver, info.Config)
145}
146
147func (i *imlCatalogueModule) statistics(ctx context.Context, clusterId string, groupBy string, start, end time.Time, wheres []monitor.MonWhereItem, limit int) (map[string]monitor.MonCommonData, error) {
148 executor, err := i.getExecutor(ctx, clusterId)

Callers 1

statisticsMethod · 0.95

Calls 2

CreateExecutorFunction · 0.92
GetByClusterMethod · 0.65

Tested by

no test coverage detected