Tm1ErrorClassifier.Rule
using Skipcheck.Tm1.Client.Errors;One 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
Rule constructor | A rule. |
Status property | The HTTP status to match, or null for any. |
CodeValue property | The error code to match exactly, or null for any. |
MessagePattern property | The pattern to find in the message, or null for any. |
Kind property | The kind to report on a match. |
Message static | Matches TM1's message, case-insensitively. |
Code static | Matches TM1's error code. |
Rule
constructorRule(int? status, string? code, Regex? message, Tm1ErrorKind kind)A rule. Each condition that's set must match: the status, the code exactly, and the message pattern anywhere in the message.
Parameters
status- The HTTP status to match, or null for any.
code- The error code to match, or null for any.
message- A pattern to find in the message, or null for any.
kind- The kind to report on a match.
Throws
ArgumentException- No condition is set.
Status
propertyint? StatusThe HTTP status to match, or null for any.
CodeValue
propertystring? CodeValueThe error code to match exactly, or null for any.
MessagePattern
propertyRegex? MessagePatternThe pattern to find in the message, or null for any.
Kind
propertyTm1ErrorKind KindThe kind to report on a match.
Message
staticRule Message(string regex, Tm1ErrorKind kind)Matches TM1's message, case-insensitively.
Code
staticRule Code(string code, Tm1ErrorKind kind)Matches TM1's error code.