From b08e69d4abadd7d556a57592a282580736abf13d Mon Sep 17 00:00:00 2001 From: Roman Barbun Date: Mon, 13 May 2024 17:31:06 +1000 Subject: [PATCH] Refactored structs. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a9bd677..05fdd39 100644 --- a/main.go +++ b/main.go @@ -28,11 +28,11 @@ type Solr struct { // Struct that only holds selected metrics. type Metrics struct { + Version string `json:"CONTAINER.version.specification,omitempty"` Name string `json:"CORE.coreName,omitempty"` StartTime string `json:"CORE.startTime,omitempty"` NumDocs int `json:"SEARCHER.searcher.numDocs,omitempty"` IndexSize string `json:"INDEX.size,omitempty"` - Version string `json:"CONTAINER.version.specification,omitempty"` } // A copy of Metrics struct but with flattened json keys.