{
  "repo": "tidbcloud/shared-provider",
  "binary": "dispatcher",
  "binary_path": "cmd/dispatcher/main.go",
  "surface_kind": "controller_service",
  "type": "controller_service",
  "extensions": {},
  "services": [
    {
      "name": "HealthService",
      "type": "http",
      "methods": [
        {
          "name": "healthz",
          "name_key": "HealthService.healthz",
          "path": "/healthz",
          "method": "GET",
          "description": "Health check endpoint"
        },
        {
          "name": "readyz",
          "name_key": "HealthService.readyz",
          "path": "/readyz",
          "method": "GET",
          "description": "Readiness check endpoint"
        }
      ]
    },
    {
      "name": "MetricsService",
      "type": "http",
      "methods": [
        {
          "name": "metrics",
          "name_key": "MetricsService.metrics",
          "path": "/metrics",
          "method": "GET",
          "description": "Prometheus metrics endpoint exposed on metrics-bind-address"
        }
      ]
    },
    {
      "name": "NetworkDispatcher",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "NetworkDispatcher.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Dispatches Network resources to different kube clusters based on scheduling"
        }
      ]
    },
    {
      "name": "ClusterDispatcher",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "ClusterDispatcher.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Dispatches Cluster resources to different kube clusters based on reschedule threshold"
        }
      ]
    },
    {
      "name": "RestoreDispatcher",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "RestoreDispatcher.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Dispatches Restore resources"
        }
      ]
    },
    {
      "name": "BackupDispatcher",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "BackupDispatcher.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Dispatches Backup resources"
        }
      ]
    },
    {
      "name": "ImportDispatcher",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "ImportDispatcher.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Dispatches Import resources"
        }
      ]
    }
  ]
}
