Initial Commit
This commit is contained in:
34
api/app/models/nutanix/reports/prismCentral/report.py
Normal file
34
api/app/models/nutanix/reports/prismCentral/report.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from sqlalchemy import (
|
||||
Column,
|
||||
Integer,
|
||||
ForeignKey
|
||||
)
|
||||
|
||||
from models.common.base import BaseModel
|
||||
|
||||
|
||||
class npcreport(BaseModel):
|
||||
"""
|
||||
description: Nutanix prism central report model
|
||||
"""
|
||||
__tablename__ = "tnrpc_report"
|
||||
_s_collection_name = "npcreport"
|
||||
_s_class_name = "prismCentral"
|
||||
|
||||
id = Column(Integer, primary_key=True, autoincrement=True, index=True)
|
||||
vms_total = Column(Integer, nullable=False)
|
||||
cert_status = Column(Integer, nullable=False)
|
||||
aos_status = Column(Integer, nullable=False)
|
||||
projects_total = Column(Integer, nullable=False)
|
||||
|
||||
alerts_crit_ack = Column(Integer, nullable=False)
|
||||
alerts_crit_nack = Column(Integer, nullable=False)
|
||||
alerts_warn_ack = Column(Integer, nullable=False)
|
||||
alerts_warn_nack = Column(Integer, nullable=False)
|
||||
|
||||
pcentral_id = Column(
|
||||
Integer,
|
||||
ForeignKey("tnc_pcentrals.id"),
|
||||
nullable=False,
|
||||
index=True
|
||||
)
|
||||
Reference in New Issue
Block a user