-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow restart to continue if observability index is yellow
Signed-off-by: Dan Bason <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
24 changes: 18 additions & 6 deletions
24
opensearch-operator/opensearch-gateway/responses/ClusterHealthResponse.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
package responses | ||
|
||
type ClusterHealthResponse struct { | ||
Status string `json:"status,omitempty"` | ||
ActiveShards int `json:"active_shards,omitempty"` | ||
RelocatingShards int `json:"relocating_shards,omitempty"` | ||
InitializingShards int `json:"initializing_shards,omitempty"` | ||
UnassignedShards int `json:"unassigned_shards,omitempty"` | ||
PercentActive float32 `json:"active_shards_percent_as_number,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
ActiveShards int `json:"active_shards,omitempty"` | ||
RelocatingShards int `json:"relocating_shards,omitempty"` | ||
InitializingShards int `json:"initializing_shards,omitempty"` | ||
UnassignedShards int `json:"unassigned_shards,omitempty"` | ||
PercentActive float32 `json:"active_shards_percent_as_number,omitempty"` | ||
Indices map[string]IndexHealth `json:"indices,omitempty"` | ||
} | ||
|
||
type IndexHealth struct { | ||
Status string `json:"status"` | ||
NumberOfShards int `json:"number_of_shards"` | ||
NumberOfReplicas int `json:"number_of_replicas"` | ||
ActivePrimaryShards int `json:"active_primary_shards"` | ||
ActiveShards int `json:"active_shards"` | ||
RelocatingShards int `json:"relocating_shards"` | ||
InitializingShards int `json:"initializing_shards"` | ||
UnassignedShards int `json:"unassigned_shards"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters