type: object
properties:
  jid:
    type: string
    description: job ID
  client_id:
    type: string
    description: client ID
  client_name:
    type: string
    description: client name
  pid:
    type: integer
    description: process ID
  status:
    type: string
    description: command status
    enum:
      - running
      - successful
      - unknown
      - failed
  command:
    type: string
    description: executed command
  cwd:
    type: string
    description: current working directory for an executable command
  is_sudo:
    type: boolean
    description: execute the command as a sudo user
  interpreter:
    type: string
    description: command interpreter that was used to execute the command
  started_at:
    type: string
    description: command start time
    format: data-time
  finished_at:
    type: string
    description: command finish time
    format: data-time
  created_by:
    type: string
    description: API username who run the command
  timeout_sec:
    type: integer
    description: timeout in seconds that was used to observe the command execution
  multi_job_id:
    type: string
    description: >-
      multi-client job ID. If it is set then it means this command was initiated
      by running a multi-client job
  error:
    type: string
    description: is non-empty when it wasn't able to execute a command on rport client
  result:
    type: object
    properties:
      stdout:
        type: string
        description: process standard output
      stderr:
        type: string
        description: process standard error
      summary:
        type: string
        description: summary output extracted from stdout using summary tag
    description: command execution result
