X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fdatabase%2Finfo%2Faction.py;h=704f733ab0b4e9cae81d37f5da0a741fc2211e50;hb=0e3cb254ed858745809d57de80437d73aedc6eba;hp=f324daaddb3b864f2f142e663d8674684bc9944e;hpb=cccbcf3069da9b6fe5e5817b5370bf1339bf42eb;p=monitor.git diff --git a/monitor/database/info/action.py b/monitor/database/info/action.py index f324daa..704f733 100644 --- a/monitor/database/info/action.py +++ b/monitor/database/info/action.py @@ -77,6 +77,11 @@ class BlacklistRecord(Entity): else: return self.date_created + timedelta(0, self.expires) +class BootmanSequenceRecord(Entity): + sequence = Field(String, primary_key=True, default=None) + action = Field(String, default=None) + date_created = Field(DateTime,default=datetime.now) + class ActionRecord(Entity): @classmethod def get_latest_by(cls, **kwargs): @@ -112,6 +117,8 @@ class ActionRecord(Entity): # NOTE: in case an exception is thrown while trying to perform an action. error_string = Field(String, default=None) + log_path = Field(String, default=None) + #issue = ManyToOne('IssueRecord') # NOTE: this is the parent relation to fb records. first create the # action record, then append to this value all of the findbad records we