| 213 | } |
| 214 | |
| 215 | func (i *imlLogService) LogCount(ctx context.Context, driver string, cluster string, conditions map[string]string, spendHour int64, group string) (map[string]int64, error) { |
| 216 | d, has := log_driver.GetDriver(driver) |
| 217 | if !has { |
| 218 | return nil, errors.New("driver not found") |
| 219 | } |
| 220 | return d.LogCount(cluster, conditions, spendHour, group) |
| 221 | } |
| 222 | |
| 223 | func (i *imlLogService) LogInfo(ctx context.Context, driver string, cluster string, id string) (*Info, error) { |
| 224 | d, has := log_driver.GetDriver(driver) |