> For the complete documentation index, see [llms.txt](https://docs.satoshiterminal.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.satoshiterminal.io/resources/copy-of-defi-analytics/governance-analytics/decentralized-oracle-health-metrics.md).

# Decentralized Oracle Health Metrics

**Implementation Details**

**Class Names**

| Model Name                       | Parameters Class        | Data Class       |
| -------------------------------- | ----------------------- | ---------------- |
| DecentralizedOracleHealthMetrics | OracleHealthQueryParams | OracleHealthData |

**Import Statement**

```python
pythonCopyEditfrom satoshi_terminal.models.decentralized_oracle_health_metrics import (
    DecentralizedOracleHealthMetrics,
    OracleHealthQueryParams,
    OracleHealthData,
)
```

***

**Parameters**

| Name                 | Type                    | Description                                                                   | Default | Optional |
| -------------------- | ----------------------- | ----------------------------------------------------------------------------- | ------- | -------- |
| oracle\_name         | Union\[str, List\[str]] | Name(s) of decentralized oracles to monitor (e.g., Chainlink, Band Protocol). | None    | False    |
| health\_metric\_type | str                     | Specific health metrics to analyze (e.g., "Uptime," "Response Time").         | None    | True     |
| time\_horizon        | int                     | Time window (in hours) for tracking oracle health metrics.                    | 24      | True     |

***

**Data**

| Name                    | Type     | Description                                                 |
| ----------------------- | -------- | ----------------------------------------------------------- |
| oracle\_name            | str      | Name of the oracle analyzed.                                |
| uptime\_percentage      | float    | Percentage of time the oracle was operational.              |
| average\_response\_time | float    | Average response time for data retrieval (in milliseconds). |
| anomaly\_flags          | int      | Number of anomalies detected during the time horizon.       |
| timestamp               | datetime | Timestamp of the oracle health analysis.                    |

***

**Key Features**

* **Uptime Monitoring:** Tracks operational reliability of decentralized oracles.
* **Performance Metrics:** Measures response times and identifies latency issues.
* **Anomaly Detection:** Flags unusual behavior or downtime that may impact oracle reliability.
