Skip to content

Commit b1431d3

Browse files
fix search_result file
1 parent 0303af5 commit b1431d3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

receiver/splunkenterprisereceiver/search_result.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var apiDict = map[string]string{
2626
`SplunkKVStoreStatus`: `/services/kvstore/status?output_mode=json`,
2727
`SplunkDispatchArtifacts`: `/services/server/status/dispatch-artifacts?output_mode=json&count=-1`,
2828
`SplunkHealth`: `/services/server/health/splunkd/details?output_mode=json`,
29+
`SplunkInfo`: `/services/server/info?output_mode=json`,
2930
`SplunkIndexerClusterManagerStatus`: `/services/cluster/manager/status?output_mode=json`,
3031
}
3132

@@ -172,3 +173,37 @@ type healthDetails struct {
172173
Health string `json:"health"`
173174
Features map[string]healthDetails `json:"features,omitempty"`
174175
}
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

Comments
 (0)