TargetResourceFilter

class oci.costad.models.TargetResourceFilter(**kwargs)

Bases: object

The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.

Attributes

OPERATOR_AND A constant which can be used with the operator property of a TargetResourceFilter.
OPERATOR_OR A constant which can be used with the operator property of a TargetResourceFilter.
dimensions Gets the dimensions of this TargetResourceFilter.
filters Gets the filters of this TargetResourceFilter.
operator Gets the operator of this TargetResourceFilter.
tags Gets the tags of this TargetResourceFilter.

Methods

__init__(**kwargs) Initializes a new TargetResourceFilter object with values from keyword arguments.
OPERATOR_AND = 'AND'

A constant which can be used with the operator property of a TargetResourceFilter. This constant has a value of “AND”

OPERATOR_OR = 'OR'

A constant which can be used with the operator property of a TargetResourceFilter. This constant has a value of “OR”

__init__(**kwargs)

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

Parameters:
  • operator (str) – The value to assign to the operator property of this TargetResourceFilter. Allowed values for this property are: “AND”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • dimensions (list[oci.costad.models.Dimension]) – The value to assign to the dimensions property of this TargetResourceFilter.
  • tags (list[oci.costad.models.Tag]) – The value to assign to the tags property of this TargetResourceFilter.
  • filters (list[oci.costad.models.TargetResourceFilter]) – The value to assign to the filters property of this TargetResourceFilter.
dimensions

Gets the dimensions of this TargetResourceFilter. The dimensions to filter on.

Returns:The dimensions of this TargetResourceFilter.
Return type:list[oci.costad.models.Dimension]
filters

Gets the filters of this TargetResourceFilter. The nested filter object.

Returns:The filters of this TargetResourceFilter.
Return type:list[oci.costad.models.TargetResourceFilter]
operator

Gets the operator of this TargetResourceFilter. The filter operator. Example: ‘AND’, ‘OR’.

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

Returns:The operator of this TargetResourceFilter.
Return type:str
tags

Gets the tags of this TargetResourceFilter. The tags to filter on.

Returns:The tags of this TargetResourceFilter.
Return type:list[oci.costad.models.Tag]