SummarizeHostInsightResourceUtilizationInsightAggregation

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

Bases: object

Insights response containing current/projected groups for CPU or memory.

Attributes

RESOURCE_METRIC_CPU A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
RESOURCE_METRIC_LOGICAL_MEMORY A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
RESOURCE_METRIC_MEMORY A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
current_utilization [Required] Gets the current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
projected_utilization [Required] Gets the projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
resource_metric [Required] Gets the resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
time_interval_end [Required] Gets the time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
time_interval_start [Required] Gets the time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.

Methods

__init__(**kwargs) Initializes a new SummarizeHostInsightResourceUtilizationInsightAggregation object with values from keyword arguments.
RESOURCE_METRIC_CPU = 'CPU'

A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation. This constant has a value of “CPU”

RESOURCE_METRIC_LOGICAL_MEMORY = 'LOGICAL_MEMORY'

A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation. This constant has a value of “LOGICAL_MEMORY”

RESOURCE_METRIC_MEMORY = 'MEMORY'

A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation. This constant has a value of “MEMORY”

__init__(**kwargs)

Initializes a new SummarizeHostInsightResourceUtilizationInsightAggregation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • time_interval_start (datetime) – The value to assign to the time_interval_start property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
  • time_interval_end (datetime) – The value to assign to the time_interval_end property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
  • resource_metric (str) – The value to assign to the resource_metric property of this SummarizeHostInsightResourceUtilizationInsightAggregation. Allowed values for this property are: “CPU”, “MEMORY”, “LOGICAL_MEMORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • projected_utilization (oci.opsi.models.ResourceInsightProjectedUtilization) – The value to assign to the projected_utilization property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
  • current_utilization (oci.opsi.models.ResourceInsightCurrentUtilization) – The value to assign to the current_utilization property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
current_utilization

[Required] Gets the current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.

Returns:The current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
Return type:oci.opsi.models.ResourceInsightCurrentUtilization
projected_utilization

[Required] Gets the projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.

Returns:The projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
Return type:oci.opsi.models.ResourceInsightProjectedUtilization
resource_metric

[Required] Gets the resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation. Defines the type of resource metric (CPU, Physical Memory, Logical Memory)

Allowed values for this property are: “CPU”, “MEMORY”, “LOGICAL_MEMORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
Return type:str
time_interval_end

[Required] Gets the time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation. The end timestamp that was passed into the request.

Returns:The time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
Return type:datetime
time_interval_start

[Required] Gets the time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation. The start timestamp that was passed into the request.

Returns:The time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.
Return type:datetime