{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-fleetwise/refs/heads/main/json-structure/iot-fleetwise-collection-scheme-structure.json",
  "name": "CollectionScheme",
  "description": "Specifies what data to collect and how often or when to collect it.",
  "type": "object",
  "properties": {
    "timeBasedCollectionScheme": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TimeBasedCollectionScheme"
        },
        {
          "description": "Information about a collection scheme that uses a time period to decide how often to collect data."
        }
      ]
    },
    "conditionBasedCollectionScheme": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ConditionBasedCollectionScheme"
        },
        {
          "description": "Information about a collection scheme that uses a simple logical expression to recognize what data to collect."
        }
      ]
    }
  }
}