{
  "annotations": {
    "list": []
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "everdigm-mail-api"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 5,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "showLegend": true
        },
        "pieType": "donut",
        "displayLabels": [
          "percent"
        ],
        "reduceOptions": {
          "values": false,
          "calcs": [
            "lastNotNull"
          ],
          "fields": ""
        }
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/mail-logs?startdate=${__from:date:YYYY/MM/DD HH:mm:ss}&enddate=${__to:date:YYYY/MM/DD HH:mm:ss}&type=$type&status=$status&fromaddr=$fromaddr&toaddr=$toaddr&subject=$subject&ipaddr=$ipaddr&page=$page&linenum=$linenum",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "summary.by_type",
          "columns": [
            {
              "selector": "spam",
              "text": "Spam",
              "type": "number"
            },
            {
              "selector": "block",
              "text": "Block",
              "type": "number"
            },
            {
              "selector": "receive",
              "text": "Receive",
              "type": "number"
            },
            {
              "selector": "sent",
              "text": "Sent",
              "type": "number"
            },
            {
              "selector": "etc",
              "text": "Etc",
              "type": "number"
            }
          ]
        }
      ],
      "title": "Mail Type Breakdown",
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "everdigm-mail-api"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 6,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "showLegend": true
        },
        "pieType": "donut",
        "displayLabels": [
          "percent"
        ],
        "reduceOptions": {
          "values": false,
          "calcs": [
            "lastNotNull"
          ],
          "fields": ""
        }
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/mail-logs?startdate=${__from:date:YYYY/MM/DD HH:mm:ss}&enddate=${__to:date:YYYY/MM/DD HH:mm:ss}&type=$type&status=$status&fromaddr=$fromaddr&toaddr=$toaddr&subject=$subject&ipaddr=$ipaddr&page=$page&linenum=$linenum",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "summary.by_status",
          "columns": [
            {
              "selector": "success",
              "text": "Success",
              "type": "number"
            },
            {
              "selector": "fail",
              "text": "Fail",
              "type": "number"
            },
            {
              "selector": "delay",
              "text": "Delay",
              "type": "number"
            }
          ]
        }
      ],
      "title": "Mail Status Breakdown",
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "everdigm-mail-api"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            }
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 3,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/unspam-requests?viewcont=$unspam_viewcont",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "maillist",
          "columns": [
            {
              "selector": "date",
              "text": "Date",
              "type": "string"
            },
            {
              "selector": "subject",
              "text": "Subject",
              "type": "string"
            },
            {
              "selector": "addr",
              "text": "From",
              "type": "string"
            },
            {
              "selector": "from_name",
              "text": "From Name",
              "type": "string"
            },
            {
              "selector": "from_addr",
              "text": "From Addr",
              "type": "string"
            },
            {
              "selector": "isnew",
              "text": "Is New",
              "type": "number"
            },
            {
              "selector": "size",
              "text": "Size",
              "type": "string"
            },
            {
              "selector": "mid",
              "text": "MID",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Unspam Requests",
      "type": "table",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "indexByName": {
              "Date": 0,
              "Subject": 1,
              "From": 2,
              "From Addr": 3,
              "From Name": 4,
              "Is New": 5,
              "MID": 6,
              "Size": 7
            }
          }
        }
      ]
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "everdigm-mail-api"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            }
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "id": 4,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/mail-logs?startdate=${__from:date:YYYY/MM/DD HH:mm:ss}&enddate=${__to:date:YYYY/MM/DD HH:mm:ss}&type=$type&status=$status&fromaddr=$fromaddr&toaddr=$toaddr&subject=$subject&ipaddr=$ipaddr&page=$page&linenum=$linenum",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows",
          "columns": [
            {
              "selector": "regdate",
              "text": "Reg Date",
              "type": "string"
            },
            {
              "selector": "type_label",
              "text": "Type",
              "type": "string"
            },
            {
              "selector": "status_label",
              "text": "Status",
              "type": "string"
            },
            {
              "selector": "from",
              "text": "From",
              "type": "string"
            },
            {
              "selector": "to",
              "text": "To",
              "type": "string"
            },
            {
              "selector": "subject",
              "text": "Subject",
              "type": "string"
            },
            {
              "selector": "remoteip",
              "text": "Remote IP",
              "type": "string"
            },
            {
              "selector": "size",
              "text": "Size",
              "type": "string"
            },
            {
              "selector": "mid",
              "text": "MID",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Mail Logs",
      "type": "table",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "indexByName": {
              "From": 0,
              "To": 1,
              "Subject": 2,
              "Type": 3,
              "Status": 4,
              "Reg Date": 5,
              "Remote IP": 6,
              "Size": 7,
              "MID": 8
            }
          }
        }
      ]
    }
  ],
  "refresh": "",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "everdigm",
    "mail"
  ],
  "templating": {
    "list": [
      {
        "name": "unspam_viewcont",
        "label": "Unspam View",
        "type": "textbox",
        "query": "0,30",
        "current": {
          "text": "0,30",
          "value": "0,30"
        }
      },
      {
        "name": "type",
        "label": "Type",
        "type": "custom",
        "query": "spam,block,receive,sent",
        "includeAll": true,
        "allValue": "",
        "current": {
          "text": "All",
          "value": ""
        },
        "options": []
      },
      {
        "name": "status",
        "label": "Status",
        "type": "custom",
        "query": "success,fail,delay",
        "includeAll": true,
        "allValue": "",
        "current": {
          "text": "All",
          "value": ""
        },
        "options": []
      },
      {
        "name": "fromaddr",
        "label": "From",
        "type": "textbox",
        "query": "",
        "current": {
          "text": "",
          "value": ""
        }
      },
      {
        "name": "toaddr",
        "label": "To",
        "type": "textbox",
        "query": "",
        "current": {
          "text": "",
          "value": ""
        }
      },
      {
        "name": "subject",
        "label": "Subject",
        "type": "textbox",
        "query": "",
        "current": {
          "text": "",
          "value": ""
        }
      },
      {
        "name": "ipaddr",
        "label": "IP Address",
        "type": "textbox",
        "query": "",
        "current": {
          "text": "",
          "value": ""
        }
      },
      {
        "name": "page",
        "label": "Page",
        "type": "textbox",
        "query": "1",
        "current": {
          "text": "1",
          "value": "1"
        }
      },
      {
        "name": "linenum",
        "label": "Line Num",
        "type": "textbox",
        "query": "15",
        "current": {
          "text": "15",
          "value": "15"
        }
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Everdigm Mail Overview",
  "uid": "everdigm-mail-overview",
  "version": 1,
  "weekStart": ""
}