{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 78,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "cfj2kkvq7fzeob"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "footer": {
              "reducers": []
            },
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "yellow",
                "value": 50
              },
              {
                "color": "orange",
                "value": 80
              },
              {
                "color": "red",
                "value": 99.9
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Hostname"
            },
            "properties": [
              {
                "id": "custom.cellOptions",
                "value": {
                  "mode": "gradient",
                  "type": "color-background"
                }
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": 0
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Critical Events %"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "mode": "gradient",
                  "type": "color-background"
                }
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "yellow",
                      "value": 50
                    },
                    {
                      "color": "orange",
                      "value": 80
                    },
                    {
                      "color": "red",
                      "value": 99.9
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 24,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "options": {
        "cellHeight": "sm",
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "columns": [
            {
              "selector": "host",
              "text": "Hostname"
            },
            {
              "selector": "total_events",
              "text": "Total Events per Host"
            },
            {
              "selector": "critical_events",
              "text": "Critical Events per Host"
            },
            {
              "selector": "critical_percent",
              "text": "Critical Events %"
            }
          ],
          "data": "",
          "expression": "$",
          "filters": [],
          "format": "table",
          "global_query_id": "",
          "method": "GET",
          "params": [],
          "parser": "jsonata",
          "refId": "A",
          "rootSelector": "",
          "root_selector": "",
          "source": "url",
          "type": "json",
          "url": "http://192.168.10.48:5000/stats?period=$period",
          "url_options": {
            "data": "",
            "method": "GET"
          }
        }
      ],
      "title": " Summary: Host Events (Jahr oder Monat) v3",
      "type": "table"
    }
  ],
  "preload": false,
  "refresh": "",
  "schemaVersion": 42,
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "2025 (Jahr)",
          "value": "2025"
        },
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "cfj2kkvq7fzeob"
        },
        "definition": "http://192.168.10.48:5000/periods",
        "includeAll": false,
        "label": "Zeitraum (Jahr oder Monat)",
        "name": "period",
        "options": [],
        "query": {
          "infinityQuery": {
            "columns": [],
            "filters": [],
            "format": "table",
            "parser": "backend",
            "refId": "variable",
            "root_selector": "",
            "source": "url",
            "type": "json",
            "url": "http://192.168.10.48:5000/periods",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          },
          "query": "http://192.168.10.48:5000/periods",
          "queryType": "infinity",
          "refId": "variable"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "Summary: Host Event Statistics (Jahre & Monate) v3",
  "uid": "adcxbqwv3",
  "version": 1
}
