From 43ec3f0672513df590dc490c029a88a517acf77f Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Mon, 31 May 2021 08:21:55 -0600 Subject: [PATCH] fix comment --- x-pack/metricbeat/module/aws/cloudwatch/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/metricbeat/module/aws/cloudwatch/metadata.go b/x-pack/metricbeat/module/aws/cloudwatch/metadata.go index 75b3696295b..335f38e5b49 100644 --- a/x-pack/metricbeat/module/aws/cloudwatch/metadata.go +++ b/x-pack/metricbeat/module/aws/cloudwatch/metadata.go @@ -16,7 +16,7 @@ const ( namespaceEC2 = "AWS/EC2" ) -// addMetadata returns a service to fetch metadata from a config struct. +// addMetadata adds metadata to the given events map based on namespace func addMetadata(namespace string, endpoint string, regionName string, awsConfig awssdk.Config, events map[string]mb.Event) map[string]mb.Event { switch namespace { case namespaceEC2: