TopUtilizedResourceSummary

class oci.license_manager.models.TopUtilizedResourceSummary(**kwargs)

Bases: object

A summary of a top utlized resource.

Attributes:

UNIT_TYPE_ECPU

A constant which can be used with the unit_type property of a TopUtilizedResourceSummary.

UNIT_TYPE_OCPU

A constant which can be used with the unit_type property of a TopUtilizedResourceSummary.

resource_compartment_id

[Required] Gets the resource_compartment_id of this TopUtilizedResourceSummary.

resource_compartment_name

[Required] Gets the resource_compartment_name of this TopUtilizedResourceSummary.

resource_id

[Required] Gets the resource_id of this TopUtilizedResourceSummary.

resource_name

[Required] Gets the resource_name of this TopUtilizedResourceSummary.

total_units

[Required] Gets the total_units of this TopUtilizedResourceSummary.

unit_type

[Required] Gets the unit_type of this TopUtilizedResourceSummary.

Methods:

__init__(**kwargs)

Initializes a new TopUtilizedResourceSummary object with values from keyword arguments.

UNIT_TYPE_ECPU = 'ECPU'

A constant which can be used with the unit_type property of a TopUtilizedResourceSummary. This constant has a value of “ECPU”

UNIT_TYPE_OCPU = 'OCPU'

A constant which can be used with the unit_type property of a TopUtilizedResourceSummary. This constant has a value of “OCPU”

__init__(**kwargs)

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

Parameters
  • resource_id (str) – The value to assign to the resource_id property of this TopUtilizedResourceSummary.

  • resource_name (str) – The value to assign to the resource_name property of this TopUtilizedResourceSummary.

  • resource_compartment_id (str) – The value to assign to the resource_compartment_id property of this TopUtilizedResourceSummary.

  • resource_compartment_name (str) – The value to assign to the resource_compartment_name property of this TopUtilizedResourceSummary.

  • total_units (float) – The value to assign to the total_units property of this TopUtilizedResourceSummary.

  • unit_type (str) – The value to assign to the unit_type property of this TopUtilizedResourceSummary. Allowed values for this property are: “OCPU”, “ECPU”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property resource_compartment_id

[Required] Gets the resource_compartment_id of this TopUtilizedResourceSummary. The compartment OCID that contains the resource.

Returns

The resource_compartment_id of this TopUtilizedResourceSummary.

Return type

str

property resource_compartment_name

[Required] Gets the resource_compartment_name of this TopUtilizedResourceSummary. The display name of the compartment that contains the resource.

Returns

The resource_compartment_name of this TopUtilizedResourceSummary.

Return type

str

property resource_id

[Required] Gets the resource_id of this TopUtilizedResourceSummary. The OCID of the resource.

Returns

The resource_id of this TopUtilizedResourceSummary.

Return type

str

property resource_name

[Required] Gets the resource_name of this TopUtilizedResourceSummary. Resource canonical name.

Returns

The resource_name of this TopUtilizedResourceSummary.

Return type

str

property total_units

[Required] Gets the total_units of this TopUtilizedResourceSummary. Number of license units consumed by the resource.

Returns

The total_units of this TopUtilizedResourceSummary.

Return type

float

property unit_type

[Required] Gets the unit_type of this TopUtilizedResourceSummary. The resource unit.

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

Returns

The unit_type of this TopUtilizedResourceSummary.

Return type

str