Codegen: Generate Golang code using cog (#98812)
* Use cog for Go types * Delete old generation code * Fix plugins generation * workspaces update * Update datasources with new generated code * More fixes * Update swagger and openapi specs * Fixes * More files... * Update workspace * More fixes... * Remove unused functions
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
"github.com/grafana/grafana/pkg/tsdb/cloudwatch/kinds/dataquery"
|
||||
"github.com/grafana/grafana/pkg/tsdb/cloudwatch/models"
|
||||
"github.com/grafana/grafana/pkg/tsdb/cloudwatch/utils"
|
||||
)
|
||||
|
||||
const initialAlertPollPeriod = time.Second
|
||||
@@ -39,9 +38,9 @@ var executeSyncLogQuery = func(ctx context.Context, e *cloudWatchExecutor, req *
|
||||
logsQuery.QueryString = *logsQuery.Expression
|
||||
}
|
||||
|
||||
region := utils.Depointerizer(logsQuery.Region)
|
||||
region := logsQuery.Region
|
||||
if region == "" || region == defaultRegion {
|
||||
logsQuery.Region = utils.Pointer(instance.Settings.Region)
|
||||
logsQuery.Region = instance.Settings.Region
|
||||
}
|
||||
|
||||
logsClient, err := e.getCWLogsClient(ctx, req.PluginContext, region)
|
||||
|
||||
Reference in New Issue
Block a user