{
  "__inputs": [
    {
      "name": "DS_MYSQL",
      "label": "mysql",
      "description": "",
      "type": "datasource",
      "pluginId": "mysql",
      "pluginName": "MySQL"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "11.3.0"
    },
    {
      "type": "panel",
      "id": "logs",
      "name": "Logs",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "mysql",
      "name": "MySQL",
      "version": "11.3.0-pre"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "state-timeline",
      "name": "State timeline",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 0.0001
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT date as 'time', jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)\nORDER BY date desc\nLIMIT 20",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "source_id",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 1,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "9b99bb8a-cdef-4012-b456-7192d3611753",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "a88bbbab-89ab-4cde-b012-3192d3622895",
                  "properties": {
                    "field": "source_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "{source_id}"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "b9b888a8-0123-4456-b89a-b192d35a36d4",
              "type": "group"
            },
            "whereString": "(log_id = '00400100' AND source_id = '{source_id}')"
          },
          "table": "monlogs"
        }
      ],
      "title": "エラーインジケータ（ビットレート）",
      "transformations": [
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": false,
                "field": "time"
              }
            ]
          }
        },
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "入力レート",
                "path": "bitrate.input.ave"
              },
              {
                "alias": "VIdeoレート",
                "path": "bitrate.group.video.ave"
              },
              {
                "alias": "Audioレート",
                "path": "bitrate.group.audio.ave"
              }
            ],
            "keepTime": false,
            "replace": true,
            "source": "jsondata"
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 1,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 2,
            "pointSize": 7,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "fieldMinMax": true,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "入力レート(最大)"
            },
            "properties": [
              {
                "id": "custom.lineWidth",
                "value": 0
              },
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": true,
                  "tooltip": false,
                  "viz": false
                }
              },
              {
                "id": "custom.fillBelowTo",
                "value": "入力レート"
              },
              {
                "id": "custom.fillOpacity",
                "value": 25
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "入力レート"
            },
            "properties": [
              {
                "id": "custom.fillBelowTo",
                "value": "入力レート(最小)"
              },
              {
                "id": "custom.fillOpacity",
                "value": 25
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "入力レート(最小)"
            },
            "properties": [
              {
                "id": "custom.lineWidth",
                "value": 0
              },
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": true,
                  "tooltip": false,
                  "viz": false
                }
              }
            ]
          },
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "入力レート",
                  "入力レート(最大)",
                  "入力レート(最小)"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": [
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": false,
                  "tooltip": false,
                  "viz": true
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 6,
        "y": 0
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT date as 'time', jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99ab99a9-cdef-4012-b456-7192d2595583",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "9889a8a9-0123-4456-b89a-b192d70e1fc8",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-29 15:54:53"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(log_id = '00400100' AND date > '2024-10-29 15:54:53.000')"
          },
          "table": "monlogs"
        }
      ],
      "title": "入力レート",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "入力レート",
                "path": "bitrate.input.ave"
              },
              {
                "alias": "入力レート(最大)",
                "path": "bitrate.input.max"
              },
              {
                "alias": "入力レート(最小)",
                "path": "bitrate.input.min"
              }
            ],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 25,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 3,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Video"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Audio"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "purple",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "PSI/SI"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 12,
        "y": 0
      },
      "id": 3,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT date, jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "パケット別帯域グラフ",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "Video",
                "path": "bitrate.group.video.ave"
              },
              {
                "alias": "Audio",
                "path": "bitrate.group.audio.ave"
              },
              {
                "alias": "PSI/SI",
                "path": "bitrate.group.psi/si.ave"
              }
            ],
            "source": "jsondata"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "orange",
            "mode": "fixed"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "Bps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Video"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Audio"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "purple",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "PSI/SI"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 18,
        "y": 0
      },
      "id": 4,
      "options": {
        "displayLabels": [
          "value"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "values": [
            "value",
            "percent"
          ]
        },
        "pieType": "donut",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT date, jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)\nORDER BY date DESC\nLIMIT 1",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "パケット別帯域円グラフ",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "Video",
                "path": "bitrate.group.video.ave"
              },
              {
                "alias": "Audio",
                "path": "bitrate.group.audio.ave"
              },
              {
                "alias": "PSI/SI",
                "path": "bitrate.group.psi/si.ave"
              }
            ],
            "source": "jsondata"
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "PCR Accuracy"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": []
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 0,
        "y": 7
      },
      "id": 17,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "name",
        "wideLayout": true
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE source_id = \"{source_id}\"\nORDER BY date desc\nLIMIT 1\n",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "TSエラーインジケータ(ETR290 Priority 1)",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "Sync Loss",
                "path": "etr290.priority.1_1.TS_sync_Loss"
              },
              {
                "alias": "Sync Byte",
                "path": "etr290.priority.1_2.Sync_byte_error"
              },
              {
                "alias": "PAT",
                "path": "etr290.priority.1_3.PAT_error"
              },
              {
                "alias": "Continuity Count",
                "path": "etr290.priority.1_4.Continuity_count_error"
              },
              {
                "alias": "PMT",
                "path": "etr290.priority.1_5.PMT_error"
              },
              {
                "alias": "PID",
                "path": "etr290.priority.1_6.PID_error"
              }
            ],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "enumConfig": {
                  "text": [
                    "recover"
                  ]
                },
                "targetField": "Sync Loss"
              },
              {
                "destinationType": "number",
                "targetField": "Sync Byte"
              },
              {
                "destinationType": "number",
                "targetField": "PAT"
              },
              {
                "destinationType": "number",
                "targetField": "Continuity Count"
              },
              {
                "destinationType": "number",
                "targetField": "PMT"
              },
              {
                "destinationType": "number",
                "targetField": "PID"
              },
              {
                "destinationType": "number",
                "targetField": "Transport"
              },
              {
                "destinationType": "number",
                "targetField": "CRC"
              },
              {
                "destinationType": "number",
                "targetField": "PCR"
              },
              {
                "destinationType": "number",
                "targetField": "PCR Accuracy"
              },
              {
                "destinationType": "number",
                "targetField": "PTS"
              },
              {
                "destinationType": "number",
                "targetField": "CAT"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.4,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 6,
        "y": 7
      },
      "id": 13,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "サービス毎のビットレート",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "byVariable": false,
            "include": {
              "pattern": "bitrate.service.*.ave|time"
            }
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/bitrate.service.(.*).ave/",
            "renamePattern": "0x$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.4,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 12,
        "y": 7
      },
      "id": 12,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "PID毎のビットレート",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "byVariable": false,
            "include": {
              "pattern": "bitrate.pid.*.ave|time"
            }
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/bitrate.pid.(.*).ave/",
            "renamePattern": "0x$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.4,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 18,
        "y": 7
      },
      "id": 19,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n      AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)\n",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "パケット受信周期グラフ",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "byVariable": false,
            "include": {
              "pattern": "interval\\.pid\\.\\d{4}\\.ave$|time"
            }
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/interval.pid.(.*).ave/",
            "renamePattern": "0x$1"
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "PCR Accuracy"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": []
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 0,
        "y": 14
      },
      "id": 18,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "name",
        "wideLayout": true
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE source_id = \"{source_id}\"\nORDER BY date desc\nLIMIT 1",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "TSエラーインジケータ(ETR290 Priority 2)",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "Transport",
                "path": "etr290.priority.2_1.Transport_error"
              },
              {
                "alias": "CRC",
                "path": "etr290.priority.2_2.CRC_error"
              },
              {
                "alias": "PCR",
                "path": "etr290.priority.2_3.PCR_error"
              },
              {
                "alias": "PCR Accuracy",
                "path": "etr290.priority.2_4.PCR_accuracy_error"
              },
              {
                "alias": "PTS",
                "path": "etr290.priority.2_5.PTS_error"
              },
              {
                "alias": "CAT",
                "path": "etr290.priority.2_6.CAT_error"
              }
            ],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "enumConfig": {
                  "text": [
                    "recover"
                  ]
                },
                "targetField": "Sync Loss"
              },
              {
                "destinationType": "number",
                "targetField": "Sync Byte"
              },
              {
                "destinationType": "number",
                "targetField": "PAT"
              },
              {
                "destinationType": "number",
                "targetField": "Continuity Count"
              },
              {
                "destinationType": "number",
                "targetField": "PMT"
              },
              {
                "destinationType": "number",
                "targetField": "PID"
              },
              {
                "destinationType": "number",
                "targetField": "Transport"
              },
              {
                "destinationType": "number",
                "targetField": "CRC"
              },
              {
                "destinationType": "number",
                "targetField": "PCR"
              },
              {
                "destinationType": "number",
                "targetField": "PCR Accuracy"
              },
              {
                "destinationType": "number",
                "targetField": "PTS"
              },
              {
                "destinationType": "number",
                "targetField": "CAT"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "fillOpacity": 70,
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineWidth": 0,
            "spanNulls": false
          },
          "fieldMinMax": false,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 9,
        "x": 6,
        "y": 14
      },
      "id": 22,
      "options": {
        "alignValue": "center",
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "mergeValues": true,
        "rowHeight": 0.9,
        "showValue": "always",
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\n  date as \"time\",\n  jsondata\nFROM mediaharbor.tsmon_data\nWHERE (\n  source_id = \"{source_id}\"\n  AND date BETWEEN DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s') \n    AND DATE_FORMAT(UTC_TIMESTAMP(), '%Y-%m-%d %H:%i:%s')\n)",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "date",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "jsondata",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99888b88-89ab-4cde-b012-3192d2881b9e",
                  "properties": {
                    "field": "date",
                    "fieldSrc": "field",
                    "operator": "greater",
                    "value": [
                      "2024-10-28 00:49:51"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "datetime"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "b899aaa9-4567-489a-bcde-f192d2885f00",
                  "properties": {
                    "field": "log_id",
                    "fieldSrc": "field",
                    "operator": "equal",
                    "value": [
                      "00400100"
                    ],
                    "valueError": [
                      null
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "aab8bbaa-0123-4456-b89a-b192d2557432",
              "type": "group"
            },
            "whereString": "(date > '2024-10-28 00:49:51.000' AND log_id = '00400100')"
          },
          "table": "monlogs"
        }
      ],
      "title": "エラー発生状態タイムライン",
      "transformations": [
        {
          "id": "extractFields",
          "options": {
            "format": "json",
            "jsonPaths": [
              {
                "alias": "Sync Loss",
                "path": "etr290.priority.1_1.TS_sync_Loss"
              },
              {
                "alias": "Sync Byte",
                "path": "etr290.priority.1_2.Sync_byte_error"
              },
              {
                "alias": "PAT",
                "path": "etr290.priority.1_3.PAT_error"
              },
              {
                "alias": "Continuity Count",
                "path": "etr290.priority.1_4.Continuity_count_error"
              },
              {
                "alias": "PMT",
                "path": "etr290.priority.1_5.PMT_error"
              },
              {
                "alias": "PID",
                "path": "etr290.priority.1_6.PID_error"
              },
              {
                "alias": "Transport",
                "path": "etr290.priority.2_1.Transport_error"
              },
              {
                "alias": "CRC",
                "path": "etr290.priority.2_2.CRC_error"
              },
              {
                "alias": "PCR",
                "path": "etr290.priority.2_3.PCR_error"
              },
              {
                "alias": "PCR Accuracy",
                "path": "etr290.priority.2_4.PCR_accuracy_error"
              },
              {
                "alias": "PTS",
                "path": "etr290.priority.2_5.PTS_error"
              },
              {
                "alias": "CAT",
                "path": "etr290.priority.2_6.CAT_error"
              }
            ],
            "keepTime": true,
            "replace": true,
            "source": "jsondata"
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "enumConfig": {
                  "text": [
                    "recover"
                  ]
                },
                "targetField": "Sync Loss"
              },
              {
                "destinationType": "number",
                "targetField": "Sync Byte"
              },
              {
                "destinationType": "number",
                "targetField": "PAT"
              },
              {
                "destinationType": "number",
                "targetField": "Continuity Count"
              },
              {
                "destinationType": "number",
                "targetField": "PMT"
              },
              {
                "destinationType": "number",
                "targetField": "PID"
              },
              {
                "destinationType": "number",
                "targetField": "Transport"
              },
              {
                "destinationType": "number",
                "targetField": "CRC"
              },
              {
                "destinationType": "number",
                "targetField": "PCR"
              },
              {
                "destinationType": "number",
                "targetField": "PCR Accuracy"
              },
              {
                "destinationType": "number",
                "targetField": "PTS"
              },
              {
                "destinationType": "number",
                "targetField": "CAT"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "state-timeline"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "gridPos": {
        "h": 7,
        "w": 9,
        "x": 15,
        "y": 14
      },
      "id": 20,
      "options": {
        "dedupStrategy": "none",
        "enableLogDetails": true,
        "prettifyLogMessage": false,
        "showCommonLabels": false,
        "showLabels": true,
        "showTime": true,
        "sortOrder": "Descending",
        "wrapLogMessage": true
      },
      "pluginVersion": "11.3.0",
      "targets": [
        {
          "dataset": "mediaharbor",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "code",
          "format": "table",
          "hide": false,
          "rawQuery": true,
          "rawSql": "SELECT\n  m.date as 'time',\n  l.message,\n  lv.name_en as 'level',\n  m.jsondata\nFROM mediaharbor.monlogs m\nJOIN mediaharbor.m_log_ids l ON m.log_id = l.id\nJOIN mediaharbor.m_log_levels lv ON l.level = lv.level\nWHERE (\n  date >= DATE_FORMAT(UTC_TIMESTAMP() - INTERVAL 1 HOUR, '%Y-%m-%d %H:%i:%s')\n  AND source_id = \"{source_id}\"\n  AND l.mon_id = \"TS\"\n)\nORDER BY date DESC\nLIMIT 50",
          "refId": "B",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "エラーログ",
      "type": "logs"
    }
  ],
  "refresh": "auto",
  "schemaVersion": 40,
  "tags": [
    "MHB",
    "TSMON"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "TS監視-taiwan",
  "uid": "waefawefseawef3",
  "version": 15,
  "weekStart": ""
}