# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::Instance (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::Instance.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #app_engine_release

    def app_engine_release() -> ::String

**Returns**

- (::String) --- Output only. App Engine release this instance is running on.

### #availability

    def availability() -> ::Google::Cloud::AppEngine::V1::Instance::Availability

**Returns**

- ([::Google::Cloud::AppEngine::V1::Instance::Availability](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-Instance-Availability)) --- Output only. Availability of the instance.

### #average_latency

    def average_latency() -> ::Integer

**Returns**

- (::Integer) --- Output only. Average latency (ms) over the last minute.

### #errors

    def errors() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of errors since this instance was started.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Output only. Relative name of the instance within the version. Example: `instance-1`.

### #memory_usage

    def memory_usage() -> ::Integer

**Returns**

- (::Integer) --- Output only. Total memory in use (bytes).

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.

### #qps

    def qps() -> ::Float

**Returns**

- (::Float) --- Output only. Average queries per second (QPS) over the last minute.

### #requests

    def requests() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of requests since this instance was started.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time that this instance was started.

### #vm_debug_enabled

    def vm_debug_enabled() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment.

### #vm_id

    def vm_id() -> ::String

**Returns**

- (::String) --- Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment.

### #vm_ip

    def vm_ip() -> ::String

**Returns**

- (::String) --- Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment.

### #vm_liveness

    def vm_liveness() -> ::Google::Cloud::AppEngine::V1::Instance::Liveness::LivenessState

**Returns**

- ([::Google::Cloud::AppEngine::V1::Instance::Liveness::LivenessState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-Instance-Liveness-LivenessState)) --- Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.

### #vm_name

    def vm_name() -> ::String

**Returns**

- (::String) --- Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.

### #vm_status

    def vm_status() -> ::String

**Returns**

- (::String) --- Output only. Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.

### #vm_zone_name

    def vm_zone_name() -> ::String

**Returns**

- (::String) --- Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment.