# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.satoshiterminal.io/resources/copy-of-defi-analytics/governance-analytics/decentralized-oracle-health-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
