app/server/restful_api/data/v1/endpoints/system_gpus.py
from .system__general_child import SystemGeneralChildEndpoint
class SystemGpusEndpoint(SystemGeneralChildEndpoint):
@classmethod
def _get_component_metric(cls) -> str:
return "gpus"
@classmethod
def get_name(cls):
return "GIVE ME A NAME"
@classmethod
def get_paths(cls):
return [
"/system/gpus"
]