{
  "repo": "tidbcloud/metrics-server",
  "binary": "db_migration",
  "binary_path": "cmd/db_migration/main.go",
  "surface_kind": "worker_service",
  "type": "worker_service",
  "services": [
    {
      "name": "MigrationLifecycle",
      "type": "local",
      "methods": [
        {
          "name": "Startup",
          "name_key": "Runtime MigrationLifecycle.Startup",
          "input": "config-path",
          "output": "database initialized + HTTP server on :11000",
          "type": "local"
        }
      ]
    },
    {
      "name": "HealthService",
      "type": "http",
      "methods": [
        {
          "name": "GET /ping",
          "name_key": "HTTP GET /ping",
          "input": "none",
          "output": "pong"
        },
        {
          "name": "GET /healthz",
          "name_key": "HTTP GET /healthz",
          "input": "none",
          "output": "pong"
        },
        {
          "name": "GET /metrics",
          "name_key": "HTTP GET /metrics",
          "input": "none",
          "output": "Prometheus metrics"
        }
      ]
    }
  ],
  "extensions": {}
}
