Rule
from skipcheck_tm1.errors import RuleOne classification rule. Each condition that's set must match: the status if not null, the code exactly, and the message pattern (case-insensitive, anywhere in the message).
Members
status | |
code | A rule matching an error code. |
message | A rule matching a message pattern, case-insensitively. |
kind | |
of_message static | Matches TM1's message, case-insensitively (Java's Rule.message). |
of_code static | Matches TM1's error code (Java's Rule.code). |
matches | Whether the rule matches an error response. |
status
status: int | Nonecode
code: str | NoneA rule matching an error code.
message
message: re.Pattern[str] | NoneA rule matching a message pattern, case-insensitively.
kind
kind: Tm1ErrorKindof_message
staticof_message(regex: str, kind: Tm1ErrorKind) -> RuleMatches TM1's message, case-insensitively (Java's Rule.message).
of_code
staticof_code(code: str, kind: Tm1ErrorKind) -> RuleMatches TM1's error code (Java's Rule.code).
matches
matches(status: int, error: ODataError | None) -> boolWhether the rule matches an error response: each condition that's set must match, the status, the code exactly, and the message pattern (ignoring case, anywhere in the message).