SummarizeDatabaseInsightResourceUsageAggregation¶
-
class
oci.opsi.models.
SummarizeDatabaseInsightResourceUsageAggregation
(**kwargs)¶ Bases:
object
Resource usage summation for the current time period
Attributes
RESOURCE_METRIC_CPU
A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation. RESOURCE_METRIC_STORAGE
A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation. USAGE_UNIT_CORES
A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. USAGE_UNIT_GB
A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. USAGE_UNIT_MBPS
A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. USAGE_UNIT_PERCENT
A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. capacity
[Required] Gets the capacity of this SummarizeDatabaseInsightResourceUsageAggregation. resource_metric
[Required] Gets the resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation. time_interval_end
[Required] Gets the time_interval_end of this SummarizeDatabaseInsightResourceUsageAggregation. time_interval_start
[Required] Gets the time_interval_start of this SummarizeDatabaseInsightResourceUsageAggregation. usage
[Required] Gets the usage of this SummarizeDatabaseInsightResourceUsageAggregation. usage_change_percent
[Required] Gets the usage_change_percent of this SummarizeDatabaseInsightResourceUsageAggregation. usage_unit
[Required] Gets the usage_unit of this SummarizeDatabaseInsightResourceUsageAggregation. Methods
__init__
(**kwargs)Initializes a new SummarizeDatabaseInsightResourceUsageAggregation object with values from keyword arguments. -
RESOURCE_METRIC_CPU
= 'CPU'¶ A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “CPU”
-
RESOURCE_METRIC_STORAGE
= 'STORAGE'¶ A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “STORAGE”
-
USAGE_UNIT_CORES
= 'CORES'¶ A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “CORES”
-
USAGE_UNIT_GB
= 'GB'¶ A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “GB”
-
USAGE_UNIT_MBPS
= 'MBPS'¶ A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “MBPS”
-
USAGE_UNIT_PERCENT
= 'PERCENT'¶ A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation. This constant has a value of “PERCENT”
-
__init__
(**kwargs)¶ Initializes a new SummarizeDatabaseInsightResourceUsageAggregation 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 SummarizeDatabaseInsightResourceUsageAggregation.
- time_interval_end (datetime) – The value to assign to the time_interval_end property of this SummarizeDatabaseInsightResourceUsageAggregation.
- resource_metric (str) – The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceUsageAggregation. Allowed values for this property are: “CPU”, “STORAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- usage_unit (str) – The value to assign to the usage_unit property of this SummarizeDatabaseInsightResourceUsageAggregation. Allowed values for this property are: “CORES”, “GB”, “MBPS”, “PERCENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- usage (float) – The value to assign to the usage property of this SummarizeDatabaseInsightResourceUsageAggregation.
- capacity (float) – The value to assign to the capacity property of this SummarizeDatabaseInsightResourceUsageAggregation.
- usage_change_percent (float) – The value to assign to the usage_change_percent property of this SummarizeDatabaseInsightResourceUsageAggregation.
-
capacity
¶ [Required] Gets the capacity of this SummarizeDatabaseInsightResourceUsageAggregation. The maximum allocated amount of the resource metric type (CPU, STORAGE).
Returns: The capacity of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: float
-
resource_metric
¶ [Required] Gets the resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation. Defines the type of resource metric (CPU, STORAGE)
Allowed values for this property are: “CPU”, “STORAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: str
-
time_interval_end
¶ [Required] Gets the time_interval_end of this SummarizeDatabaseInsightResourceUsageAggregation. The end timestamp that was passed into the request.
Returns: The time_interval_end of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: datetime
-
time_interval_start
¶ [Required] Gets the time_interval_start of this SummarizeDatabaseInsightResourceUsageAggregation. The start timestamp that was passed into the request.
Returns: The time_interval_start of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: datetime
-
usage
¶ [Required] Gets the usage of this SummarizeDatabaseInsightResourceUsageAggregation. Total amount used of the resource metric type (CPU, STORAGE).
Returns: The usage of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: float
-
usage_change_percent
¶ [Required] Gets the usage_change_percent of this SummarizeDatabaseInsightResourceUsageAggregation. Percentage change in resource usage during the current period calculated using linear regression functions
Returns: The usage_change_percent of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: float
-
usage_unit
¶ [Required] Gets the usage_unit of this SummarizeDatabaseInsightResourceUsageAggregation. Displays usage unit (CORES, GB)
Allowed values for this property are: “CORES”, “GB”, “MBPS”, “PERCENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The usage_unit of this SummarizeDatabaseInsightResourceUsageAggregation. Return type: str
-