Dimension

class oci.usage_api.models.Dimension(**kwargs)

Bases: object

The dimension used for filtering. Availabe dimensions are: “service”, “skuName”, “skuPartNumber”, “unit”, “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “tenantId”, and “tenantName”. For example: [{value: “COMPUTE”, key: “service”}]

Methods

__init__(**kwargs) Initializes a new Dimension object with values from keyword arguments.

Attributes

key [Required] Gets the key of this Dimension.
value [Required] Gets the value of this Dimension.
__init__(**kwargs)

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

Parameters:
  • key (str) – The value to assign to the key property of this Dimension.
  • value (str) – The value to assign to the value property of this Dimension.
key

[Required] Gets the key of this Dimension. The dimension key.

Returns:The key of this Dimension.
Return type:str
value

[Required] Gets the value of this Dimension. The dimension value.

Returns:The value of this Dimension.
Return type:str