> ## 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.8.0; 227 paths; 217 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 |

## Human endpoint reference

Open [`GET /v1/data-quality/sla`](/api-reference/data-quality/get-sla-metrics) for authentication, parameters, responses, and examples.

## 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"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "param": {
      "description": "The parameter at fault, when the error is about one parameter.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    },
    "success": {
      "description": "Always false on an error.",
      "type": "boolean",
      "example": false
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 401,
  "error": "Missing authentication credentials. Provide X-API-Key header or Bearer token.",
  "error_code": "unauthorized",
  "request_id": "71ed4b6f-63ef-4ae1-a123-07ffa47c1c14",
  "success": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.