{
  "label": "Global record configuration.",
  "properties": {
    "enabled": {
      "label": "Enable record on all cameras."
    },
    "sync_recordings": {
      "label": "Sync recordings with disk on startup and once a day."
    },
    "expire_interval": {
      "label": "Number of minutes to wait between cleanup runs."
    },
    "continuous": {
      "label": "Continuous recording retention settings.",
      "properties": {
        "days": {
          "label": "Default retention period."
        }
      }
    },
    "motion": {
      "label": "Motion recording retention settings.",
      "properties": {
        "days": {
          "label": "Default retention period."
        }
      }
    },
    "detections": {
      "label": "Detection specific retention settings.",
      "properties": {
        "pre_capture": {
          "label": "Seconds to retain before event starts."
        },
        "post_capture": {
          "label": "Seconds to retain after event ends."
        },
        "retain": {
          "label": "Event retention settings.",
          "properties": {
            "days": {
              "label": "Default retention period."
            },
            "mode": {
              "label": "Retain mode."
            }
          }
        }
      }
    },
    "alerts": {
      "label": "Alert specific retention settings.",
      "properties": {
        "pre_capture": {
          "label": "Seconds to retain before event starts."
        },
        "post_capture": {
          "label": "Seconds to retain after event ends."
        },
        "retain": {
          "label": "Event retention settings.",
          "properties": {
            "days": {
              "label": "Default retention period."
            },
            "mode": {
              "label": "Retain mode."
            }
          }
        }
      }
    },
    "export": {
      "label": "Recording Export Config",
      "properties": {
        "timelapse_args": {
          "label": "Timelapse Args"
        }
      }
    },
    "preview": {
      "label": "Recording Preview Config",
      "properties": {
        "quality": {
          "label": "Quality of recording preview."
        }
      }
    },
    "enabled_in_config": {
      "label": "Keep track of original state of recording."
    }
  }
}