msticpy.context.tiproviders.result_severity module

Result Severity enumeration.

class msticpy.context.tiproviders.result_severity.LookupResult(status: bool, severity: ResultSeverity, details: dict[str, Any])

Bases: NamedTuple

Return value from TI Provider parse_results.

Create new instance of LookupResult(status, severity, details)

count(value, /)

Return number of occurrences of value.

details: dict[str, Any]

Alias for field number 2

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

severity: ResultSeverity

Alias for field number 1

status: bool

Alias for field number 0

class msticpy.context.tiproviders.result_severity.ResultSeverity(value)

Bases: Enum

Item report severity.

high = 2
information = 0
classmethod parse(value: object) ResultSeverity

Parse string or numeric value to ResultSeverity.

Parameters:

value (Any) – ResultSeverity, str or int

Returns:

ResultSeverity instance.

Return type:

ResultSeverity

unknown = -1
warning = 1