{
  "asyncapi": "3.0.0",
  "channels": {
    "events": {
      "address": "/v1/events",
      "bindings": {
        "ws": {
          "query": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "description": "Channel messages of chosen hosts, jobs, key-value changes and changes to hosts and resources together. The first frame sent names what to follow; each frame received says where it came from.",
      "messages": {
        "events.channel": {
          "$ref": "#/components/messages/events.channel"
        },
        "events.dropped": {
          "$ref": "#/components/messages/events.dropped"
        },
        "events.follow": {
          "$ref": "#/components/messages/events.follow"
        },
        "events.host": {
          "$ref": "#/components/messages/events.host"
        },
        "events.job": {
          "$ref": "#/components/messages/events.job"
        },
        "events.kv": {
          "$ref": "#/components/messages/events.kv"
        },
        "events.resource": {
          "$ref": "#/components/messages/events.resource"
        }
      },
      "parameters": {},
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "host.channel": {
      "address": "/v1/hosts/{name}/controller/channel",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "since": {
                "description": "Kept messages after this id come first. Without it, only each topic's `last` message does.",
                "type": "string"
              },
              "topic": {
                "description": "Only topics starting with this.",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "Messages on the channel: the kept ones after `since`, then what arrives.",
      "messages": {
        "host.channel.message": {
          "$ref": "#/components/messages/host.channel.message"
        },
        "host.channel.publish": {
          "$ref": "#/components/messages/host.channel.publish"
        }
      },
      "parameters": {
        "name": {
          "description": "name"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": true
    },
    "host.logs": {
      "address": "/v1/hosts/{name}/controller/logs",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "since": {
                "description": "A cursor from an earlier entry, or a time journalctl understands.",
                "type": "string"
              },
              "unit": {
                "description": "Only this unit.",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "Journal entries, then what is logged.",
      "messages": {
        "host.logs.entry": {
          "$ref": "#/components/messages/host.logs.entry"
        }
      },
      "parameters": {
        "name": {
          "description": "name"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": true
    },
    "host.port": {
      "address": "/v1/hosts/{name}/controller/ports/{port}",
      "bindings": {
        "ws": {
          "query": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "description": "A TCP connection to a port on the host's loopback, 127.0.0.1. The port is dialled first, so one that nothing listens on is an error and not a stream.",
      "messages": {
        "host.port.bytes": {
          "$ref": "#/components/messages/host.port.bytes"
        },
        "host.port.eof": {
          "$ref": "#/components/messages/host.port.eof"
        }
      },
      "parameters": {
        "name": {
          "description": "name"
        },
        "port": {
          "description": "port"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "host.serve": {
      "address": "/v1/hosts/{name}/controller/services/{service}/serve",
      "bindings": {
        "ws": {
          "query": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "description": "For the program that answers a service's calls. While it is open the service is up.",
      "messages": {
        "host.serve.call": {
          "$ref": "#/components/messages/host.serve.call"
        },
        "host.serve.error": {
          "$ref": "#/components/messages/host.serve.error"
        },
        "host.serve.result": {
          "$ref": "#/components/messages/host.serve.result"
        }
      },
      "parameters": {
        "name": {
          "description": "name"
        },
        "service": {
          "description": "service"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "host.session": {
      "address": "/v1/hosts/{name}/controller/sessions/{id}",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "since": {
                "description": "Byte offset to start from. Without it a terminal replays its current screen and a process starts at the beginning.",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "A session, live: its output as it is produced, and input to it.",
      "messages": {
        "host.session.dropped": {
          "$ref": "#/components/messages/host.session.dropped"
        },
        "host.session.eof": {
          "$ref": "#/components/messages/host.session.eof"
        },
        "host.session.exited": {
          "$ref": "#/components/messages/host.session.exited"
        },
        "host.session.input": {
          "$ref": "#/components/messages/host.session.input"
        },
        "host.session.output": {
          "$ref": "#/components/messages/host.session.output"
        },
        "host.session.resize": {
          "$ref": "#/components/messages/host.session.resize"
        },
        "host.session.signal": {
          "$ref": "#/components/messages/host.session.signal"
        }
      },
      "parameters": {
        "id": {
          "description": "id"
        },
        "name": {
          "description": "name"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": true
    },
    "inbox": {
      "address": "/v1/inbox",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "host": {
                "description": "Only this host.",
                "type": "string"
              },
              "topic": {
                "description": "Only topics starting with this.",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "Messages as they are taken in from the hosts.",
      "messages": {
        "inbox.dropped": {
          "$ref": "#/components/messages/inbox.dropped"
        },
        "inbox.message": {
          "$ref": "#/components/messages/inbox.message"
        }
      },
      "parameters": {},
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "job": {
      "address": "/v1/jobs/{id}",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "since": {
                "description": "Byte offset to start from.",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "A job's output as it is produced.",
      "messages": {
        "job.exited": {
          "$ref": "#/components/messages/job.exited"
        },
        "job.output": {
          "$ref": "#/components/messages/job.output"
        }
      },
      "parameters": {
        "id": {
          "description": "id"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": true
    },
    "kv": {
      "address": "/v1/kv/{namespace}",
      "bindings": {
        "ws": {
          "query": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "description": "Changes to a namespace of the key-value store.",
      "messages": {
        "kv.dropped": {
          "$ref": "#/components/messages/kv.dropped"
        },
        "kv.removed": {
          "$ref": "#/components/messages/kv.removed"
        },
        "kv.set": {
          "$ref": "#/components/messages/kv.set"
        }
      },
      "parameters": {
        "namespace": {
          "description": "namespace"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "resource-connect": {
      "address": "/v1/resources/{id}/endpoints/{endpoint}",
      "bindings": {
        "ws": {
          "query": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "description": "A TCP connection to an endpoint its provisioner reported for a resource, named by the endpoint's name or its port. The server dials it first, so one that nothing answers on, or an address rookery refuses, is an error and not a stream.",
      "messages": {
        "resource-connect.bytes": {
          "$ref": "#/components/messages/resource-connect.bytes"
        },
        "resource-connect.eof": {
          "$ref": "#/components/messages/resource-connect.eof"
        }
      },
      "parameters": {
        "endpoint": {
          "description": "endpoint"
        },
        "id": {
          "description": "id"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    },
    "resource-logs": {
      "address": "/v1/resources/{id}/logs",
      "bindings": {
        "ws": {
          "query": {
            "properties": {
              "tail": {
                "description": "The last so many lines first; all when 0 (default 100).",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "description": "What a resource writes, as its provisioner gives it, with secrets masked: the last lines, then what follows.",
      "messages": {
        "resource-logs.exited": {
          "$ref": "#/components/messages/resource-logs.exited"
        },
        "resource-logs.output": {
          "$ref": "#/components/messages/resource-logs.output"
        }
      },
      "parameters": {
        "id": {
          "description": "id"
        }
      },
      "x-rookery-level": "host",
      "x-rookery-resumable": false
    }
  },
  "components": {
    "messages": {
      "events.channel": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "host": "server",
              "message": {
                "body": {},
                "from": {
                  "level": "host",
                  "uid": 0
                },
                "id": 1,
                "keep": "log",
                "time": "2026-11-12T10:00:00Z",
                "topic": "a/b"
              },
              "source": "channel"
            }
          }
        ],
        "name": "channel",
        "payload": {
          "type": "object"
        },
        "summary": "A message from a host's channel."
      },
      "events.dropped": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "dropped": {
                "events": 12
              }
            }
          }
        ],
        "name": "dropped",
        "payload": {
          "type": "object"
        },
        "summary": "This follower was too slow. `events` counts the server's events it missed, of every kind. Read what it follows again."
      },
      "events.follow": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "changes": [
                "hosts",
                "resources"
              ],
              "hosts": [
                "server"
              ],
              "jobs": true,
              "kv": [
                "ui"
              ],
              "topics": [
                "myplugin/"
              ]
            }
          }
        ],
        "name": "follow",
        "payload": {
          "type": "object"
        },
        "summary": "What to follow. Sent once, first."
      },
      "events.host": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "change": "renamed",
              "from": "desk",
              "host": "studio",
              "source": "host"
            }
          }
        ],
        "name": "host",
        "payload": {
          "type": "object"
        },
        "summary": "A saved host was `added`, `removed`, `renamed` (with the name it had `from`) or its profile `changed`. Read the host itself with hosts.get."
      },
      "events.job": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "job": {
                "action": "apply",
                "host": "server",
                "id": "j1",
                "started": "2026-11-12T10:00:00Z",
                "subject": "host:server"
              },
              "source": "job"
            }
          }
        ],
        "name": "job",
        "payload": {
          "type": "object"
        },
        "summary": "A job started or ended."
      },
      "events.kv": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "key": "layout",
              "namespace": "ui",
              "revision": 4,
              "source": "kv",
              "value": {}
            }
          }
        ],
        "name": "kv",
        "payload": {
          "type": "object"
        },
        "summary": "A key changed."
      },
      "events.resource": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "change": "created",
              "kind": "deployment",
              "provisioner": "docker",
              "resource": "r-k3v9qz2m",
              "source": "resource"
            }
          }
        ],
        "name": "resource",
        "payload": {
          "type": "object"
        },
        "summary": "A resource was `created`, `removed` or its record `changed`. Read it with resources.get."
      },
      "host.channel.message": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "body": {
                "percent": 40
              },
              "from": {
                "level": "agent",
                "uid": 1001
              },
              "id": 4812,
              "keep": "log",
              "time": "2026-11-12T10:00:00Z",
              "topic": "myplugin/progress"
            }
          }
        ],
        "name": "message",
        "payload": {
          "type": "object"
        },
        "summary": "One message."
      },
      "host.channel.publish": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "body": {
                "percent": 40
              },
              "keep": "none",
              "topic": "myplugin/progress"
            }
          }
        ],
        "name": "publish",
        "payload": {
          "type": "object"
        },
        "summary": "Publish a message."
      },
      "host.logs.entry": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "cursor": "s=…",
              "message": "Server listening on 0.0.0.0 port 22.",
              "priority": 6,
              "time": "2026-11-12T10:00:00Z",
              "unit": "ssh.service"
            }
          }
        ],
        "name": "entry",
        "payload": {
          "type": "object"
        },
        "summary": "One journal entry."
      },
      "host.port.bytes": {
        "contentType": "application/octet-stream",
        "name": "bytes",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "Bytes for the program on the port."
      },
      "host.port.eof": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "eof": true
            }
          }
        ],
        "name": "eof",
        "payload": {
          "type": "object"
        },
        "summary": "The client sends no more, and the program on the port reads the end. What it sends still comes back."
      },
      "host.serve.call": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "body": {},
              "from": {
                "level": "agent",
                "uid": 1001
              },
              "id": 7,
              "method": "start"
            }
          }
        ],
        "name": "call",
        "payload": {
          "type": "object"
        },
        "summary": "A call to answer."
      },
      "host.serve.error": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "error": {
                "code": "bad_request",
                "message": "no such thing"
              },
              "id": 7
            }
          }
        ],
        "name": "error",
        "payload": {
          "type": "object"
        },
        "summary": "A call that failed."
      },
      "host.serve.result": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "id": 7,
              "result": {
                "ok": true
              }
            }
          }
        ],
        "name": "result",
        "payload": {
          "type": "object"
        },
        "summary": "The answer to a call."
      },
      "host.session.dropped": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "dropped": {
                "bytes": 65536
              }
            }
          }
        ],
        "name": "dropped",
        "payload": {
          "type": "object"
        },
        "summary": "This viewer was too slow and missed output; read it back with the output call."
      },
      "host.session.eof": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "eof": true
            }
          }
        ],
        "name": "eof",
        "payload": {
          "type": "object"
        },
        "summary": "Close a process's standard input."
      },
      "host.session.exited": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "exited": {
                "exit_code": 0
              }
            }
          }
        ],
        "name": "exited",
        "payload": {
          "type": "object"
        },
        "summary": "The command ended. The last frame."
      },
      "host.session.input": {
        "contentType": "application/octet-stream",
        "name": "input",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "Terminal: bytes typed. Process: first byte 0, the rest goes to standard input."
      },
      "host.session.output": {
        "contentType": "application/octet-stream",
        "name": "output",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "Terminal: the terminal's bytes. Process: the first byte is the stream (1 stdout, 2 stderr), the rest its bytes."
      },
      "host.session.resize": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "resize": {
                "cols": 120,
                "rows": 40
              }
            }
          }
        ],
        "name": "resize",
        "payload": {
          "type": "object"
        },
        "summary": "A terminal's new size."
      },
      "host.session.signal": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "signal": "INT"
            }
          }
        ],
        "name": "signal",
        "payload": {
          "type": "object"
        },
        "summary": "INT, TERM, HUP or KILL to the session's process group."
      },
      "inbox.dropped": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "dropped": {
                "events": 12
              }
            }
          }
        ],
        "name": "dropped",
        "payload": {
          "type": "object"
        },
        "summary": "This follower was too slow. `events` counts the server's events it missed, of every kind. Read the inbox again."
      },
      "inbox.message": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "body": {},
              "done": false,
              "from": {
                "level": "agent",
                "uid": 1001
              },
              "host": "server",
              "id": 4812,
              "keep": "log",
              "time": "2026-11-12T10:00:00Z",
              "topic": "myplugin/progress"
            }
          }
        ],
        "name": "message",
        "payload": {
          "type": "object"
        },
        "summary": "A stored message with its host."
      },
      "job.exited": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "exited": {
                "exit_code": 0
              }
            }
          }
        ],
        "name": "exited",
        "payload": {
          "type": "object"
        },
        "summary": "The job ended. The last frame."
      },
      "job.output": {
        "contentType": "application/octet-stream",
        "name": "output",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "The job's output."
      },
      "kv.dropped": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "dropped": {
                "events": 12
              }
            }
          }
        ],
        "name": "dropped",
        "payload": {
          "type": "object"
        },
        "summary": "This follower was too slow. `events` counts the server's events it missed, of every kind. List the namespace again."
      },
      "kv.removed": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "key": "layout",
              "removed": true
            }
          }
        ],
        "name": "removed",
        "payload": {
          "type": "object"
        },
        "summary": "A key was removed."
      },
      "kv.set": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "key": "layout",
              "revision": 4,
              "value": {
                "columns": 3
              }
            }
          }
        ],
        "name": "set",
        "payload": {
          "type": "object"
        },
        "summary": "A key was written."
      },
      "resource-connect.bytes": {
        "contentType": "application/octet-stream",
        "name": "bytes",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "Bytes for the endpoint."
      },
      "resource-connect.eof": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "eof": true
            }
          }
        ],
        "name": "eof",
        "payload": {
          "type": "object"
        },
        "summary": "The client sends no more, and the endpoint reads the end. What it sends still comes back."
      },
      "resource-logs.exited": {
        "contentType": "application/json",
        "examples": [
          {
            "payload": {
              "exited": {
                "exit_code": 0
              }
            }
          }
        ],
        "name": "exited",
        "payload": {
          "type": "object"
        },
        "summary": "The log ended, or the provisioner stopped giving it. The last frame; with `error` when it failed."
      },
      "resource-logs.output": {
        "contentType": "application/octet-stream",
        "name": "output",
        "payload": {
          "format": "binary",
          "type": "string"
        },
        "summary": "Lines of its log."
      }
    }
  },
  "defaultContentType": "application/json",
  "info": {
    "description": "The WebSockets of rookery serve: its own, and each host's under /v1/hosts/{name}/controller. Text frames are JSON, one message each; binary frames carry only session and job bytes.",
    "title": "rookery serve",
    "version": "0.6.0"
  },
  "operations": {
    "events.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/events"
      },
      "messages": [
        {
          "$ref": "#/channels/events/messages/events.follow"
        }
      ]
    },
    "events.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/events"
      },
      "messages": [
        {
          "$ref": "#/channels/events/messages/events.channel"
        },
        {
          "$ref": "#/channels/events/messages/events.job"
        },
        {
          "$ref": "#/channels/events/messages/events.kv"
        },
        {
          "$ref": "#/channels/events/messages/events.host"
        },
        {
          "$ref": "#/channels/events/messages/events.resource"
        },
        {
          "$ref": "#/channels/events/messages/events.dropped"
        }
      ]
    },
    "host.channel.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/host.channel"
      },
      "messages": [
        {
          "$ref": "#/channels/host.channel/messages/host.channel.publish"
        }
      ]
    },
    "host.channel.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/host.channel"
      },
      "messages": [
        {
          "$ref": "#/channels/host.channel/messages/host.channel.message"
        }
      ]
    },
    "host.logs.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/host.logs"
      },
      "messages": [
        {
          "$ref": "#/channels/host.logs/messages/host.logs.entry"
        }
      ]
    },
    "host.port.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/host.port"
      },
      "messages": [
        {
          "$ref": "#/channels/host.port/messages/host.port.bytes"
        },
        {
          "$ref": "#/channels/host.port/messages/host.port.eof"
        }
      ]
    },
    "host.port.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/host.port"
      },
      "messages": [
        {
          "$ref": "#/channels/host.port/messages/host.port.bytes"
        },
        {
          "$ref": "#/channels/host.port/messages/host.port.eof"
        }
      ]
    },
    "host.serve.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/host.serve"
      },
      "messages": [
        {
          "$ref": "#/channels/host.serve/messages/host.serve.result"
        },
        {
          "$ref": "#/channels/host.serve/messages/host.serve.error"
        }
      ]
    },
    "host.serve.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/host.serve"
      },
      "messages": [
        {
          "$ref": "#/channels/host.serve/messages/host.serve.call"
        }
      ]
    },
    "host.session.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/host.session"
      },
      "messages": [
        {
          "$ref": "#/channels/host.session/messages/host.session.input"
        },
        {
          "$ref": "#/channels/host.session/messages/host.session.resize"
        },
        {
          "$ref": "#/channels/host.session/messages/host.session.signal"
        },
        {
          "$ref": "#/channels/host.session/messages/host.session.eof"
        }
      ]
    },
    "host.session.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/host.session"
      },
      "messages": [
        {
          "$ref": "#/channels/host.session/messages/host.session.output"
        },
        {
          "$ref": "#/channels/host.session/messages/host.session.exited"
        },
        {
          "$ref": "#/channels/host.session/messages/host.session.dropped"
        }
      ]
    },
    "inbox.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/inbox"
      },
      "messages": [
        {
          "$ref": "#/channels/inbox/messages/inbox.message"
        },
        {
          "$ref": "#/channels/inbox/messages/inbox.dropped"
        }
      ]
    },
    "job.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/job"
      },
      "messages": [
        {
          "$ref": "#/channels/job/messages/job.output"
        },
        {
          "$ref": "#/channels/job/messages/job.exited"
        }
      ]
    },
    "kv.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/kv"
      },
      "messages": [
        {
          "$ref": "#/channels/kv/messages/kv.set"
        },
        {
          "$ref": "#/channels/kv/messages/kv.removed"
        },
        {
          "$ref": "#/channels/kv/messages/kv.dropped"
        }
      ]
    },
    "resource-connect.receive": {
      "action": "receive",
      "channel": {
        "$ref": "#/channels/resource-connect"
      },
      "messages": [
        {
          "$ref": "#/channels/resource-connect/messages/resource-connect.bytes"
        },
        {
          "$ref": "#/channels/resource-connect/messages/resource-connect.eof"
        }
      ]
    },
    "resource-connect.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/resource-connect"
      },
      "messages": [
        {
          "$ref": "#/channels/resource-connect/messages/resource-connect.bytes"
        },
        {
          "$ref": "#/channels/resource-connect/messages/resource-connect.eof"
        }
      ]
    },
    "resource-logs.send": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/resource-logs"
      },
      "messages": [
        {
          "$ref": "#/channels/resource-logs/messages/resource-logs.output"
        },
        {
          "$ref": "#/channels/resource-logs/messages/resource-logs.exited"
        }
      ]
    }
  }
}
