Skip to content

[8.5] [HealthAPI] Diagnosis: report typed affected resources (#90653)#90678

Merged
andreidan merged 2 commits intoelastic:8.5from
andreidan:backport/8.5/pr-90653
Oct 5, 2022
Merged

[8.5] [HealthAPI] Diagnosis: report typed affected resources (#90653)#90678
andreidan merged 2 commits intoelastic:8.5from
andreidan:backport/8.5/pr-90653

Conversation

@andreidan
Copy link
Copy Markdown
Contributor

Backports the following commits to 8.5:

The health API reports the affected resources in case of an unhealthy
deployment. Until now all indicators reported one type of resource per
diagnosis (index, ILM policy, snapshot repository)

With the introduction of the disk indicator we now have an indicator
that reports multiple types of resources under the same diagnosis (ie.
nodes and indices).

This changes the structure of the `affected_resources` field to
accommodate multiple types of resources:
```
"affected_resources": {
  "nodes": [
    {
      "id": "e1af6F5rTcmgpExkdOMzCg",
      "name": "hot"
    },
    {
      "id": "u_wBVl4ZRne4uZq_ziLsuw",
      "name": "warm"
    }
  ],
  "indices": [
    ".geoip_databases",
    "test_index"
  ]
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :Distributed/Health Issues for the health report API Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants