TiKV · Schema

TiKV Region

Schema for a TiKV Raft region

ACIDCNCFDatabaseDistributed SystemsKey-Value StoreOpen-SourceRust

Properties

Name Type Description
id integer Region unique identifier
start_key string Region start key (hex-encoded)
end_key string Region end key (hex-encoded)
region_epoch object
peers array Raft peers for this region
leader object Current Raft leader
written_bytes integer Bytes written to region
read_bytes integer Bytes read from region
approximate_size integer Approximate region size in bytes
approximate_keys integer Approximate key count
View JSON Schema on GitHub

JSON Schema

tikv-region-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tikv/main/json-schema/tikv-region-schema.json",
  "title": "TiKV Region",
  "description": "Schema for a TiKV Raft region",
  "type": "object",
  "properties": {
    "id": {"type": "integer", "description": "Region unique identifier"},
    "start_key": {"type": "string", "description": "Region start key (hex-encoded)"},
    "end_key": {"type": "string", "description": "Region end key (hex-encoded)"},
    "region_epoch": {
      "type": "object",
      "properties": {
        "conf_ver": {"type": "integer", "description": "Configuration version"},
        "version": {"type": "integer", "description": "Region version"}
      }
    },
    "peers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "store_id": {"type": "integer"}
        }
      },
      "description": "Raft peers for this region"
    },
    "leader": {
      "type": "object",
      "properties": {
        "id": {"type": "integer"},
        "store_id": {"type": "integer"}
      },
      "description": "Current Raft leader"
    },
    "written_bytes": {"type": "integer", "description": "Bytes written to region"},
    "read_bytes": {"type": "integer", "description": "Bytes read from region"},
    "approximate_size": {"type": "integer", "description": "Approximate region size in bytes"},
    "approximate_keys": {"type": "integer", "description": "Approximate key count"}
  },
  "required": ["id"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/tikv-region"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.