From 127ea63eebb043c25b0f4cfe51fa3d81ea267bf5 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Tue, 11 Feb 2020 04:59:04 -0800 Subject: [PATCH] Adding explanatory comment for nodeInfo --- metricbeat/module/logstash/node_stats/data_xpack.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metricbeat/module/logstash/node_stats/data_xpack.go b/metricbeat/module/logstash/node_stats/data_xpack.go index 924a8aaba9c..442bf43ebf2 100644 --- a/metricbeat/module/logstash/node_stats/data_xpack.go +++ b/metricbeat/module/logstash/node_stats/data_xpack.go @@ -98,6 +98,9 @@ type nodeInfo struct { Pipeline pipeline `json:"pipeline"` } +// inNodeInfo represents the Logstash node info to be parsed from the Logstash API +// response. It contains nodeInfo (which is also used as-is elsewhere) + monitoring +// information. type inNodeInfo struct { nodeInfo Monitoring struct {