IW4M-Admin/Master/master/models/instancemodel.py

12 lines
340 B
Python
Raw Normal View History

2018-04-18 16:46:53 -04:00
import time
class InstanceModel(object):
def __init__(self, id, version, uptime, servers):
self.id = id
self.version = version
self.uptime = uptime
self.servers = servers
self.last_heartbeat = int(time.time())
def __repr__(self):
return '<InstanceModel(id={id})>'.format(id=self.id)