Struct google_api_proto::google::appengine::v1::Instance

source ·
pub struct Instance {
Show 17 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, pub vm_ip: String, pub vm_liveness: i32,
}
Expand description

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

Fields§

§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: i32

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: Option<Timestamp>

Output only. Time that this instance was started.

@OutputOnly

§requests: i32

Output only. Number of requests since this instance was started.

§errors: i32

Output only. Number of errors since this instance was started.

§qps: f32

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

§average_latency: i32

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

§memory_usage: i64

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: i32

Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment.

Implementations§

source§

impl Instance

source

pub fn availability(&self) -> Availability

Returns the enum value of availability, or the default if the field is set to an invalid enum value.

source

pub fn set_availability(&mut self, value: Availability)

Sets availability to the provided enum value.

source

pub fn vm_liveness(&self) -> LivenessState

Returns the enum value of vm_liveness, or the default if the field is set to an invalid enum value.

source

pub fn set_vm_liveness(&mut self, value: LivenessState)

Sets vm_liveness to the provided enum value.

Trait Implementations§

source§

impl Clone for Instance

source§

fn clone(&self) -> Instance

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Instance

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Instance

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for Instance

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Instance

source§

fn eq(&self, other: &Instance) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Instance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more