{
  "repo": "tidbcloud/shared-provider",
  "binary": "throttler",
  "binary_path": "cmd/throttler/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": "ThrottlerReconciler",
      "type": "controller",
      "methods": [
        {
          "name": "Reconcile",
          "name_key": "ThrottlerReconciler.Reconcile",
          "input": "ctrl.Request",
          "output": "ctrl.Result",
          "description": "Watches TidbCluster and Pod resources to apply bandwidth throttling via TC (traffic control)"
        }
      ]
    }
  ]
}
