# Google Cloud Notebooks V1 Client - Class GetInstanceHealthResponse (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V1 Client class GetInstanceHealthResponse.

Response for checking if a notebook instance is healthy.

Generated from protobuf message `google.cloud.notebooks.v1.GetInstanceHealthResponse`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ health_state` | `int` Output only. Runtime health_state. |
| `↳ health_info` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" } |

### getHealthState

Output only. Runtime health_state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [HealthState](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.GetInstanceHealthResponse.HealthState). |

### setHealthState

Output only. Runtime health_state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [HealthState](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.GetInstanceHealthResponse.HealthState). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHealthInfo

Output only. Additional information about instance health.

Example:
healthInfo": {
"docker_proxy_agent_status": "1",
"docker_status": "1",
"jupyterlab_api_status": "-1",
"jupyterlab_status": "-1",
"updated": "2020-10-18 09:40:03.573409"
}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setHealthInfo

Output only. Additional information about instance health.

Example:
healthInfo": {
"docker_proxy_agent_status": "1",
"docker_status": "1",
"jupyterlab_api_status": "-1",
"jupyterlab_status": "-1",
"updated": "2020-10-18 09:40:03.573409"
}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |