Activity models¶
Pydantic models for activity, crash counters, and watchdog timers.
rainbowminer_api_client.models.activity ¶
Models for activity and watchdog endpoints.
Covers: /activity, /watchdogtimers, /crashcounter.
Activity ¶
Bases: RainbowMinerModel
An entry from /activity — a mining activity record.
Attributes:
| Name | Type | Description |
|---|---|---|
ActiveStart |
str | None
|
Activity start timestamp. |
ActiveLast |
str | None
|
Last seen active timestamp. |
Name |
str | None
|
Miner name. |
Device |
list[str] | None
|
Device identifiers. |
Algorithm |
list[str] | None
|
Algorithm(s) mined. |
Pool |
list[str] | None
|
Pool(s) used. |
Speed |
list[Any] | None
|
Hashrate(s). |
Ratio |
list[Any] | None
|
Efficiency ratio(s). |
Crashed |
bool
|
Whether the miner crashed. |
OCmode |
bool
|
Whether OC mode was active. |
OCP |
dict[str, Any] | None
|
OC profile applied. |
Profit |
float | int | None
|
Average profit during the activity. |
PowerDraw |
float | int | None
|
Average power draw in watts. |
TotalPowerDraw |
float | int | None
|
Total energy consumed (Wh). |
TotalProfit |
float | int | None
|
Total profit earned. |
Active |
float | int | None
|
Duration in minutes. |
Donation |
bool
|
Whether this was a donation run. |
WatchdogTimer ¶
Bases: RainbowMinerModel
An entry from /watchdogtimers.
CrashCounter ¶
Bases: RainbowMinerModel
An entry from /crashcounter.