{
    "type": "panel",
    "label": "Grafana backup",
    "items": {
        "_checkConfig": {
            // this component is not visible in the UI
            // it checks the configuration
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/CheckAllConfigInvisible"
        },
        "_header": {
            "type": "header",
            "size": 2,
            "text": "Grafana backup",
            "sm": 12,
        },
        "grafanaHost": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Grafana Hostname",
            "newLine": true
        },
        "grafanaPort": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 1,
            "max": 65535,
            "type": "number",
            "label": "Grafana port",
        },
        "grafanaProtocol": {
            "type": "select",
            "label": "Protocol",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Protocol",
            "noTranslations": true,
            "options": [
                {
                    "label": "http",
                    "value": "http"
                },
                {
                    "label": "https",
                    "value": "https"
                }
            ],
        },
        "grafanaUsername": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Grafana username",
            "newLine": true
        },
        "grafanaPassword": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "password",
            "visible": true,
            "label": "Grafana password",
        },
        "grafanaApiKey": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "password",
            "visible": true,
            "label": "Grafana API-Key or Service Token",
            "newLine": true
        },
        "grafanaSignedCertificates": {
            "hidden": "data.grafanaProtocol == 'http'",
            "type": "checkbox",
            "label": "Allow only signed certificates",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        }
    }
}
