Skip to content

Summary

Bases: Base

ORM model for the 'summary' 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.

id str

ID of the summary.

worker_id str

Worker ID.

uptime int

Uptime of the miner.

restricted bool

Whether the miner is restricted.

resources dict

Resources data.

resources_memory dict

Memory resources data.

resources_memory_free int

Free memory.

resources_memory_total int

Total memory.

resources_memory_rsm int

RSM memory.

resources_load_average dict

Load average data.

resources_hardware_concurrency int

Hardware concurrency.

features dict

Features data.

results dict

Results data.

results_diff_current int

Current difficulty.

results_shares_good int

Good shares.

results_shares_total int

Total shares.

results_avg_time int

Average time.

results_avg_time_ms int

Average time in milliseconds.

results_hashes_total int

Total hashes.

results_best dict

Best results data.

algo str

Algorithm.

connection dict

Connection data.

connection_pool str

Connection pool.

connection_ip str

Connection IP.

connection_uptime int

Connection uptime.

connection_uptime_ms int

Connection uptime in milliseconds.

connection_ping int

Connection ping.

connection_failures int

Connection failures.

connection_tls dict

TLS connection data.

connection_tls_fingerprint dict

TLS fingerprint data.

connection_algo str

Connection algorithm.

connection_diff int

Connection difficulty.

connection_accepted int

Accepted connections.

connection_rejected int

Rejected connections.

connection_avg_time int

Average connection time.

connection_avg_time_ms int

Average connection time in milliseconds.

connection_hashes_total int

Total connection hashes.

version str

Version.

kind str

Kind.

ua str

User agent.

cpu dict

CPU data.

cpu_brand str

CPU brand.

cpu_family int

CPU family.

cpu_model int

CPU model.

cpu_stepping int

CPU stepping.

cpu_proc_info int

CPU processor info.

cpu_aes bool

CPU AES support.

cpu_avx2 bool

CPU AVX2 support.

cpu_x64 bool

CPU x64 support.

cpu_64_bit bool

CPU 64-bit support.

cpu_l2 int

CPU L2 cache size.

cpu_l3 int

CPU L3 cache size.

cpu_cores int

Number of CPU cores.

cpu_threads int

Number of CPU threads.

cpu_packages int

Number of CPU packages.

cpu_nodes int

Number of CPU nodes.

cpu_backend str

CPU backend.

cpu_msr str

CPU MSR.

cpu_assembly str

CPU assembly.

cpu_arch str

CPU architecture.

cpu_flags dict

CPU flags.

donate_level int

Donation level.

paused bool

Whether the miner is paused.

algorithms dict

Algorithms data.

hashrate dict

Hashrate data.

hashrate_total dict

Total hashrate.

hashrate_highest float

Highest hashrate.

hugepages dict

Hugepages data.

