OpServ-Monitoring/opserv-backend

View on GitHub
app/server/restful_api/data/v1/endpoints/system_cpus.py

Summary

Maintainability
A
0 mins
Test Coverage
from .system__general_child import SystemGeneralChildEndpoint


class SystemCpusEndpoint(SystemGeneralChildEndpoint):
    @classmethod
    def _get_component_metric(cls) -> str:
        return "cpus"

    @classmethod
    def get_name(cls):
        return "GIVE ME A NAME"

    @classmethod
    def get_paths(cls):
        return [
            "/system/cpus"
        ]