HostNetworkStatistics¶
-
class
oci.opsi.models.
HostNetworkStatistics
(**kwargs)¶ Bases:
oci.opsi.models.host_resource_statistics.HostResourceStatistics
Contains network statistics.
Attributes
RESOURCE_NAME_HOST_CPU_STATISTICS
str(object=’’) -> str RESOURCE_NAME_HOST_IO_STATISTICS
str(object=’’) -> str RESOURCE_NAME_HOST_MEMORY_STATISTICS
str(object=’’) -> str RESOURCE_NAME_HOST_NETWORK_STATISTICS
str(object=’’) -> str RESOURCE_NAME_HOST_STORAGE_STATISTICS
str(object=’’) -> str capacity
[Required] Gets the capacity of this HostResourceStatistics. network_read_in_mbs
Gets the network_read_in_mbs of this HostNetworkStatistics. network_write_in_mbs
Gets the network_write_in_mbs of this HostNetworkStatistics. resource_name
[Required] Gets the resource_name of this HostResourceStatistics. usage
[Required] Gets the usage of this HostResourceStatistics. usage_change_percent
[Required] Gets the usage_change_percent of this HostResourceStatistics. utilization_percent
[Required] Gets the utilization_percent of this HostResourceStatistics. Methods
__init__
(**kwargs)Initializes a new HostNetworkStatistics object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
RESOURCE_NAME_HOST_CPU_STATISTICS
= 'HOST_CPU_STATISTICS'¶
-
RESOURCE_NAME_HOST_IO_STATISTICS
= 'HOST_IO_STATISTICS'¶
-
RESOURCE_NAME_HOST_MEMORY_STATISTICS
= 'HOST_MEMORY_STATISTICS'¶
-
RESOURCE_NAME_HOST_NETWORK_STATISTICS
= 'HOST_NETWORK_STATISTICS'¶
-
RESOURCE_NAME_HOST_STORAGE_STATISTICS
= 'HOST_STORAGE_STATISTICS'¶
-
__init__
(**kwargs)¶ Initializes a new HostNetworkStatistics object with values from keyword arguments. The default value of the
resource_name
attribute of this class isHOST_NETWORK_STATISTICS
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - usage (float) – The value to assign to the usage property of this HostNetworkStatistics.
- capacity (float) – The value to assign to the capacity property of this HostNetworkStatistics.
- utilization_percent (float) – The value to assign to the utilization_percent property of this HostNetworkStatistics.
- usage_change_percent (float) – The value to assign to the usage_change_percent property of this HostNetworkStatistics.
- resource_name (str) – The value to assign to the resource_name property of this HostNetworkStatistics. Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, “HOST_STORAGE_STATISTICS”, “HOST_NETWORK_STATISTICS”, “HOST_IO_STATISTICS”
- network_read_in_mbs (float) – The value to assign to the network_read_in_mbs property of this HostNetworkStatistics.
- network_write_in_mbs (float) – The value to assign to the network_write_in_mbs property of this HostNetworkStatistics.
-
capacity
¶ [Required] Gets the capacity of this HostResourceStatistics. The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
Returns: The capacity of this HostResourceStatistics. Return type: float
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
network_read_in_mbs
¶ Gets the network_read_in_mbs of this HostNetworkStatistics.
Returns: The network_read_in_mbs of this HostNetworkStatistics. Return type: float
-
network_write_in_mbs
¶ Gets the network_write_in_mbs of this HostNetworkStatistics.
Returns: The network_write_in_mbs of this HostNetworkStatistics. Return type: float
-
resource_name
¶ [Required] Gets the resource_name of this HostResourceStatistics. Name of resource for host
Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, “HOST_STORAGE_STATISTICS”, “HOST_NETWORK_STATISTICS”, “HOST_IO_STATISTICS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource_name of this HostResourceStatistics. Return type: str
-
usage
¶ [Required] Gets the usage of this HostResourceStatistics. Total amount used of the resource metric type (CPU, STORAGE).
Returns: The usage of this HostResourceStatistics. Return type: float
-
usage_change_percent
¶ [Required] Gets the usage_change_percent of this HostResourceStatistics. Change in resource utilization in percentage
Returns: The usage_change_percent of this HostResourceStatistics. Return type: float
-
utilization_percent
¶ [Required] Gets the utilization_percent of this HostResourceStatistics. Resource utilization in percentage.
Returns: The utilization_percent of this HostResourceStatistics. Return type: float
-