lib.cuckoo.core.database.Guest

Package lib :: Package cuckoo :: Package core :: Module database :: Class Guest |
[hide private]
[frames] | no frames]

# Class Guest

source code

    declarative_base() --+
                         |
                        Guest

Tracks guest run.

Instance Methods | [hide private]
__repr__(self) | source code
to_dict(self) Converts object to dict. | source code
to_json(self) Converts object to JSON. | source code
__init__(self, name, label, manager) | source code

Class Variables | [hide private]
| __tablename__ = `"guests"`
| id = `Column(Integer(), primary_key= True)`
| status = `Column(String(16), nullable= False)`
| name = `Column(String(255), nullable= False)`
| label = `Column(String(255), nullable= False)`
| manager = `Column(String(255), nullable= False)`
| started_on = `Column(DateTime(timezone= False), default= dateti`...``
| shutdown_on = `Column(DateTime(timezone= False), nullable= True)`
| task_id = `Column(Integer, ForeignKey("tasks.id"), nullable= Fa`...``

Method Details | [hide private]

### to_dict(self) | source code
Converts object to dict. Returns: dict

### to_json(self) | source code
Converts object to JSON. Returns: JSON data

Class Variable Details | [hide private]

  ### started_on Value:
      Column(DateTime(timezone= False), default= datetime.now, nullable= Fal
      se)

  ### task_id Value:
      Column(Integer, ForeignKey("tasks.id"), nullable= False, unique= True)