> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get SLA metrics JSON Schema

> Get SLA metrics JSON Schema contract. Includes route metadata, request parameters, response statuses, examples, and JSON fields for implementation.

Source OpenAPI: 0xArchive API 1.5.0; 140 paths; 119 component schemas.

Get SLA compliance metrics for a specific month including uptime, completeness, and latency targets vs actuals.

## Route Metadata

| Field                | Value                  |
| -------------------- | ---------------------- |
| Method               | `GET`                  |
| Path                 | `/v1/data-quality/sla` |
| operationId          | `getSlaMetrics`        |
| Tag                  | Data Quality           |
| Family               | Data Quality           |
| Deprecated or legacy | no                     |

## Request Parameters

### Query Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getSlaMetrics query parameters",
  "type": "object",
  "properties": {
    "year": {
      "description": "Year (defaults to current year)",
      "type": "integer",
      "example": 2026,
      "x-parameter-location": "query"
    },
    "month": {
      "description": "Month 1-12 (defaults to current month)",
      "type": "integer",
      "minimum": 1,
      "maximum": 12,
      "example": 1,
      "x-parameter-location": "query"
    }
  }
}
```

## Response Contracts

### Status 200

SLA metrics

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getSlaMetrics response 200",
  "description": "SLA compliance response",
  "type": "object",
  "properties": {
    "actual": {
      "type": "object",
      "properties": {
        "api_latency_p99_ms": {
          "type": "integer"
        },
        "completeness_status": {
          "type": "string",
          "enum": [
            "met",
            "missed"
          ]
        },
        "data_completeness": {
          "type": "object",
          "properties": {
            "fills": {
              "type": "number"
            },
            "funding": {
              "type": "number"
            },
            "orderbook": {
              "type": "number"
            },
            "overall": {
              "type": "number"
            }
          }
        },
        "latency_status": {
          "type": "string",
          "enum": [
            "met",
            "missed"
          ]
        },
        "uptime": {
          "type": "number"
        },
        "uptime_status": {
          "type": "string",
          "enum": [
            "met",
            "missed"
          ]
        }
      }
    },
    "incidents_this_period": {
      "type": "integer"
    },
    "period": {
      "description": "Period covered (e.g., '2026-01')",
      "type": "string"
    },
    "sla_targets": {
      "type": "object",
      "properties": {
        "api_latency_p99_ms": {
          "description": "API P99 latency target in ms",
          "type": "integer"
        },
        "data_completeness": {
          "description": "Data completeness target percentage",
          "type": "number"
        },
        "uptime": {
          "description": "Uptime target percentage",
          "type": "number"
        }
      }
    },
    "total_downtime_minutes": {
      "type": "integer"
    }
  }
}
```

### Status 401

Authentication required

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getSlaMetrics response 401",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
```
