Skip to content

Commit

Permalink
Refactored structs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Barbun committed May 13, 2024
1 parent d1c97fb commit b08e69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b08e69d

Please sign in to comment.