Source code in xmrig/models.py
class Summary(Base):
    """
    ORM model for the 'summary' 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.
        id (str): ID of the summary.
        worker_id (str): Worker ID.
        uptime (int): Uptime of the miner.
        restricted (bool): Whether the miner is restricted.
        resources (dict): Resources data.
        resources_memory (dict): Memory resources data.
        resources_memory_free (int): Free memory.
        resources_memory_total (int): Total memory.
        resources_memory_rsm (int): RSM memory.
        resources_load_average (dict): Load average data.
        resources_hardware_concurrency (int): Hardware concurrency.
        features (dict): Features data.
        results (dict): Results data.
        results_diff_current (int): Current difficulty.
        results_shares_good (int): Good shares.
        results_shares_total (int): Total shares.
        results_avg_time (int): Average time.
        results_avg_time_ms (int): Average time in milliseconds.
        results_hashes_total (int): Total hashes.
        results_best (dict): Best results data.
        algo (str): Algorithm.
        connection (dict): Connection data.
        connection_pool (str): Connection pool.
        connection_ip (str): Connection IP.
        connection_uptime (int): Connection uptime.
        connection_uptime_ms (int): Connection uptime in milliseconds.
        connection_ping (int): Connection ping.
        connection_failures (int): Connection failures.
        connection_tls (dict): TLS connection data.
        connection_tls_fingerprint (dict): TLS fingerprint data.
        connection_algo (str): Connection algorithm.
        connection_diff (int): Connection difficulty.
        connection_accepted (int): Accepted connections.
        connection_rejected (int): Rejected connections.
        connection_avg_time (int): Average connection time.
        connection_avg_time_ms (int): Average connection time in milliseconds.
        connection_hashes_total (int): Total connection hashes.
        version (str): Version.
        kind (str): Kind.
        ua (str): User agent.
        cpu (dict): CPU data.
        cpu_brand (str): CPU brand.
        cpu_family (int): CPU family.
        cpu_model (int): CPU model.
        cpu_stepping (int): CPU stepping.
        cpu_proc_info (int): CPU processor info.
        cpu_aes (bool): CPU AES support.
        cpu_avx2 (bool): CPU AVX2 support.
        cpu_x64 (bool): CPU x64 support.
        cpu_64_bit (bool): CPU 64-bit support.
        cpu_l2 (int): CPU L2 cache size.
        cpu_l3 (int): CPU L3 cache size.
        cpu_cores (int): Number of CPU cores.
        cpu_threads (int): Number of CPU threads.
        cpu_packages (int): Number of CPU packages.
        cpu_nodes (int): Number of CPU nodes.
        cpu_backend (str): CPU backend.
        cpu_msr (str): CPU MSR.
        cpu_assembly (str): CPU assembly.
        cpu_arch (str): CPU architecture.
        cpu_flags (dict): CPU flags.
        donate_level (int): Donation level.
        paused (bool): Whether the miner is paused.
        algorithms (dict): Algorithms data.
        hashrate (dict): Hashrate data.
        hashrate_total (dict): Total hashrate.
        hashrate_highest (float): Highest hashrate.
        hugepages (dict): Hugepages data.
    """
    __tablename__ = "summary"
    uid = Column(Integer, primary_key=True)
    miner_name = Column(String)
    timestamp = Column(DateTime, default=datetime.now)
    full_json = Column(JSON)
    id = Column(String)
    worker_id = Column(String)
    uptime = Column(Integer)
    restricted = Column(Boolean)
    resources = Column(JSON)
    resources_memory = Column(JSON)
    resources_memory_free = Column(Integer)
    resources_memory_total = Column(Integer)
    resources_memory_rsm = Column(Integer)
    resources_load_average = Column(JSON)
    resources_hardware_concurrency = Column(Integer)
    features = Column(JSON)
    results = Column(JSON)
    results_diff_current = Column(Integer)
    results_shares_good = Column(Integer)
    results_shares_total = Column(Integer)
    results_avg_time = Column(Integer)
    results_avg_time_ms = Column(Integer)
    results_hashes_total = Column(Integer)
    results_best = Column(JSON)
    algo = Column(String)
    connection = Column(JSON)
    connection_pool = Column(String)
    connection_ip = Column(String)
    connection_uptime = Column(Integer)
    connection_uptime_ms = Column(Integer)
    connection_ping = Column(Integer)
    connection_failures = Column(Integer)
    connection_tls = Column(JSON)
    connection_tls_fingerprint = Column(JSON)
    connection_algo = Column(String)
    connection_diff = Column(Integer)
    connection_accepted = Column(Integer)
    connection_rejected = Column(Integer)
    connection_avg_time = Column(Integer)
    connection_avg_time_ms = Column(Integer)
    connection_hashes_total = Column(Integer)
    version = Column(String)
    kind = Column(String)
    ua = Column(String)
    cpu = Column(JSON)
    cpu_brand = Column(String)
    cpu_family = Column(Integer)
    cpu_model = Column(Integer)
    cpu_stepping = Column(Integer)
    cpu_proc_info = Column(Integer)
    cpu_aes = Column(Boolean)
    cpu_avx2 = Column(Boolean)
    cpu_x64 = Column(Boolean)
    cpu_64_bit = Column(Boolean)
    cpu_l2 = Column(Integer)
    cpu_l3 = Column(Integer)
    cpu_cores = Column(Integer)
    cpu_threads = Column(Integer)
    cpu_packages = Column(Integer)
    cpu_nodes = Column(Integer)
    cpu_backend = Column(String)
    cpu_msr = Column(String)
    cpu_assembly = Column(String)
    cpu_arch = Column(String)
    cpu_flags = Column(JSON)
    donate_level = Column(Integer)
    paused = Column(Boolean)
    algorithms = Column(JSON)
    hashrate = Column(JSON)
    hashrate_total = Column(JSON)
    hashrate_highest = Column(Float)
    hugepages = Column(JSON)