pub struct ClusterHostPowerAction {
pub cluster_action_: ClusterAction,
pub operation_type: HostPowerOperationTypeEnum,
pub power_consumption_watt: Option<i32>,
pub cpu_capacity_m_hz: Option<i32>,
pub mem_capacity_mb: Option<i32>,
}Expand description
Describes a single host power action.
§How to access
StoragePod::pod_storage_drs_entry.recommendation?[*].action?[*]→ClusterHostPowerActionStoragePod::pod_storage_drs_entry.action_history?[*].action→ClusterHostPowerActionClusterComputeResource::action_history.action→ClusterHostPowerActionClusterComputeResource::recommendation.action?[*]→ClusterHostPowerActionDatastore::datastore_enter_maintenance_mode().recommendations?[*].action?[*]→ClusterHostPowerActionClusterComputeResource::cluster_enter_maintenance_mode().recommendations?[*].action?[*]→ClusterHostPowerActionClusterComputeResource::place_vm().recommendations?[*].action?[*]→ClusterHostPowerActionStorageResourceManager::recommend_datastores().recommendations?[*].action?[*]→ClusterHostPowerAction
Fields§
§cluster_action_: ClusterAction§operation_type: HostPowerOperationTypeEnumSpecify whether the action is power on or power off
power_consumption_watt: Option<i32>Estimated power consumption of the host.
In case of power-on, this is the projected increase in the cluster’s power consumption. In case of power off, this is the projected decrease in the cluster’s power consumption
cpu_capacity_m_hz: Option<i32>CPU capacity of the host in units of MHz.
In case of power-on action, this is the projected increase in the cluster’s CPU capacity. In case of power off, this is the projected decrease in the cluster’s CPU capacity.
mem_capacity_mb: Option<i32>Memory capacity of the host in units of MM.
In case of power-on action, this is the projected increase in the cluster’s memory capacity. In case of power off, this is the projected decrease in the cluster’s memory capacity.
Trait Implementations§
Source§impl ClusterActionTrait for ClusterHostPowerAction
impl ClusterActionTrait for ClusterHostPowerAction
Source§fn get_cluster_action(&self) -> &ClusterAction
fn get_cluster_action(&self) -> &ClusterAction
Get a reference to the ClusterAction parent struct
Source§fn get_cluster_action_mut(&mut self) -> &mut ClusterAction
fn get_cluster_action_mut(&mut self) -> &mut ClusterAction
Get a mutable reference to the ClusterAction parent struct
Source§impl Debug for ClusterHostPowerAction
impl Debug for ClusterHostPowerAction
Source§impl Deref for ClusterHostPowerAction
impl Deref for ClusterHostPowerAction
Source§impl DerefMut for ClusterHostPowerAction
impl DerefMut for ClusterHostPowerAction
Source§impl Deserialize for ClusterHostPowerAction
impl Deserialize for ClusterHostPowerAction
Source§impl VimObjectTrait for ClusterHostPowerAction
impl VimObjectTrait for ClusterHostPowerAction
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
impl DataObjectTrait for ClusterHostPowerAction
Auto Trait Implementations§
impl Freeze for ClusterHostPowerAction
impl RefUnwindSafe for ClusterHostPowerAction
impl Send for ClusterHostPowerAction
impl Sync for ClusterHostPowerAction
impl Unpin for ClusterHostPowerAction
impl UnsafeUnpin for ClusterHostPowerAction
impl UnwindSafe for ClusterHostPowerAction
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
Mutably borrows from an owned value. Read more