{
  "repo": "pingcap/dm",
  "binary": "dm-worker",
  "binary_path": "cmd/dm-worker/main.go",
  "surface_kind": "mixed_service",
  "type": "mixed_service",
  "extensions": {},
  "services": [
    {
      "name": "WorkerRPC",
      "type": "grpc",
      "methods": [
        {
          "name": "QueryStatus",
          "name_key": "WorkerRPC.QueryStatus",
          "description": "gRPC endpoint for reporting worker and subtask status."
        },
        {
          "name": "PurgeRelay",
          "name_key": "WorkerRPC.PurgeRelay",
          "description": "gRPC endpoint for operating relay logs."
        }
      ]
    },
    {
      "name": "StatusAPI",
      "type": "http",
      "methods": [
        {
          "name": "Status",
          "name_key": "StatusAPI.Status",
          "path": "/status",
          "method": "GET",
          "description": "Worker status endpoint on the cmux HTTP listener."
        }
      ]
    },
    {
      "name": "MetricsAPI",
      "type": "http",
      "methods": [
        {
          "name": "Metrics",
          "name_key": "MetricsAPI.Metrics",
          "path": "/metrics",
          "method": "GET",
          "description": "Prometheus metrics on the cmux HTTP listener."
        }
      ]
    },
    {
      "name": "DebugAPI",
      "type": "http",
      "methods": [
        {
          "name": "PprofIndex",
          "name_key": "DebugAPI.PprofIndex",
          "path": "/debug/pprof/",
          "method": "GET",
          "description": "pprof index on the worker HTTP status listener."
        }
      ]
    }
  ]
}
