From 8daeb287b590c7855f9a96ee49132551b8bd2429 Mon Sep 17 00:00:00 2001 From: Bharadwajshivam28 Date: Tue, 8 Oct 2024 15:22:55 +0530 Subject: [PATCH] feat: formatted elk files Signed-off-by: Bharadwajshivam28 --- metrics-operator/controllers/common/providers/elk/elk.go | 4 ++-- metrics-operator/controllers/common/providers/elk/elk_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics-operator/controllers/common/providers/elk/elk.go b/metrics-operator/controllers/common/providers/elk/elk.go index 7b03c1fd9d..154759b7ef 100644 --- a/metrics-operator/controllers/common/providers/elk/elk.go +++ b/metrics-operator/controllers/common/providers/elk/elk.go @@ -7,9 +7,9 @@ import ( "strings" "time" + elastic "github.com/elastic/go-elasticsearch/v8" "github.com/go-logr/logr" metricsapi "github.com/keptn/lifecycle-toolkit/metrics-operator/api/v1" - elastic "github.com/elastic/go-elasticsearch/v8" "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -148,4 +148,4 @@ func (r *KeptnElasticProvider) extractMetric(result map[string]interface{}) (str value := fmt.Sprintf("%d", response.Hits.Total.Value) return value, nil -} \ No newline at end of file +} diff --git a/metrics-operator/controllers/common/providers/elk/elk_test.go b/metrics-operator/controllers/common/providers/elk/elk_test.go index bbbc1fd7d6..9484f4cb1d 100644 --- a/metrics-operator/controllers/common/providers/elk/elk_test.go +++ b/metrics-operator/controllers/common/providers/elk/elk_test.go @@ -229,4 +229,4 @@ func TestKeptnElasticProvider_extractMetric(t *testing.T) { } }) } -} \ No newline at end of file +}