{
  "repo": "tidbcloud/metering",
  "binary": "nextgenmetering",
  "binary_path": "cmd/nextgenmetering/main.go",
  "surface_kind": "worker_service",
  "type": "worker_service",
  "services": [
    {
      "name": "NextGenMetering",
      "package": "github.com/tidbcloud/metering/cmd/nextgenmetering",
      "methods": [
        {
          "name": "main",
          "name_key": "Runtime NextGenMetering.main",
          "input": "serviceconfig path flag",
          "output": "scheduled nextgen metering worker with shared HTTP health and metrics endpoints",
          "type": "worker"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "cmd/nextgenmetering/main.go starts metering, reporter, and optional maintenance schedulers before booting the shared HTTP surface.",
      "The process remains long-running and is not a one-shot CLI."
    ]
  }
}
