Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class Instance.
An Instance resource is the computing unit that App Engine uses to automatically scale an application.
Generated from protobuf message google.appengine.v1.Instance
Namespace
Google \ Cloud \ AppEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Full path to the Instance resource in the API. Example: apps/myapp/services/default/versions/v1/instances/instance-1
.
↳ id
string
Output only. Relative name of the instance within the version. Example: instance-1
.
↳ app_engine_release
string
Output only. App Engine release this instance is running on.
↳ availability
int
Output only. Availability of the instance.
↳ vm_name
string
Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
↳ vm_zone_name
string
Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment.
↳ vm_id
string
Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment.
↳ start_time
↳ 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|string
Output only. Total memory in use (bytes).
↳ vm_status
string
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
string
Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment.
↳ vm_liveness
int
Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.
getName
Output only. Full path to the Instance resource in the API.
Example: apps/myapp/services/default/versions/v1/instances/instance-1
.
string
setName
Output only. Full path to the Instance resource in the API.
Example: apps/myapp/services/default/versions/v1/instances/instance-1
.
var
string
$this
getId
Output only. Relative name of the instance within the version.
Example: instance-1
.
string
setId
Output only. Relative name of the instance within the version.
Example: instance-1
.
var
string
$this
getAppEngineRelease
Output only. App Engine release this instance is running on.
string
setAppEngineRelease
Output only. App Engine release this instance is running on.
var
string
$this
getAvailability
Output only. Availability of the instance.
int
setAvailability
Output only. Availability of the instance.
var
int
$this
getVmName
Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
string
setVmName
Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
var
string
$this
getVmZoneName
Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment.
string
setVmZoneName
Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment.
var
string
$this
getVmId
Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment.
string
setVmId
Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment.
var
string
$this
getStartTime
Output only. Time that this instance was started.
@OutputOnly
hasStartTime
clearStartTime
setStartTime
Output only. Time that this instance was started.
@OutputOnly
$this
getRequests
Output only. Number of requests since this instance was started.
int
setRequests
Output only. Number of requests since this instance was started.
var
int
$this
getErrors
Output only. Number of errors since this instance was started.
int
setErrors
Output only. Number of errors since this instance was started.
var
int
$this
getQps
Output only. Average queries per second (QPS) over the last minute.
float
setQps
Output only. Average queries per second (QPS) over the last minute.
var
float
$this
getAverageLatency
Output only. Average latency (ms) over the last minute.
int
setAverageLatency
Output only. Average latency (ms) over the last minute.
var
int
$this
getMemoryUsage
Output only. Total memory in use (bytes).
int|string
setMemoryUsage
Output only. Total memory in use (bytes).
var
int|string
$this
getVmStatus
Output only. Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
string
setVmStatus
Output only. Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
var
string
$this
getVmDebugEnabled
Output only. Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment.
bool
setVmDebugEnabled
Output only. Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment.
var
bool
$this
getVmIp
Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment.
string
setVmIp
Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment.
var
string
$this
getVmLiveness
Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.
int
setVmLiveness
Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.
var
int
$this