Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Linu-Elias committed Sep 20, 2024
1 parent fd7a7b8 commit a76e14f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x-pack/metricbeat/module/gcp/metrics/metricset.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ type config struct {
CredentialsJSON string `config:"credentials_json"`
Endpoint string `config:"endpoint"`

opt []option.ClientOption
period *durationpb.Duration
organizationID string
organizationName string
projectName string
opt []option.ClientOption
period *durationpb.Duration
organizationID string
organizationName string
projectName string
}

// New creates a new instance of the MetricSet. New is responsible for unpacking
Expand Down Expand Up @@ -144,7 +144,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
} else {
return m, fmt.Errorf("no credentials_file_path or credentials_json specified")
}

if m.config.Endpoint != "" {
m.Logger().Warnf("You are using a custom endpoint '%s' for the GCP API calls.", m.config.Endpoint)
m.config.opt = append(m.config.opt, option.WithEndpoint(m.config.Endpoint))
Expand Down

0 comments on commit a76e14f

Please sign in to comment.