# Get the web app health check settings

This function returns the settings the scheduled web application
health check runs with.

These are the effective values, so a server whose settings have
never been changed reports the defaults rather than an empty
answer.

Endpoint: GET /WebApp/get_health_settings
Version: 11.138.0.19
Security: BasicAuth

## Response 200 fields (application/json):

  - `data` (object)

  - `data.auto_recovery` (integer)
    Whether the scheduled health check may take action on
an application at all.

* 1 — It may restart or otherwise repair an application.
* 0 — It takes no action on any application on the server. It still records what it finds, so the interface stays accurate.
    Enum: 0, 1

  - `data.cooldown` (integer)
    How long after the health check acts on an application before it may act on it again, in seconds.
    Example: 600

  - `data.daily_cap` (integer)
    The most times the health check may act on one application in a day. Past this, the fault is not transient and a person has to look at it.
    Example: 10

  - `data.notify_admin` (integer)
    Whether the server-wide alert emails anyone at all.

* 1 — Email it when too many of the server's web applications are unhealthy at once.
* 0 — Stay silent about it. This is the default; the pause on acting is not affected either way.
    Enum: 0, 1

  - `data.notify_target` (string)
    The account name or email address the server-wide
alert goes to when notify_admin is on, or an empty
string to send it to root, which is the default.

  - `data.sweep_interval` (integer)
    The shortest gap between two health check passes, in
seconds.

The floor is 300, the gap the installed schedule
delivers, so a shorter value is refused rather than
silently ignored. Raising it is how a busy server
checks less often.
    Example: 300

  - `metadata` (object)

  - `metadata.command` (string)
    The method name called.
    Example: "get_health_settings"

  - `metadata.namespace` (string)
    The namespace used in the API call.
    Example: "WebApp"

  - `metadata.reason` (string)
    The reason the API function failed when the metadata.result
field is 0. This field may display a success message when
a function succeeds.
    Example: "OK"

  - `metadata.result` (integer)
    * 1 - Success.
* 0 - Failed. Check the reason field for more details.
    Enum: 0, 1

  - `metadata.version` (integer)
    The version of the API function.
    Example: 1


