---
# System prepended metadata

title: Header ->

---

# UI API Calls 

# Header 

### Total Api Calls (12)
* listThings (2)
    * Minerpool
    * Site Powermeter
* tailLog (4)
    * t-miner
    * t-powermeter
    * t-container
    * t-electricity
* userinfo (1)
* getActions (5)
    * batch
    * done
    * executing
    * ready
    * voting

#### Used for:
* Realtime miners
    * Moria - tailLog (t-miner)
        * hashrate_mhs_1m_cnt_active_aggr
        * hashrate_mhs_1m_cnt_aggr
    * Pool - listThings (t-minerpool)
        * worker_count
* Realtime hashrate
    * Moria - tailLog (t-miner) 
        * hashrate_mhs_1m_sum_aggr
* Realtime Consumption
    * listThings (t-powermeter)
        * snap?.stats?.power_w
* Power available current / next hour
* Efficiency 
    * Power - listThings (t-powermeter)
        * snap?.stats?.power_w
    * Hashrate - tailLog (t-miner) 
        * hashrate_mhs_1m_sum_aggr 
* Total Alerts
    * Container- tailLog
    * Miner - tailLog
    * Powermeter - tailLog
* Actions
* User info 


# Reporting Tools
        
## Dashboard

### Total Api Calls (6) 
The header api calls can be reused. One one api call for aggrTimes would be needed 
* listThings (2)
    * Minerpool
    * Site Powermeter
* tailLog (4)
    * t-miner
    * t-miner - AggrTimes

## ADME stats (4)
Cannot be optimized to reduce the api calls as the charts need seperate api calls. Charts api call data can be optimized to get only required data
* tailLog (4)  
    * Active Energy chart (1)
    * Reactive Energy chart (1)
    * SpotPriceLineChart (1)
    * Table (1)

## UTE energy (3)
Cannot be optimized to reduce the api calls as the charts need seperate api calls. Charts api call data can be optimized to get only required data
* tailLog (3)  
    * UTE enegy next hour (1)
    * UTE Energy chart (1)
    * Table (1)


## Hashrate Reports

### Site (4)
Cannot be optimized to reduce the api calls as the charts need seperate api calls. Charts api call data can be optimized to get only required data
* tailLog (4)  
    * Chart (2) (t-miner / t-minerpool)
    * Table (2) (t-miner / t-minerpool)

### Container (3)
* listThings (2)
    * Containers 
    * Minerpool
* tailLog (1)
    * Miner 

### Single Worker (3)
* listThings (1) 
    * Miner id
* tailLog (2)
    * Miner id
    * Minerpool 

### Balance Reports (3)
Cannot be optimized to reduce the api calls as the charts need seperate api calls. Charts api call data can be optimized to get only required data
* tailLog (3)  
    * Balance chart (1)
    * Revenue chart (1)
    * Table (1)

### Site KPI
+ Multiple sites data is pending 
* tailLog (10)
    * Charts (6)
        * Miners online
            * pool (1)
            * moria (1)
        * Hashrate
            * pool (1)
            * moria (1)
        * Consumption (1)
        * Miner type wise hashrate (1)
    * Others (4)
        * Miner logs
        * Miner aggr logs
        * power meter logs
        * Minerpool aggr logs
* listThings (2)
    * Powermeter
    * Minerpool

### Container KPI
+ Multiple sites data is pending 
* tailLog (3)
    * miner (1)
    * container (1)
    * container over rage (1)
* listThings (1)
    * Container list

### Miner KPI
* tailLog (2)
    * miner (1)
    * chart (1)
* listThings (1)
    * Container list

### Site Operations
+ Multiple sites data is pending 
* tailLog (4)
    * minerpool
    * minerpool aggr
    * miner 
    * miner aggr
* Get ext data mempool (1)


### Production data
* production data (1)
* miner pool tx data (taillog / listThing) (2)
* Get ext data mempool (1)

### BTC data page
* Get ext data mempool (1)

### Weather page
* Get ext data openweather (1)

### Site energy data
* Tail log (3)
    * charts (3)



