{
  "repo": "tidbcloud/tiflash-autoscale",
  "binary": "server",
  "binary_path": "manager/cmd/server/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "services": [
    {
      "name": "MetricsAPI",
      "type": "http",
      "methods": [
        {
          "name": "Metrics",
          "name_key": "HTTP GET /metrics",
          "path": "/metrics",
          "method": "GET",
          "description": "Prometheus metrics endpoint for Go runtime, process metrics, and request middleware counters."
        }
      ]
    },
    {
      "name": "ManagerAPI",
      "type": "http",
      "methods": [
        {
          "name": "GetCluster",
          "name_key": "HTTP GET /v1/cluster",
          "path": "/v1/cluster",
          "method": "GET",
          "description": "Resolve a tenant or tenant token to a TiFlash pool and return the current cluster pod addresses."
        },
        {
          "name": "DumpClusters",
          "name_key": "HTTP GET /v1/clusters",
          "path": "/v1/clusters",
          "method": "GET",
          "description": "Return every tracked TiFlash pool with its current running pods."
        },
        {
          "name": "ResumeAndGetTopology",
          "name_key": "HTTP GET /resume-and-get-topology",
          "path": "/resume-and-get-topology",
          "method": "GET",
          "description": "Resolve the tenant to a pool and return the TiFlash topology addresses in the legacy topology response format."
        },
        {
          "name": "Healthz",
          "name_key": "HTTP GET /healthz",
          "path": "/healthz",
          "method": "GET",
          "description": "Simple liveness endpoint returning OK."
        }
      ]
    }
  ],
  "extensions": {}
}
