{
  "$schema": "https://developer.dynatrace.com/docs-assets/schema_strict_apps.json",
  "dynatrace": "1",
  "schemaId": "setting-name-connection",
  "version": "0.0.1",
  "displayName": "SettingName",
  "description": "Settings for SettingName",
  "multiObject": false,
  "enums": {
    "Environment": {
      "displayName": "Environment",
      "type": "enum",
      "items": [
        { "value": "development", "displayName": "Development" },
        { "value": "staging", "displayName": "Staging" },
        { "value": "production", "displayName": "Production" }
      ]
    }
  },
  "properties": {
    "name": {
      "displayName": "Name",
      "description": "Display name",
      "type": "text",
      "nullable": false,
      "default": ""
    },
    "enabled": {
      "displayName": "Enabled",
      "description": "Whether this setting is active",
      "type": "boolean",
      "nullable": false,
      "default": true
    },
    "environment": {
      "displayName": "Environment",
      "description": "The environment this setting applies to",
      "type": {
        "$ref": "#/enums/Environment"
      },
      "nullable": false,
      "default": "production"
    },
    "retentionDays": {
      "displayName": "Retention (days)",
      "description": "How many days to keep the data",
      "type": "integer",
      "nullable": false,
      "default": 30
    }
  }
}
