File: indices_settings_response.go

package info (click to toggle)
prometheus-elasticsearch-exporter 1.1.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 716 kB
  • sloc: makefile: 75; sh: 50
file content (24 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package collector

// IndicesSettingsResponse is a representation of Elasticsearch Settings for each Index
type IndicesSettingsResponse map[string]Index

// Index defines the struct of the tree for the settings of each index
type Index struct {
	Settings Settings `json:"settings"`
}

// Settings defines current index settings
type Settings struct {
	IndexInfo IndexInfo `json:"index"`
}

// IndexInfo defines the blocks of the current index
type IndexInfo struct {
	Blocks Blocks `json:"blocks"`
}

// Blocks defines whether current index has read_only_allow_delete enabled
type Blocks struct {
	ReadOnly string `json:"read_only_allow_delete"`
}