# ECE C

**URL:** <https://discuss.elastic.co/t/ece-c/189791>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 10, 2019, 2:09pm UTC](https://discuss.elastic.co/t/ece-c/189791 "2019-07-10T14:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesNotJamez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesnotjamez/32/45736_2.png) [@JamesNotJamez](https://discuss.elastic.co/u/JamesNotJamez)\
**Post date:** [July 10, 2019, 2:09pm UTC](https://discuss.elastic.co/t/ece-c/189791/1 "2019-07-10T14:09:15Z")

</div>

I can check my deployment health simply with the API, but then determining the reason for it being unhealthy is more complicated (parsing through the JSON and finding all the healthy: false occurrences)  
I was wondering if there is an API that would get the cause of a deployment being unhealthy? I know it appears with a reason in the UI.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [July 10, 2019, 6:20pm UTC](https://discuss.elastic.co/t/ece-c/189791/2 "2019-07-10T18:20:57Z")

</div>

Unfortunately the `reason` info in the UI is generated by "parsing through the JSON and finding all the `healthy: false` occurrences"!

If it's any consolation, the JSON format is at least documented: [https://www.elastic.co/guide/en/cloud-enterprise/current/definitions.html#ElasticsearchClusterInfo](https://www.elastic.co/guide/en/cloud-enterprise/current/definitions.html#ElasticsearchClusterInfo)

I do like the idea of the API generating a list of `reason` fields instead of the UI so that API consumers can take advantage of it. I'll open an issue to discuss internally

Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 24, 2019, 6:20pm UTC](https://discuss.elastic.co/t/ece-c/189791/3 "2019-07-24T18:20:59Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
