pub struct Instance {Show 15 fields
pub name: String,
pub id: String,
pub app_engine_release: String,
pub availability: i32,
pub vm_name: String,
pub vm_zone_name: String,
pub vm_id: String,
pub start_time: Option<Timestamp>,
pub requests: i32,
pub errors: i32,
pub qps: f32,
pub average_latency: i32,
pub memory_usage: i64,
pub vm_status: String,
pub vm_debug_enabled: bool,
}
Expand description
An Instance resource is the computing unit that App Engine uses to automatically scale an application.
Fields§
§name: String
Full path to the Instance resource in the API.
Example: apps/myapp/services/default/versions/v1/instances/instance-1
.
@OutputOnly
id: String
Relative name of the instance within the version.
Example: instance-1
.
@OutputOnly
app_engine_release: String
App Engine release this instance is running on.
@OutputOnly
availability: i32
Availability of the instance.
@OutputOnly
vm_name: String
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
@OutputOnly
vm_zone_name: String
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment.
@OutputOnly
vm_id: String
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment.
@OutputOnly
start_time: Option<Timestamp>
Time that this instance was started.
@OutputOnly
requests: i32
Number of requests since this instance was started.
@OutputOnly
errors: i32
Number of errors since this instance was started.
@OutputOnly
qps: f32
Average queries per second (QPS) over the last minute.
@OutputOnly
average_latency: i32
Average latency (ms) over the last minute.
@OutputOnly
memory_usage: i64
Total memory in use (bytes).
@OutputOnly
vm_status: String
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment.
@OutputOnly
vm_debug_enabled: bool
Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment.
@OutputOnly
Implementations§
Source§impl Instance
impl Instance
Sourcepub fn availability(&self) -> Availability
pub fn availability(&self) -> Availability
Returns the enum value of availability
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_availability(&mut self, value: Availability)
pub fn set_availability(&mut self, value: Availability)
Sets availability
to the provided enum value.
Trait Implementations§
Source§impl Message for Instance
impl Message for Instance
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request