{
  "repo": "tidbcloud/dataflow-service",
  "binary": "dataflow-agent-ng",
  "binary_path": "dataflow-agent-ng/cmd/main.go",
  "dependencies": {
    "Runtime DataflowAgentNgRuntime.Server": {
      "infrastructure": {
        "grpc": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "SERVE GRPC",
              "trigger": "Start the nextgen agent gRPC runtime",
              "conditions": [
                "The agent-ng binary starts successfully"
              ],
              "implementation": "dataflow-agent-ng/agent/grpc.StartGRPCServer(...)"
            }
          ]
        },
        "http": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "SERVE HTTP",
              "trigger": "Start the nextgen agent HTTP gateway/runtime",
              "conditions": [
                "The agent-ng binary starts successfully"
              ],
              "implementation": "dataflow-agent-ng/agent/http.StartHttpServer(...)"
            }
          ]
        }
      },
      "services": []
    }
  }
}
