HostCpuUsage

class oci.opsi.models.HostCpuUsage(**kwargs)

Bases: HostPerformanceMetricGroup

CPU Usage metric for the host

Attributes:

METRIC_NAME_HOST_CPU_USAGE

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_FILESYSTEM_USAGE

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_GPU_PROCESSES

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_GPU_USAGE

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_IO_USAGE

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_MEMORY_USAGE

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_NETWORK_ACTIVITY_SUMMARY

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

METRIC_NAME_HOST_TOP_PROCESSES

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.

cpu_idle_in_percent

Gets the cpu_idle_in_percent of this HostCpuUsage.

cpu_load15min

Gets the cpu_load15min of this HostCpuUsage.

cpu_load1min

Gets the cpu_load1min of this HostCpuUsage.

cpu_load5min

Gets the cpu_load5min of this HostCpuUsage.

cpu_stolen_in_percent

Gets the cpu_stolen_in_percent of this HostCpuUsage.

cpu_system_mode_in_percent

Gets the cpu_system_mode_in_percent of this HostCpuUsage.

cpu_usage_in_sec

Gets the cpu_usage_in_sec of this HostCpuUsage.

cpu_user_mode_in_percent

Gets the cpu_user_mode_in_percent of this HostCpuUsage.

cpu_utilization_in_percent

Gets the cpu_utilization_in_percent of this HostCpuUsage.

metric_name

[Required] Gets the metric_name of this HostPerformanceMetricGroup.

time_collected

[Required] Gets the time_collected of this HostPerformanceMetricGroup.

Methods:

__init__(**kwargs)

Initializes a new HostCpuUsage 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.

METRIC_NAME_HOST_CPU_USAGE = 'HOST_CPU_USAGE'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_CPU_USAGE”

METRIC_NAME_HOST_FILESYSTEM_USAGE = 'HOST_FILESYSTEM_USAGE'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_FILESYSTEM_USAGE”

METRIC_NAME_HOST_GPU_PROCESSES = 'HOST_GPU_PROCESSES'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_GPU_PROCESSES”

METRIC_NAME_HOST_GPU_USAGE = 'HOST_GPU_USAGE'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_GPU_USAGE”

METRIC_NAME_HOST_IO_USAGE = 'HOST_IO_USAGE'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_IO_USAGE”

METRIC_NAME_HOST_MEMORY_USAGE = 'HOST_MEMORY_USAGE'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_MEMORY_USAGE”

METRIC_NAME_HOST_NETWORK_ACTIVITY_SUMMARY = 'HOST_NETWORK_ACTIVITY_SUMMARY'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_NETWORK_ACTIVITY_SUMMARY”

METRIC_NAME_HOST_TOP_PROCESSES = 'HOST_TOP_PROCESSES'

A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_TOP_PROCESSES”

__init__(**kwargs)

Initializes a new HostCpuUsage object with values from keyword arguments. The default value of the metric_name attribute of this class is HOST_CPU_USAGE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • metric_name (str) – The value to assign to the metric_name property of this HostCpuUsage. Allowed values for this property are: “HOST_CPU_USAGE”, “HOST_MEMORY_USAGE”, “HOST_NETWORK_ACTIVITY_SUMMARY”, “HOST_TOP_PROCESSES”, “HOST_FILESYSTEM_USAGE”, “HOST_GPU_USAGE”, “HOST_GPU_PROCESSES”, “HOST_IO_USAGE”

  • time_collected (datetime) – The value to assign to the time_collected property of this HostCpuUsage.

  • cpu_user_mode_in_percent (float) – The value to assign to the cpu_user_mode_in_percent property of this HostCpuUsage.

  • cpu_system_mode_in_percent (float) – The value to assign to the cpu_system_mode_in_percent property of this HostCpuUsage.

  • cpu_usage_in_sec (float) – The value to assign to the cpu_usage_in_sec property of this HostCpuUsage.

  • cpu_utilization_in_percent (float) – The value to assign to the cpu_utilization_in_percent property of this HostCpuUsage.

  • cpu_stolen_in_percent (float) – The value to assign to the cpu_stolen_in_percent property of this HostCpuUsage.

  • cpu_idle_in_percent (float) – The value to assign to the cpu_idle_in_percent property of this HostCpuUsage.

  • cpu_load1min (float) – The value to assign to the cpu_load1min property of this HostCpuUsage.

  • cpu_load5min (float) – The value to assign to the cpu_load5min property of this HostCpuUsage.

  • cpu_load15min (float) – The value to assign to the cpu_load15min property of this HostCpuUsage.

property cpu_idle_in_percent

Gets the cpu_idle_in_percent of this HostCpuUsage. Amount of CPU idle time in percentage

Returns

The cpu_idle_in_percent of this HostCpuUsage.

Return type

float

property cpu_load15min

Gets the cpu_load15min of this HostCpuUsage. Load average in the last 15 minutes

Returns

The cpu_load15min of this HostCpuUsage.

Return type

float

property cpu_load1min

Gets the cpu_load1min of this HostCpuUsage. Load average in the last 1 minute

Returns

The cpu_load1min of this HostCpuUsage.

Return type

float

property cpu_load5min

Gets the cpu_load5min of this HostCpuUsage. Load average in the last 5 minutes

Returns

The cpu_load5min of this HostCpuUsage.

Return type

float

property cpu_stolen_in_percent

Gets the cpu_stolen_in_percent of this HostCpuUsage. Amount of CPU time stolen in percentage

Returns

The cpu_stolen_in_percent of this HostCpuUsage.

Return type

float

property cpu_system_mode_in_percent

Gets the cpu_system_mode_in_percent of this HostCpuUsage. Percentage of CPU time spent in system mode

Returns

The cpu_system_mode_in_percent of this HostCpuUsage.

Return type

float

property cpu_usage_in_sec

Gets the cpu_usage_in_sec of this HostCpuUsage. Amount of CPU Time spent in seconds

Returns

The cpu_usage_in_sec of this HostCpuUsage.

Return type

float

property cpu_user_mode_in_percent

Gets the cpu_user_mode_in_percent of this HostCpuUsage. Percentage of CPU time spent in user mode

Returns

The cpu_user_mode_in_percent of this HostCpuUsage.

Return type

float

property cpu_utilization_in_percent

Gets the cpu_utilization_in_percent of this HostCpuUsage. Amount of CPU Time spent in percentage

Returns

The cpu_utilization_in_percent of this HostCpuUsage.

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.

property metric_name

[Required] Gets the metric_name of this HostPerformanceMetricGroup. Name of the metric group

Allowed values for this property are: “HOST_CPU_USAGE”, “HOST_MEMORY_USAGE”, “HOST_NETWORK_ACTIVITY_SUMMARY”, “HOST_TOP_PROCESSES”, “HOST_FILESYSTEM_USAGE”, “HOST_GPU_USAGE”, “HOST_GPU_PROCESSES”, “HOST_IO_USAGE”

Returns

The metric_name of this HostPerformanceMetricGroup.

Return type

str

property time_collected

[Required] Gets the time_collected of this HostPerformanceMetricGroup. Collection timestamp Example: “2020-05-06T00:00:00.000Z”

Returns

The time_collected of this HostPerformanceMetricGroup.

Return type

datetime