Código fonte para asgard.models.app

import abc

from .base import BaseModel, ModelFactory


[documentos]class App(BaseModel, abc.ABC): id: str
[documentos] @abc.abstractclassmethod def transform_to_asgard_app_id(cls, name: str) -> str: raise NotImplementedError
[documentos]class AppStats(BaseModel): type: str = "ASGARD" cpu_pct: str ram_pct: str cpu_thr_pct: str
AppFactory = ModelFactory(App)