{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "barchart",
      "name": "Bar chart",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "11.5.0"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "The success percentage of Jobs.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "displayName": "Jobs",
          "fieldMinMax": true,
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "transparent",
                "value": null
              },
              {
                "color": "red",
                "value": 0
              },
              {
                "color": "#EAB839",
                "value": 85
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 3,
        "x": 0,
        "y": 0
      },
      "id": 62,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": true,
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "hide": false,
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"_measurement\", \"Duration\", \"Fail\", \"Pass\", \"Skip\", \"EstimatedDuration\" , \"_time\", \"_value\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> group( columns: [\"Status\"])\r\n |> group()",
          "refId": "B"
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "time",
                "targetField": "Last_Update\\Status"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Jenkins Job Name": {
                "aggregations": [
                  "count"
                ],
                "operation": "aggregate"
              },
              "Last_Update": {
                "aggregations": [],
                "operation": "groupby"
              },
              "Status": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "groupingToMatrix",
          "options": {
            "columnField": "Status",
            "emptyValue": "zero",
            "rowField": "Last_Update",
            "valueField": "Jenkins Job Name (count)"
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Total",
            "mode": "reduceRow",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Pass",
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "SUCCESS",
                "RUNNING",
                "STILL_UNSTABLE",
                "UNSTABLE*",
                "FIXED",
                "UNSTABLE",
                "SUCCESS*",
                "RUNNING*"
              ],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Percentage",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Pass"
                }
              },
              "operator": "/",
              "right": {
                "matcher": {
                  "id": "byName",
                  "options": "Total"
                }
              }
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Final",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Percentage"
                }
              },
              "operator": "*",
              "right": {
                "fixed": "100"
              }
            },
            "mode": "binary",
            "reduce": {
              "include": [
                "Percentage"
              ],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "ABORTED": true,
              "ABORTED*": true,
              "FAILURE": true,
              "FAILURE*": true,
              "FIXED": true,
              "Pass": true,
              "Percentage": true,
              "RUNNING": true,
              "RUNNING*": true,
              "STILL_FAILING": true,
              "STILL_UNSTABLE": true,
              "SUCCESS": true,
              "SUCCESS*": true,
              "Total": true,
              "UNSTABLE": true,
              "UNSTABLE*": true
            },
            "includeByName": {},
            "indexByName": {},
            "renameByName": {}
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": false,
                "field": "Last_Update\\Status"
              }
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "decimals": 1,
          "mappings": []
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Status RUNNING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Running"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status STILL_UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FIXED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Fixed"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status ABORTED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Aborted"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FAILURE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Failed"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status STILL_FAILING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still failing"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status SUCCESS"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Success"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status DISABLED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Disabled"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FAILURE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Failed *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status UNSTABLE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Unstable *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status ABORTED*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Aborted *"
              },
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status SUCCESS*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Success *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 3,
        "y": 0
      },
      "id": 14,
      "options": {
        "displayLabels": [
          "percent"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r.Status != \"NOT_FOUND\") and r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\")\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"_measurement\", \"Duration\", \"Fail\", \"Pass\", \"Skip\", \"EstimatedDuration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group( columns: [\"_value\"])\r\n |> count(column: \"Status\")",
          "refId": "A"
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Status RUNNING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Running"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status STILL_UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FIXED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Fixed"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status ABORTED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Aborted"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FAILURE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Failed"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status STILL_FAILING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still Failing"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status SUCCESS"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Success"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status DISABLED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Disabled"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status NOT_FOUND"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Not Found"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Total"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status FAILURE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Failed *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status UNSTABLE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Unstable *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status ABORTED*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Aborted *"
              },
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status SUCCESS*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Success *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 7,
        "y": 0
      },
      "id": 6,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "text": {},
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r.Status != \"NOT_FOUND\") and r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\")\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"_measurement\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group( columns: [\"_value\"])\r\n |> count(column: \"Status\")",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "hide": false,
          "query": " from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"Aggregator\"))\r\n |> group(columns: [\"Jenkins Job Name\"])\r\n |> sort (columns: [\"_time\"] , desc : false)\r\n |> last(column : \"_time\")\r\n |> drop (columns : [ \"Jild\", \"Total Tests\",\"Url\",  \"Group\", \"Name\", \"_field\", \"_measurement\", \"Duration\", \"Fail\", \"Pass\", \"Skip\", \"Time\", \"_time\"])\r\n |> filter(fn: (r) => (r.Status != \"NOT_FOUND\") )\r\n |> group()\r\n |> count(column: \"Status\")\r\n",
          "refId": "B"
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisSoftMin": 0,
            "fillOpacity": 100,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "fieldMinMax": false,
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "FAILURE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Fail"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "FIXED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Fixed"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "STILL_UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "SUCCESS"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Success"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "UNSTABLE"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Unstable"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "STILL_FAILING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Still Failing"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ABORTED"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Aborted"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "RUNNING"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              },
              {
                "id": "displayName",
                "value": "Running"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "FAILURE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Failed *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "UNSTABLE*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Unstable *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ABORTED*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Aborted *"
              },
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "SUCCESS*"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Success *"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 13,
        "y": 0
      },
      "id": 57,
      "options": {
        "barRadius": 0,
        "barWidth": 0.5,
        "fullHighlight": false,
        "groupWidth": 0.7,
        "legend": {
          "calcs": [],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true
        },
        "orientation": "vertical",
        "showValue": "never",
        "stacking": "normal",
        "tooltip": {
          "hideZeros": true,
          "mode": "multi",
          "sort": "none"
        },
        "xField": "Time",
        "xTickLabelRotation": 0,
        "xTickLabelSpacing": 100
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": " from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"Duration\", \"Fail\", \"Pass\", \"Skip\", \"Time\", \"EstimatedDuration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group( columns: [\"Status\"])\r\n |> aggregateWindow (every: 1h, fn: count, createEmpty: false)",
          "refId": "A"
        }
      ],
      "type": "barchart"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 85
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 3,
        "x": 0,
        "y": 7
      },
      "id": 61,
      "maxDataPoints": 2000,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": true,
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"_measurement\", \"Duration\", \"Status\", \"_value\", \"EstimatedDuration\"])\r\n |> group(columns: [\"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> drop (columns : [\"Jenkins Job Name\", \"_time\"])",
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              },
              {
                "destinationType": "time",
                "targetField": "Last_Update"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Fail": {
                "aggregations": [
                  "sum"
                ],
                "operation": "aggregate"
              },
              "Last_Update": {
                "aggregations": [],
                "operation": "groupby"
              },
              "Pass": {
                "aggregations": [
                  "sum"
                ],
                "operation": "aggregate"
              },
              "Percentage * 100": {
                "aggregations": [
                  "count"
                ],
                "operation": "aggregate"
              },
              "Skip": {
                "aggregations": [
                  "sum"
                ],
                "operation": "aggregate"
              }
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Total",
            "mode": "reduceRow",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Percentage",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Pass (sum)"
                }
              },
              "operator": "/",
              "right": {
                "matcher": {
                  "id": "byName",
                  "options": "Total"
                }
              }
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Percentage"
                }
              },
              "operator": "*",
              "right": {
                "fixed": "100"
              }
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            },
            "replaceFields": false
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "field": "Last_Update"
              }
            ]
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Fail (sum)": true,
              "Last_Update": true,
              "Pass (sum)": true,
              "Percentage": true,
              "Skip (sum)": true,
              "Total": true
            },
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Percentage * 100": "Tests"
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "decimals": 1,
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Pass"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Skip"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 3,
        "y": 7
      },
      "id": 43,
      "maxDataPoints": 2000,
      "options": {
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r.Status != \"NOT_FOUND\") and r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\")\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"Status\", \"Duration\", \"EstimatedDuration\"])\r\n |> group(columns: [\"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> drop (columns : [\"Jenkins Job Name\", \"_time\", \"Last_Update\"])",
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "EstimatedDuration": true,
              "Time": true,
              "_measurement": true,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 6,
              "Jenkins Job Name": 3,
              "Pass": 7,
              "Skip": 8,
              "Status": 5,
              "Time": 0,
              "_measurement": 2,
              "_time": 1,
              "_value": 4
            },
            "renameByName": {}
          }
        },
        {
          "id": "reduce",
          "options": {
            "labelsToFields": false,
            "reducers": [
              "sum"
            ]
          }
        },
        {
          "id": "rowsToFields",
          "options": {}
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Pass"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Skip"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 7,
        "y": 7
      },
      "id": 39,
      "maxDataPoints": 2000,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "text": {},
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"Status\", \"Duration\", \"EstimatedDuration\"])\r\n |> group(columns: [\"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> drop (columns : [\"Jenkins Job Name\"])",
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "_measurement": true,
              "_time": true,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 4,
              "Last_Update": 6,
              "Pass": 3,
              "Skip": 5,
              "_measurement": 1,
              "_time": 0,
              "_value": 2
            },
            "renameByName": {}
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "fixed"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisSoftMin": 0,
            "fillOpacity": 80,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Pass"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Total Tests"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Skip"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 13,
        "y": 7
      },
      "id": 59,
      "options": {
        "barRadius": 0,
        "barWidth": 0.66,
        "fullHighlight": false,
        "groupWidth": 0.7,
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "orientation": "auto",
        "showValue": "auto",
        "stacking": "normal",
        "text": {},
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        },
        "xField": "Last_Update",
        "xTickLabelMaxLength": 10,
        "xTickLabelRotation": 0,
        "xTickLabelSpacing": 200
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> group(columns: [\"Jenkins Job Name\"])\r\n |> last(column: \"_time\")\r\n |> group()\r\n |> drop (columns : [ \"Build\", \"Total Tests\",\"Url\", \"_start\", \"_stop\", \"Group\", \"Name\", \"_field\", \"_value\", \"Status\", \"_measurement\", \"_time\", \"Duration\", \"EstimatedDuration\"])\r\n ",
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              },
              {
                "destinationType": "time",
                "targetField": "Time"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "equal",
                  "options": {
                    "value": "0"
                  }
                },
                "fieldName": "Fail"
              },
              {
                "config": {
                  "id": "equal",
                  "options": {
                    "value": "0"
                  }
                },
                "fieldName": "Pass"
              },
              {
                "config": {
                  "id": "equal",
                  "options": {
                    "value": "0"
                  }
                },
                "fieldName": "Skip"
              }
            ],
            "match": "all",
            "type": "exclude"
          }
        }
      ],
      "type": "barchart"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "links": [
            {
              "targetBlank": true,
              "title": "Trigger",
              "url": "http://myjenkins/job/myjob"
            }
          ],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "dateTimeFromNow"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "_value"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeFromNow"
              },
              {
                "id": "displayName",
                "value": "Last Update"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 2,
        "x": 0,
        "y": 14
      },
      "id": 34,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "firstNotNull"
          ],
          "fields": "/.*/",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "query": " from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement == \"TestResultsAggregator\" ) )\r\n |> group()\r\n |> drop (columns : [ \"_start\", \"_stop\",\"_time\", \"AggregatorJobPercentage\", \"AggregatorTestPercentage\", \"_field\", \"_measurement\"])",
          "refId": "A",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          }
        }
      ],
      "transformations": [
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "_value"
              }
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto",
              "wrapText": false
            },
            "filterable": false,
            "inspect": false
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "transparent",
                  "index": 0
                }
              },
              "type": "value"
            }
          ],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Jenkins Job Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "Open in Jenkins",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeFromNow"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 120
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "auto"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Url"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 2,
        "y": 14
      },
      "id": 52,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Fail"
          }
        ]
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\", \"_start\", \"_stop\", \"Group\", \"_field\", \"_measurement\", \"EstimatedDuration\", \"Duration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group()",
          "refId": "A"
        }
      ],
      "title": "Last 3 Failed/Aborted Jobs",
      "transformations": [
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "_time"
              }
            ]
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "substring",
                  "options": {
                    "value": "FAIL"
                  }
                },
                "fieldName": "Status"
              },
              {
                "config": {
                  "id": "substring",
                  "options": {
                    "value": "ABORTED"
                  }
                },
                "fieldName": "Status"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "%": true,
              "Duration": true,
              "EstimatedDuration": true,
              "Fail": true,
              "Jenkins Job Name": true,
              "Last_Update": true,
              "Pass": true,
              "Skip": true,
              "Status": false,
              "Time": true,
              "Total": true,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 5,
              "Jenkins Job Name": 1,
              "Last_Update": 8,
              "Name": 2,
              "Pass": 4,
              "Skip": 6,
              "Status": 3,
              "_time": 7,
              "_value": 0
            },
            "renameByName": {
              "% * 100": ""
            }
          }
        },
        {
          "id": "limit",
          "options": {
            "limitField": "3"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "filterable": true,
            "inspect": false
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "transparent",
                  "index": 0
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Jenkins Job Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "Open in Jenkins",
                    "url": "${__data.fields.Url}"
                  }
                ]
              },
              {
                "id": "custom.width",
                "value": 240
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "mode": "lcd",
                  "type": "gauge",
                  "valueDisplayMode": "color"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeFromNow"
              },
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Url"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 7,
        "y": 14
      },
      "id": 49,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "enablePagination": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false,
        "sortBy": [
          {
            "desc": false,
            "displayName": "Percetnage"
          }
        ]
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\", \"_start\", \"_stop\", \"Group\", \"_field\", \"_measurement\", \"Duration\", \"EstimatedDuration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group()",
          "refId": "A"
        }
      ],
      "title": "Top 3 Jobs with High Failure Test Rate",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              }
            ],
            "fields": {}
          }
        },
        {
          "disabled": true,
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "Last_Update"
              }
            ]
          }
        },
        {
          "id": "calculateField",
          "options": {
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Pass",
                "Fail",
                "Skip"
              ],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Percetnage",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Pass"
                }
              },
              "operator": "/",
              "right": {
                "matcher": {
                  "id": "byName",
                  "options": "Total"
                }
              }
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "lowerOrEqual",
                  "options": {
                    "value": "0.99"
                  }
                },
                "fieldName": "Percetnage"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              }
            ],
            "fields": {}
          }
        },
        {
          "disabled": true,
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "Percetnage"
              }
            ]
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": false,
                "field": "Percetnage"
              }
            ]
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "%": true,
              "Duration": true,
              "EstimatedDuration": true,
              "Jenkins Job Name": true,
              "Last_Update": true,
              "Pass": true,
              "Percentage": false,
              "Percetnage": true,
              "Skip": true,
              "Status": true,
              "Time": true,
              "Total": true,
              "Url": false,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 5,
              "Jenkins Job Name": 2,
              "Last_Update": 7,
              "Name": 1,
              "Pass": 4,
              "Percetnage": 9,
              "Skip": 6,
              "Status": 3,
              "Total": 8,
              "Url": 11,
              "_time": 10,
              "_value": 0
            },
            "renameByName": {
              "% * 100": ""
            }
          }
        },
        {
          "id": "limit",
          "options": {
            "limitField": "3"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto",
              "wrapText": false
            },
            "filterable": false,
            "inspect": false
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "transparent",
                  "index": 0
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Jenkins Job Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "Open in Jenkins",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeFromNow"
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "text",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text",
                  "wrapText": false
                }
              },
              {
                "id": "custom.align",
                "value": "auto"
              },
              {
                "id": "custom.width",
                "value": 30
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Url"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 13,
        "y": 14
      },
      "id": 53,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [],
          "show": false
        },
        "showHeader": false,
        "sortBy": [
          {
            "desc": true,
            "displayName": "_time"
          }
        ]
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\", \"_start\", \"_stop\", \"Group\", \"_field\", \"_measurement\", \"EstimatedDuration\", \"Duration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group()",
          "refId": "A"
        }
      ],
      "title": "Last 3 Jobs with new Test Failures",
      "transformations": [
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "_time"
              }
            ]
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "equal",
                  "options": {
                    "value": "UNSTABLE"
                  }
                },
                "fieldName": "Status"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "%": true,
              "Duration": true,
              "EstimatedDuration": true,
              "Fail": false,
              "Jenkins Job Name": true,
              "Last_Update": true,
              "Pass": true,
              "Skip": true,
              "Status": true,
              "Time": true,
              "Total": true,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 5,
              "Jenkins Job Name": 2,
              "Last_Update": 8,
              "Name": 1,
              "Pass": 4,
              "Skip": 6,
              "Status": 3,
              "Url": 9,
              "_time": 7,
              "_value": 0
            },
            "renameByName": {
              "% * 100": ""
            }
          }
        },
        {
          "id": "limit",
          "options": {
            "limitField": "3"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto",
              "wrapText": false
            },
            "filterable": false,
            "inspect": false
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "transparent",
                  "index": 0
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Jenkins Job Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "Open in Jenkins",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeFromNow"
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Url"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 19,
        "y": 14
      },
      "id": 33,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Fail"
          }
        ]
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\", \"_start\", \"_stop\", \"Group\", \"_field\", \"_measurement\", \"EstimatedDuration\", \"Duration\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group()",
          "refId": "A"
        }
      ],
      "title": "Last 3 Fixed Jobs",
      "transformations": [
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "_time"
              }
            ]
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "equal",
                  "options": {
                    "value": "FIXED"
                  }
                },
                "fieldName": "Status"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "%": true,
              "Duration": true,
              "EstimatedDuration": true,
              "Fail": true,
              "Jenkins Job Name": true,
              "Last_Update": true,
              "Pass": true,
              "Skip": true,
              "Status": true,
              "Time": true,
              "Total": true,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "Fail": 5,
              "Jenkins Job Name": 1,
              "Last_Update": 8,
              "Name": 2,
              "Pass": 4,
              "Skip": 6,
              "Status": 3,
              "_time": 7,
              "_value": 0
            },
            "renameByName": {
              "% * 100": ""
            }
          }
        },
        {
          "id": "limit",
          "options": {
            "limitField": "3"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "transparent",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              },
              {
                "color": "#EAB839",
                "value": 85
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "GroupJobPercentage"
            },
            "properties": [
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-background"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "GroupTestPercentage"
            },
            "properties": [
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-background"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Running"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "true": {
                        "color": "blue",
                        "index": 0,
                        "text": "BLUE"
                      }
                    },
                    "type": "value"
                  }
                ]
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Group"
            },
            "properties": [
              {
                "id": "custom.cellOptions",
                "value": {
                  "applyToRow": false,
                  "mode": "basic",
                  "type": "color-background",
                  "wrapText": false
                }
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "transparent",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.width",
                "value": 196
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Jobs"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 108
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
        "w": 5,
        "x": 0,
        "y": 19
      },
      "id": 56,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "query": " from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement == \"GroupData\" ) )\r\n |> drop (columns : [ \"_start\", \"_stop\", \"_field\", \"_measurement\", \"_value\"])\r\n |> group(columns : [ \"GroupName\"])\r\n |> sort (columns: [\"_time\"] , desc : false)\r\n |> last(column : \"_time\")\r\n |> group()",
          "refId": "A",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          }
        }
      ],
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "AggregatorJobPercentage"
              },
              {
                "destinationType": "number",
                "targetField": "AggregatorTestPercentage"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "GroupStatus": true,
              "Running": false,
              "_time": true
            },
            "includeByName": {},
            "indexByName": {
              "GroupJobPercentage": 3,
              "GroupName": 1,
              "GroupStatus": 2,
              "GroupTestPercentage": 4,
              "_time": 0
            },
            "renameByName": {
              "GroupJobPercentage": "Jobs",
              "GroupName": "Group",
              "GroupStatus": "Status",
              "GroupTestPercentage": "Tests",
              "Running": ""
            }
          }
        },
        {
          "id": "configFromData",
          "options": {
            "applyTo": {
              "id": "byName",
              "options": "Group"
            },
            "configRefId": "A",
            "mappings": [
              {
                "fieldName": "Running",
                "handlerKey": "mappings.color",
                "reducerId": "allValues"
              },
              {
                "fieldName": "Group",
                "handlerKey": "mappings.value",
                "reducerId": "allValues"
              }
            ]
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Running": true
            },
            "includeByName": {},
            "indexByName": {},
            "renameByName": {}
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "isNull",
                  "options": {}
                },
                "fieldName": "Jobs"
              },
              {
                "config": {
                  "id": "isNull",
                  "options": {}
                },
                "fieldName": "Tests"
              }
            ],
            "match": "all",
            "type": "exclude"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "filterable": true,
            "inspect": false
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "transparent",
                  "index": 0,
                  "text": "-"
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "_time"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 180
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Jenkins Job Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "Open in Jenkins",
                    "url": "${__data.fields.Url}"
                  }
                ]
              },
              {
                "id": "custom.width",
                "value": 558
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "ABORTED": {
                        "color": "text",
                        "index": 2
                      },
                      "ABORTED*": {
                        "color": "text",
                        "index": 12
                      },
                      "DISABLED": {
                        "color": "text",
                        "index": 9
                      },
                      "FAILURE": {
                        "color": "red",
                        "index": 4
                      },
                      "FAILURE*": {
                        "color": "red",
                        "index": 11
                      },
                      "FIXED": {
                        "color": "green",
                        "index": 1
                      },
                      "NOT_FOUND": {
                        "color": "#adadad",
                        "index": 8
                      },
                      "RUNNING": {
                        "color": "blue",
                        "index": 7
                      },
                      "STILL_FAILING": {
                        "color": "red",
                        "index": 3
                      },
                      "STILL_UNSTABLE": {
                        "color": "yellow",
                        "index": 5
                      },
                      "SUCCESS": {
                        "color": "green",
                        "index": 0
                      },
                      "SUCCESS*": {
                        "color": "green",
                        "index": 13
                      },
                      "UNSTABLE": {
                        "color": "yellow",
                        "index": 6
                      },
                      "UNSTABLE*": {
                        "color": "yellow",
                        "index": 10
                      }
                    },
                    "type": "value"
                  }
                ]
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 140
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Duration"
            },
            "properties": [
              {
                "id": "unit",
                "value": "ms"
              },
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Fail"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Skip"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-yellow",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pass"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "type": "color-text"
                }
              },
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Percentage"
            },
            "properties": [
              {
                "id": "custom.cellOptions",
                "value": {
                  "applyToRow": false,
                  "type": "color-background"
                }
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "transparent",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 1
                    },
                    {
                      "color": "#EAB839",
                      "value": 85
                    },
                    {
                      "color": "green",
                      "value": 99
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "noValue",
                "value": "0"
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "NaN": {
                        "index": 0,
                        "text": "0"
                      }
                    },
                    "type": "value"
                  }
                ]
              },
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "EstimatedDuration"
            },
            "properties": [
              {
                "id": "unit",
                "value": "ms"
              },
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Group"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 190
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__data.fields.Url}"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Url"
            },
            "properties": [
              {
                "id": "custom.hidden",
                "value": true
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
        "w": 19,
        "x": 5,
        "y": 19
      },
      "id": 50,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "enablePagination": true,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Fail"
          }
        ]
      },
      "pluginVersion": "11.5.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": " from(bucket: \"TestResultsAggregatorBucket\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => (r._measurement != \"TestResultsAggregator\" and r._measurement != \"GroupData\"))\r\n |> drop (columns : [ \"Build\", \"Total Tests\", \"_start\", \"_stop\", \"_field\", \"_measurement\"])\r\n |> group(columns : [ \"Jenkins Job Name\"])\r\n |> sort (columns: [\"Last_Update\"] , desc : false)\r\n |> last(column : \"Last_Update\")\r\n |> group()",
          "refId": "A"
        }
      ],
      "title": "Report",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Fail"
              },
              {
                "destinationType": "number",
                "targetField": "Pass"
              },
              {
                "destinationType": "number",
                "targetField": "Skip"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "_time"
              }
            ]
          }
        },
        {
          "id": "calculateField",
          "options": {
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Pass",
                "Fail",
                "Skip"
              ],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "%",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "Pass"
                }
              },
              "operator": "/",
              "right": {
                "matcher": {
                  "id": "byName",
                  "options": "Total"
                }
              }
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Percentage",
            "binary": {
              "left": {
                "matcher": {
                  "id": "byName",
                  "options": "%"
                }
              },
              "operator": "*",
              "right": {
                "fixed": "100"
              }
            },
            "mode": "binary",
            "reduce": {
              "include": [
                "%"
              ],
              "reducer": "last"
            },
            "replaceFields": false
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "%": true,
              "Jenkins Job Name": true,
              "Last_Update": true,
              "Time": true,
              "Total": true,
              "Url": false,
              "_time": false,
              "_value": true
            },
            "includeByName": {},
            "indexByName": {
              "%": 12,
              "Duration": 9,
              "EstimatedDuration": 10,
              "Fail": 7,
              "Group": 2,
              "Jenkins Job Name": 4,
              "Last_Update": 15,
              "Name": 3,
              "Pass": 6,
              "Percentage": 14,
              "Skip": 8,
              "Status": 5,
              "Total": 11,
              "Url": 13,
              "_time": 0,
              "_value": 1
            },
            "renameByName": {
              "% * 100": ""
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": "",
  "schemaVersion": 40,
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-2d",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Test Results Aggregator",
  "uid": "decuwmct9mr5sd",
  "version": 50,
  "weekStart": ""
}