From a76e14fb049e077264c8f7836a195d2c225f05a1 Mon Sep 17 00:00:00 2001 From: Linu Elias Date: Fri, 20 Sep 2024 22:23:23 +0530 Subject: [PATCH] lint fix --- x-pack/metricbeat/module/gcp/metrics/metricset.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/metricbeat/module/gcp/metrics/metricset.go b/x-pack/metricbeat/module/gcp/metrics/metricset.go index 0cd1998dff1..f5b15d68fb3 100644 --- a/x-pack/metricbeat/module/gcp/metrics/metricset.go +++ b/x-pack/metricbeat/module/gcp/metrics/metricset.go @@ -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 @@ -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))