{
  "repo": "tidbcloud/metering",
  "binary": "networkmetering",
  "binary_path": "cmd/networkmetering/main.go",
  "surface_kind": "worker_service",
  "type": "worker_service",
  "services": [
    {
      "name": "NetworkMetering",
      "package": "github.com/tidbcloud/metering/cmd/networkmetering",
      "methods": [
        {
          "name": "main",
          "name_key": "Runtime NetworkMetering.main",
          "input": "serviceconfig path flag + API_GATEWAY_AUTH_KEY env",
          "output": "scheduled network metering worker with shared HTTP health and metrics endpoints",
          "type": "worker"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "cmd/networkmetering/main.go builds a periodic scheduler and then calls httpapi.StartService.",
      "pkg/httpapi/route.go registers /healthz, /readyz, /metrics, and optional /debug/pprof routes."
    ]
  }
}
