MDL-45939 tool_monitor: Implement a class that represents a rule instance