{
  "repo": "pingcap/diag",
  "binary": "k8s",
  "binary_path": "cmd/k8s/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "services": [
    {
      "name": "DiagK8sServer",
      "package": "k8s/server",
      "methods": [
        {
          "name": "GET /api/v1/",
          "name_key": "HTTP GET /api/v1/",
          "input": "none",
          "output": "embedded API doc page",
          "path": "/api/v1/",
          "type": "http"
        },
        {
          "name": "GET /api/v1/version",
          "name_key": "HTTP GET /api/v1/version",
          "input": "none",
          "output": "version and Go runtime info",
          "path": "/api/v1/version",
          "type": "http"
        },
        {
          "name": "GET /api/v1/status",
          "name_key": "HTTP GET /api/v1/status",
          "input": "none",
          "output": "empty 200 status response",
          "path": "/api/v1/status",
          "type": "http"
        },
        {
          "name": "GET /api/v1/collectors",
          "name_key": "HTTP GET /api/v1/collectors",
          "input": "none",
          "output": "collector job list",
          "path": "/api/v1/collectors",
          "type": "http"
        },
        {
          "name": "GET /api/v1/data",
          "name_key": "HTTP GET /api/v1/data",
          "input": "none",
          "output": "data set list",
          "path": "/api/v1/data",
          "type": "http"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "cmd/k8s is a separate Gin-based REST API server for Kubernetes deployments of diag."
    ]
  }
}
