Merge pull request #11971 from zhaoxiangchun/feature/zxc-monitor-resource-master

fix(monitor): update apiHelper field and log
This commit is contained in:
Zexi Li
2021-08-23 12:16:49 +08:00
committed by GitHub
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func SyncModelSets(mssOld IModelSets, s *mcclient.ClientSession, opt *Options) (
IncludeDetails: opt.IncludeDetails,
IncludeEmulated: includeEmulated,
InCludeOtherCloudEnv: opt.InCludeOtherCloudEnv,
InCludeOtherCloudEnv: opt.IncludeOtherCloudEnv,
})
if err != nil {
return
+1 -1
View File
@@ -24,5 +24,5 @@ type Options struct {
SyncInterval int
ListBatchSize int
IncludeDetails bool
InCludeOtherCloudEnv bool
IncludeOtherCloudEnv bool
}
@@ -94,7 +94,6 @@ func (e *InfluxdbExecutor) Query(ctx context.Context, dsInfo *tsdb.DataSource, t
}
dsInfo.Database = db
log.Errorf("rawQuery:%s", rawQuery)
req, err := e.createRequest(dsInfo, rawQuery)
if err != nil {
return nil, err
+1 -1
View File
@@ -41,7 +41,7 @@ func NewWorker(opts *options.AlerterOptions) worker.IWorker {
SyncInterval: opts.APISyncInterval,
ListBatchSize: opts.APIListBatchSize,
IncludeDetails: true,
InCludeOtherCloudEnv: true,
IncludeOtherCloudEnv: true,
}
apih, err := apihelper.NewAPIHelper(apiOpts, modelSets)
if err != nil {