-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from fabric-testbed/375-slice-metrics-for-por…
…tal-to-display 375 slice metrics for portal to display
- Loading branch information
Showing
28 changed files
with
833 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
# Author: Komal Thareja ([email protected]) | ||
|
||
from sqlalchemy import JSON, ForeignKey, LargeBinary, Index, TIMESTAMP | ||
from sqlalchemy.dialects.postgresql import JSONB | ||
from sqlalchemy.orm import declarative_base | ||
from sqlalchemy import Column, String, Integer, Sequence | ||
from sqlalchemy.orm import relationship | ||
|
@@ -92,6 +93,17 @@ class Miscellaneous(Base): | |
properties = Column(JSON) | ||
|
||
|
||
class Metrics(Base): | ||
""" | ||
Represents Metrics Database Table | ||
""" | ||
__tablename__ = 'Metrics' | ||
m_id = Column(Integer, Sequence('m_id', start=1, increment=1), autoincrement=True, primary_key=True) | ||
user_id = Column(String, nullable=False, index=True) | ||
project_id = Column(String, nullable=False, index=True) | ||
slice_count = Column(Integer, nullable=False) | ||
|
||
|
||
class Proxies(Base): | ||
""" | ||
Represents Proxies Database Table | ||
|
Oops, something went wrong.