Filter

class oci.log_analytics.models.Filter(**kwargs)

Bases: object

Query builder filter action to apply edit to queryString.

Attributes:

OPERATOR_ADD_SUBQUERY

A constant which can be used with the operator property of a Filter.

OPERATOR_CLEAR

A constant which can be used with the operator property of a Filter.

OPERATOR_CLEAR_SUBQUERY

A constant which can be used with the operator property of a Filter.

OPERATOR_CONTAINS

A constant which can be used with the operator property of a Filter.

OPERATOR_DOES_NOT_CONTAIN

A constant which can be used with the operator property of a Filter.

OPERATOR_DOES_NOT_END_WITH

A constant which can be used with the operator property of a Filter.

OPERATOR_DOES_NOT_START_WITH

A constant which can be used with the operator property of a Filter.

OPERATOR_ENDS_WITH

A constant which can be used with the operator property of a Filter.

OPERATOR_EQUALS

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_BETWEEN

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_GREATER_THAN

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_LESS_THAN

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_LESS_THAN_OR_EQUAL_TO

A constant which can be used with the operator property of a Filter.

OPERATOR_IS_NOT_BETWEEN

A constant which can be used with the operator property of a Filter.

OPERATOR_NOT_EQUALS

A constant which can be used with the operator property of a Filter.

OPERATOR_REPLACE

A constant which can be used with the operator property of a Filter.

OPERATOR_STARTS_WITH

A constant which can be used with the operator property of a Filter.

field_name

Gets the field_name of this Filter.

operator

[Required] Gets the operator of this Filter.

values

Gets the values of this Filter.

Methods:

__init__(**kwargs)

Initializes a new Filter object with values from keyword arguments.

OPERATOR_ADD_SUBQUERY = 'ADD_SUBQUERY'

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

OPERATOR_CLEAR = 'CLEAR'

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

OPERATOR_CLEAR_SUBQUERY = 'CLEAR_SUBQUERY'

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

OPERATOR_CONTAINS = 'CONTAINS'

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

OPERATOR_DOES_NOT_CONTAIN = 'DOES_NOT_CONTAIN'

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

OPERATOR_DOES_NOT_END_WITH = 'DOES_NOT_END_WITH'

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

OPERATOR_DOES_NOT_START_WITH = 'DOES_NOT_START_WITH'

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

OPERATOR_ENDS_WITH = 'ENDS_WITH'

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

OPERATOR_EQUALS = 'EQUALS'

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

OPERATOR_IS_BETWEEN = 'IS_BETWEEN'

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

OPERATOR_IS_GREATER_THAN = 'IS_GREATER_THAN'

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

OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO = 'IS_GREATER_THAN_OR_EQUAL_TO'

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

OPERATOR_IS_LESS_THAN = 'IS_LESS_THAN'

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

OPERATOR_IS_LESS_THAN_OR_EQUAL_TO = 'IS_LESS_THAN_OR_EQUAL_TO'

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

OPERATOR_IS_NOT_BETWEEN = 'IS_NOT_BETWEEN'

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

OPERATOR_NOT_EQUALS = 'NOT_EQUALS'

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

OPERATOR_REPLACE = 'REPLACE'

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

OPERATOR_STARTS_WITH = 'STARTS_WITH'

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

__init__(**kwargs)

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

Parameters
  • field_name (str) – The value to assign to the field_name property of this Filter.

  • values (list[object]) – The value to assign to the values property of this Filter.

  • operator (str) – The value to assign to the operator property of this Filter. Allowed values for this property are: “CLEAR”, “REPLACE”, “EQUALS”, “NOT_EQUALS”, “STARTS_WITH”, “DOES_NOT_START_WITH”, “ENDS_WITH”, “DOES_NOT_END_WITH”, “CONTAINS”, “DOES_NOT_CONTAIN”, “IS_LESS_THAN”, “IS_LESS_THAN_OR_EQUAL_TO”, “IS_GREATER_THAN”, “IS_GREATER_THAN_OR_EQUAL_TO”, “IS_BETWEEN”, “IS_NOT_BETWEEN”, “ADD_SUBQUERY”, “CLEAR_SUBQUERY”

property field_name

Gets the field_name of this Filter. Field filter references when inserting filter into the query string. Field must be a valid log analytics out-of-the-box field, virtual field calculated in the query or a user defined field.

Returns

The field_name of this Filter.

Return type

str

property operator

[Required] Gets the operator of this Filter. Operator to apply when editing the query string.

Allowed values for this property are: “CLEAR”, “REPLACE”, “EQUALS”, “NOT_EQUALS”, “STARTS_WITH”, “DOES_NOT_START_WITH”, “ENDS_WITH”, “DOES_NOT_END_WITH”, “CONTAINS”, “DOES_NOT_CONTAIN”, “IS_LESS_THAN”, “IS_LESS_THAN_OR_EQUAL_TO”, “IS_GREATER_THAN”, “IS_GREATER_THAN_OR_EQUAL_TO”, “IS_BETWEEN”, “IS_NOT_BETWEEN”, “ADD_SUBQUERY”, “CLEAR_SUBQUERY”

Returns

The operator of this Filter.

Return type

str

property values

Gets the values of this Filter. Field values that will be inserted into the query string for the specified fieldName. Please note all values should reflect the fields data type otherwise the insert is subject to fail.

Returns

The values of this Filter.

Return type

list[object]