Skip to content

Backends

Bases: Base

ORM model for the 'backends' table.

Attributes:

Name Type Description
uid int

Primary key.

miner_name str

Name of the miner.

timestamp datetime

Timestamp of the record.

full_json dict

Full JSON data.

cpu dict

CPU data.

cpu_type str

CPU type.

cpu_enabled bool

Whether CPU is enabled.

cpu_algo str

CPU algorithm.

cpu_profile str

CPU profile.

cpu_hw_aes bool

Whether CPU hardware AES is enabled.

cpu_priority int

CPU priority.

cpu_msr bool

Whether CPU MSR is enabled.

cpu_asm str

CPU assembly.

cpu_argon2_impl str

CPU Argon2 implementation.

cpu_hugepages dict

CPU hugepages data.

cpu_memory int

CPU memory.

cpu_hashrate dict

CPU hashrate data.

cpu_threads dict

CPU threads data.

opencl dict

OpenCL data.

opencl_type str

OpenCL type.

opencl_enabled bool

Whether OpenCL is enabled.

opencl_algo str

OpenCL algorithm.

opencl_profile str

OpenCL profile.

opencl_platform dict

OpenCL platform data.

opencl_platform_index int

OpenCL platform index.

opencl_platform_profile str

OpenCL platform profile.

opencl_platform_version str

OpenCL platform version.

opencl_platform_name str

OpenCL platform name.

opencl_platform_vendor str

OpenCL platform vendor.

opencl_platform_extensions str

OpenCL platform extensions.

opencl_hashrate dict

OpenCL hashrate data.

opencl_threads dict

OpenCL threads data.

cuda dict

CUDA data.

cuda_type str

CUDA type.

cuda_enabled bool

Whether CUDA is enabled.

cuda_algo str

CUDA algorithm.

cuda_profile str

CUDA profile.

cuda_versions dict

CUDA versions data.

cuda_versions_cuda_runtime str

CUDA runtime version.

cuda_versions_cuda_driver str

CUDA driver version.

cuda_versions_plugin str

CUDA plugin version.

cuda_hashrate dict

CUDA hashrate data.

cuda_threads dict

CUDA threads data.

Source code in xmrig/models.py
class Backends(Base):
    """
    ORM model for the 'backends' table.

    Attributes:
        uid (int): Primary key.
        miner_name (str): Name of the miner.
        timestamp (datetime): Timestamp of the record.
        full_json (dict): Full JSON data.
        cpu (dict): CPU data.
        cpu_type (str): CPU type.
        cpu_enabled (bool): Whether CPU is enabled.
        cpu_algo (str): CPU algorithm.
        cpu_profile (str): CPU profile.
        cpu_hw_aes (bool): Whether CPU hardware AES is enabled.
        cpu_priority (int): CPU priority.
        cpu_msr (bool): Whether CPU MSR is enabled.
        cpu_asm (str): CPU assembly.
        cpu_argon2_impl (str): CPU Argon2 implementation.
        cpu_hugepages (dict): CPU hugepages data.
        cpu_memory (int): CPU memory.
        cpu_hashrate (dict): CPU hashrate data.
        cpu_threads (dict): CPU threads data.
        opencl (dict): OpenCL data.
        opencl_type (str): OpenCL type.
        opencl_enabled (bool): Whether OpenCL is enabled.
        opencl_algo (str): OpenCL algorithm.
        opencl_profile (str): OpenCL profile.
        opencl_platform (dict): OpenCL platform data.
        opencl_platform_index (int): OpenCL platform index.
        opencl_platform_profile (str): OpenCL platform profile.
        opencl_platform_version (str): OpenCL platform version.
        opencl_platform_name (str): OpenCL platform name.
        opencl_platform_vendor (str): OpenCL platform vendor.
        opencl_platform_extensions (str): OpenCL platform extensions.
        opencl_hashrate (dict): OpenCL hashrate data.
        opencl_threads (dict): OpenCL threads data.
        cuda (dict): CUDA data.
        cuda_type (str): CUDA type.
        cuda_enabled (bool): Whether CUDA is enabled.
        cuda_algo (str): CUDA algorithm.
        cuda_profile (str): CUDA profile.
        cuda_versions (dict): CUDA versions data.
        cuda_versions_cuda_runtime (str): CUDA runtime version.
        cuda_versions_cuda_driver (str): CUDA driver version.
        cuda_versions_plugin (str): CUDA plugin version.
        cuda_hashrate (dict): CUDA hashrate data.
        cuda_threads (dict): CUDA threads data.
    """
    __tablename__ = "backends"
    uid = Column(Integer, primary_key=True)
    miner_name = Column(String)
    timestamp = Column(DateTime, default=datetime.now)
    full_json = Column(JSON)
    cpu = Column(JSON)
    cpu_type = Column(String)
    cpu_enabled = Column(Boolean)
    cpu_algo = Column(String)
    cpu_profile = Column(String)
    cpu_hw_aes = Column(Boolean)
    cpu_priority = Column(Integer)
    cpu_msr = Column(Boolean)
    cpu_asm = Column(String)
    cpu_argon2_impl = Column(String)
    cpu_hugepages = Column(JSON)
    cpu_memory = Column(Integer)
    cpu_hashrate = Column(JSON)
    cpu_threads = Column(JSON)
    opencl = Column(JSON)
    opencl_type = Column(String)
    opencl_enabled = Column(Boolean)
    opencl_algo = Column(String)
    opencl_profile = Column(String)
    opencl_platform = Column(JSON)
    opencl_platform_index = Column(Integer)
    opencl_platform_profile = Column(String)
    opencl_platform_version = Column(String)
    opencl_platform_name = Column(String)
    opencl_platform_vendor = Column(String)
    opencl_platform_extensions = Column(String)
    opencl_hashrate = Column(JSON)
    opencl_threads = Column(JSON)
    cuda = Column(JSON)
    cuda_type = Column(String)
    cuda_enabled = Column(Boolean)
    cuda_algo = Column(String)
    cuda_profile = Column(String)
    cuda_versions = Column(JSON)
    cuda_versions_cuda_runtime = Column(String)
    cuda_versions_cuda_driver = Column(String)
    cuda_versions_plugin = Column(String)
    cuda_hashrate = Column(JSON)
    cuda_threads = Column(JSON)