@@ -26,6 +26,7 @@ var apiDict = map[string]string{
26
26
`SplunkKVStoreStatus` : `/services/kvstore/status?output_mode=json` ,
27
27
`SplunkDispatchArtifacts` : `/services/server/status/dispatch-artifacts?output_mode=json&count=-1` ,
28
28
`SplunkHealth` : `/services/server/health/splunkd/details?output_mode=json` ,
29
+ `SplunkInfo` : `/services/server/info?output_mode=json` ,
29
30
`SplunkIndexerClusterManagerStatus` : `/services/cluster/manager/status?output_mode=json` ,
30
31
}
31
32
@@ -172,3 +173,37 @@ type healthDetails struct {
172
173
Health string `json:"health"`
173
174
Features map [string ]healthDetails `json:"features,omitempty"`
174
175
}
176
+
177
+ // '/services/server/info'
178
+ type Info struct {
179
+ Host string `json:"origin"`
180
+ Entries []InfoEntry `json:"entry"`
181
+ }
182
+
183
+ type InfoEntry struct {
184
+ Content InfoContent `json:"content"`
185
+ }
186
+
187
+ type InfoContent struct {
188
+ Build string `json:"build"`
189
+ Version string `json:"version"`
190
+ }
191
+
192
+ type infoDict map [any ]Info
193
+
194
+ // '/services/cluster/manager/status'
195
+ type indexersClusterManagerStatus struct {
196
+ Entries []idxClusterManagerStatusEntry `json:"entry"`
197
+ }
198
+ type idxClusterManagerStatusEntry struct {
199
+ Name string `json:"name"`
200
+ Content idxClusterManagerStatusContent `json:"content"`
201
+ }
202
+
203
+ type idxClusterManagerStatusContent struct {
204
+ RollingRestartFlag bool `json:"rolling_restart_flag,omitempty"`
205
+ RollingRestartOrUpgrade bool `json:"rolling_restart_or_upgrade,omitempty"`
206
+ RollingRestartType string `json:"rolling_restart_type,omitempty"`
207
+ SearchableRolling bool `json:"searchable_rolling,omitempty"`
208
+ ServiceReadyFlag bool `json:"service_ready_flag,omitempty"`
209
+ }
0 commit comments