Violation

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

Bases: object

Attributes

RULE_TYPE_ERROR A constant which can be used with the rule_type property of a Violation.
RULE_TYPE_WARN A constant which can be used with the rule_type property of a Violation.
indexes Gets the indexes of this Violation.
rule_description Gets the rule_description of this Violation.
rule_name Gets the rule_name of this Violation.
rule_remediation Gets the rule_remediation of this Violation.
rule_type Gets the rule_type of this Violation.

Methods

__init__(**kwargs) Initializes a new Violation object with values from keyword arguments.
RULE_TYPE_ERROR = 'ERROR'

A constant which can be used with the rule_type property of a Violation. This constant has a value of “ERROR”

RULE_TYPE_WARN = 'WARN'

A constant which can be used with the rule_type property of a Violation. This constant has a value of “WARN”

__init__(**kwargs)

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

Parameters:
  • indexes (list[oci.log_analytics.models.Indexes]) – The value to assign to the indexes property of this Violation.
  • rule_description (str) – The value to assign to the rule_description property of this Violation.
  • rule_name (str) – The value to assign to the rule_name property of this Violation.
  • rule_remediation (str) – The value to assign to the rule_remediation property of this Violation.
  • rule_type (str) – The value to assign to the rule_type property of this Violation. Allowed values for this property are: “WARN”, “ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
indexes

Gets the indexes of this Violation. The indices associated with regular expression violations.

Returns:The indexes of this Violation.
Return type:list[oci.log_analytics.models.Indexes]
rule_description

Gets the rule_description of this Violation. The rule description.

Returns:The rule_description of this Violation.
Return type:str
rule_name

Gets the rule_name of this Violation. The rule name.

Returns:The rule_name of this Violation.
Return type:str
rule_remediation

Gets the rule_remediation of this Violation. The rule remediation.

Returns:The rule_remediation of this Violation.
Return type:str
rule_type

Gets the rule_type of this Violation. The rule type. Either WARN or ERROR.

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

Returns:The rule_type of this Violation.
Return type:str