From 8bf6d1cf54ff3354042ea0fa0458f4944f783139 Mon Sep 17 00:00:00 2001 From: Corbin Phelps Date: Fri, 14 Sep 2018 13:29:27 -0400 Subject: [PATCH] Removed IP field from node unmarshalling --- CHANGELOG.md | 4 ++++ src/elasticsearch.go | 2 +- src/metric_definition.go | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c78323c..5408502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 0.1.2 - 2018-09-14 +### Changed +- Removed IP field from Node struct. It was not required as part of collection and could cause an error as the value could be a single string or an array of strings. + ## 0.1.1 - 2018-09-13 ### Added - Implemented client authentication diff --git a/src/elasticsearch.go b/src/elasticsearch.go index 0280e6f..b6921ea 100644 --- a/src/elasticsearch.go +++ b/src/elasticsearch.go @@ -25,7 +25,7 @@ type argumentList struct { const ( integrationName = "com.newrelic.elasticsearch" - integrationVersion = "0.1.1" + integrationVersion = "0.1.2" ) var ( diff --git a/src/metric_definition.go b/src/metric_definition.go index 832774b..5fbf2f3 100644 --- a/src/metric_definition.go +++ b/src/metric_definition.go @@ -157,7 +157,6 @@ type NodeCounts struct { type Node struct { Name *string `json:"name"` Host *string `json:"host"` - IP *string `json:"ip"` Indices *NodeIndices `json:"indices"` Breakers *NodeBreakers `json:"breakers"` Process *NodeProcess `json:"process"`