{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/progress-software/json-schema/progress-software-chef-automate-api-ingest-request-run-schema.json",
  "title": "chef.automate.api.ingest.request.Run",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/progress-software-chefingester-api-openapi.yml#/components/schemas/chef.automate.api.ingest.request.Run",
  "type": "object",
  "properties": {
    "chef_server_fqdn": {
      "type": "string"
    },
    "content": {
      "description": "This new field called 'content' is being used to send the entire raw JSON\nmessage in bytes, this field is heavily used by the gateway for the DataCollector\nFunc Handler that will send the Run message to the (receiver) ingest-service\nthat will manually unmarshal the message from this field if it is provided.\nThe main purpose of this field it to improve the performance of ingestion when\nthe requests comes in REST/HTTP format.",
      "type": "string",
      "format": "byte"
    },
    "deprecations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/chef.automate.api.ingest.request.Deprecation"
      }
    },
    "end_time": {
      "type": "string"
    },
    "entity_uuid": {
      "type": "string"
    },
    "error": {
      "$ref": "#/$defs/chef.automate.api.ingest.request.Error"
    },
    "expanded_run_list": {
      "$ref": "#/$defs/chef.automate.api.ingest.request.ExpandedRunList"
    },
    "id": {
      "description": "1 through 15 are for frequently occuring fields\nReserving for shared fields between run_start and run_converge mesages.",
      "type": "string"
    },
    "message_type": {
      "type": "string"
    },
    "message_version": {
      "type": "string"
    },
    "node": {
      "type": "object"
    },
    "node_name": {
      "type": "string"
    },
    "organization_name": {
      "type": "string"
    },
    "policy_group": {
      "type": "string"
    },
    "policy_name": {
      "type": "string"
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/chef.automate.api.ingest.request.Resource"
      }
    },
    "run_id": {
      "type": "string"
    },
    "run_list": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "string"
    },
    "start_time": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total_resource_count": {
      "type": "integer",
      "format": "int32"
    },
    "updated_resource_count": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "chef.automate.api.ingest.request.Deprecation": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.ingest.request.Description": {
      "type": "object",
      "properties": {
        "sections": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "title": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.ingest.request.Error": {
      "type": "object",
      "properties": {
        "backtrace": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "class": {
          "type": "string"
        },
        "description": {
          "$ref": "#/$defs/chef.automate.api.ingest.request.Description"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.ingest.request.ExpandedRunList": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "run_list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/chef.automate.api.ingest.request.RunList"
          }
        }
      }
    },
    "chef.automate.api.ingest.request.Resource": {
      "type": "object",
      "properties": {
        "after": {
          "type": "object"
        },
        "before": {
          "type": "object"
        },
        "conditional": {
          "type": "string"
        },
        "cookbook_name": {
          "type": "string"
        },
        "cookbook_version": {
          "type": "string"
        },
        "delta": {
          "type": "string"
        },
        "duration": {
          "type": "string"
        },
        "error": {
          "$ref": "#/$defs/chef.automate.api.ingest.request.Error"
        },
        "id": {
          "type": "string"
        },
        "ignore_failure": {
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "recipe_name": {
          "type": "string"
        },
        "result": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.ingest.request.RunList": {
      "type": "object",
      "properties": {
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/chef.automate.api.ingest.request.RunList"
          }
        },
        "name": {
          "type": "string"
        },
        "skipped": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    }
  }
}