Struct google_api_proto::google::cloud::vmmigration::v1::UtilizationReport
source · pub struct UtilizationReport {
pub name: String,
pub display_name: String,
pub state: i32,
pub state_time: Option<Timestamp>,
pub error: Option<Status>,
pub create_time: Option<Timestamp>,
pub time_frame: i32,
pub frame_end_time: Option<Timestamp>,
pub vm_count: i32,
pub vms: Vec<VmUtilizationInfo>,
}
Expand description
Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.
Fields§
§name: String
Output only. The report unique name.
display_name: String
The report display name, as assigned by the user.
state: i32
Output only. Current state of the report.
state_time: Option<Timestamp>
Output only. The time the state was last set.
error: Option<Status>
Output only. Provides details on the state of the report in case of an error.
create_time: Option<Timestamp>
Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).
time_frame: i32
Time frame of the report.
frame_end_time: Option<Timestamp>
Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the “frame_end_time” value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.
vm_count: i32
Output only. Total number of VMs included in the report.
vms: Vec<VmUtilizationInfo>
List of utilization information per VM. When sent as part of the request, the “vm_id” field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
Implementations§
source§impl UtilizationReport
impl UtilizationReport
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn time_frame(&self) -> TimeFrame
pub fn time_frame(&self) -> TimeFrame
Returns the enum value of time_frame
, or the default if the field is set to an invalid enum value.
sourcepub fn set_time_frame(&mut self, value: TimeFrame)
pub fn set_time_frame(&mut self, value: TimeFrame)
Sets time_frame
to the provided enum value.
Trait Implementations§
source§impl Clone for UtilizationReport
impl Clone for UtilizationReport
source§fn clone(&self) -> UtilizationReport
fn clone(&self) -> UtilizationReport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UtilizationReport
impl Debug for UtilizationReport
source§impl Default for UtilizationReport
impl Default for UtilizationReport
source§impl Message for UtilizationReport
impl Message for UtilizationReport
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UtilizationReport
impl PartialEq for UtilizationReport
source§fn eq(&self, other: &UtilizationReport) -> bool
fn eq(&self, other: &UtilizationReport) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UtilizationReport
Auto Trait Implementations§
impl Freeze for UtilizationReport
impl RefUnwindSafe for UtilizationReport
impl Send for UtilizationReport
impl Sync for UtilizationReport
impl Unpin for UtilizationReport
impl UnwindSafe for UtilizationReport
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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