metrics are working!!!

This commit is contained in:
2020-05-13 00:28:53 -05:00
parent 7337375ae8
commit 30464ac8e5
25 changed files with 601 additions and 81 deletions

@ -111,6 +111,10 @@ class DBModel:
)
self.connection.commit()
# def vm_exists(self, email, id):
# self.cursor.execute("SELECT id FROM vms WHERE email = %s AND id = %s ", (email, id))
# return len(self.cursor.fetchall()) > 0
def get_vm_detail(self, email, id):
self.cursor.execute("""
SELECT vms.id, vms.last_seen_ipv4, vms.last_seen_ipv6, os_images.description, vms.created, vms.deleted,