# Class Instance (1.18.0)

1.18.0 (latest) 1.17.0 1.16.0 1.15.0 1.14.2 1.13.0 1.12.1 1.11.5 1.10.0 1.9.4 1.8.1 1.7.1 1.6.0 1.5.3 1.4.1 1.3.3 1.2.1 1.1.5 1.0.2 0.2.0 0.1.0

    Instance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An Instance resource is the computing unit that App Engine
uses to automatically scale an application.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. |
| `id` | `str` Output only. Relative name of the instance within the version. Example: `instance-1`. |
| `app_engine_release` | `str` Output only. App Engine release this instance is running on. |
| `availability` | `https://docs.cloud.google.com/python/docs/reference/appengine/latest/google.cloud.appengine_admin_v1.types.Instance.Availability` Output only. Availability of the instance. |
| `vm_name` | `str` Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. |
| `vm_zone_name` | `str` Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. |
| `vm_id` | `str` Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. |
| `start_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time that this instance was started. @OutputOnly |
| `requests` | `int` Output only. Number of requests since this instance was started. |
| `errors` | `int` Output only. Number of errors since this instance was started. |
| `qps` | `float` Output only. Average queries per second (QPS) over the last minute. |
| `average_latency` | `int` Output only. Average latency (ms) over the last minute. |
| `memory_usage` | `int` Output only. Total memory in use (bytes). |
| `vm_status` | `str` Output only. Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. |
| `vm_debug_enabled` | `bool` Output only. Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment. |
| `vm_ip` | `str` Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment. |
| `vm_liveness` | `https://docs.cloud.google.com/python/docs/reference/appengine/latest/google.cloud.appengine_admin_v1.types.Instance.Liveness.LivenessState` Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment. |

## Classes

### Availability

    Availability(value)

Availability of the instance.

### Liveness

    Liveness(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Wrapper for LivenessState enum.