Proemion Timeseries Example
Example of a Timeseries dashboard with variables to select machines, signals, bucket size, and aggregation.
Infinity Plugin must first be setup. 
-EdMe
{
  "__inputs": [
    {
      "name": "DS_INFINITY-FAIRDEMO",
      "label": "Infinity",
      "description": "Infinity Plugin with your Proemion OAuth2.0 credentials",
      "type": "datasource",
      "pluginId": "yesoreyeram-infinity-datasource",
      "pluginName": "Infinity"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.5.3-cloud.2.0cb5a501"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "yesoreyeram-infinity-datasource",
      "name": "Infinity",
      "version": "1.2.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "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": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "${DS_INFINITY-FAIRDEMO}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 9,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 8,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 16,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 7,
      "maxDataPoints": 500,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": false
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.2.4",
      "targets": [
        {
          "columns": [
            {
              "selector": "time",
              "text": "",
              "type": "timestamp_epoch"
            },
            {
              "selector": "value",
              "text": "",
              "type": "number"
            }
          ],
          "computed_columns": [],
          "datasource": {
            "type": "yesoreyeram-infinity-datasource",
            "uid": "${DS_INFINITY-FAIRDEMO}"
          },
          "filters": [],
          "format": "timeseries",
          "global_query_id": "",
          "json_options": {
            "root_is_not_array": false
          },
          "key": "Q-326ddfea-86d3-4bb4-8c46-25640c56f9d5-0",
          "parser": "simple",
          "refId": "A",
          "root_selector": "[0]timeseries",
          "source": "url",
          "type": "json",
          "url": "https://dataportal.proemion.com/api/v22.7.0/timeseries",
          "url_options": {
            "body_content_type": "application/json",
            "body_type": "raw",
            "data": "{\r\n  \"from\": ${__from},\r\n  \"to\": ${__to},\r\n  \"bucketSize\": ${BucketSize},\r\n  \r\n  \"queries\": [\r\n    {\r\n      \"signal\": \"${SignalId}\",\r\n      \"aggregationFunction\": \"${aggregationFunction}\",\r\n      \"groupBy\": {\r\n        \"type\": \"machine\",\r\n        \"id\": \"${MachineId}\"\r\n      }\r\n    }\r\n  ]\r\n}",
            "method": "POST",
            "params": []
          }
        }
      ],
      "title": "${MachineId} (${aggregationFunction} : ${BucketSize}) ${SignalId}",
      "type": "timeseries"
    }
  ],
  "refresh": "",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "Page 1",
          "value": "0"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Machine List Page",
        "multi": false,
        "name": "MachineListPage",
        "options": [
          {
            "selected": true,
            "text": "Page 1",
            "value": "0"
          },
          {
            "selected": false,
            "text": "Page 2",
            "value": "1000"
          },
          {
            "selected": false,
            "text": "Page 3",
            "value": "2000"
          },
          {
            "selected": false,
            "text": "Page 4",
            "value": "3000"
          },
          {
            "selected": false,
            "text": "Page 5",
            "value": "4000"
          },
          {
            "selected": false,
            "text": "Page 6",
            "value": "5000"
          },
          {
            "selected": false,
            "text": "Page 7",
            "value": "6000"
          },
          {
            "selected": false,
            "text": "Page 8",
            "value": "7000"
          },
          {
            "selected": false,
            "text": "Page 9",
            "value": "8000"
          },
          {
            "selected": false,
            "text": "Page 10",
            "value": "9000"
          }
        ],
        "query": "Page 1 : 0, Page 2 : 1000, Page 3 : 2000, Page 4 : 3000, Page 5 : 4000, Page 6 : 5000, Page 7 : 6000, Page 8 : 7000, Page 9 : 8000, Page 10 : 9000",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {},
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "${DS_INFINITY-FAIRDEMO}"
        },
        "definition": "Proemion RestAPI- (infinity) json",
        "hide": 0,
        "includeAll": false,
        "label": "Machine Id",
        "multi": false,
        "name": "MachineId",
        "options": [],
        "query": {
          "infinityQuery": {
            "columns": [
              {
                "selector": "name",
                "text": "",
                "type": "string"
              },
              {
                "selector": "id",
                "text": "",
                "type": "string"
              }
            ],
            "filters": [],
            "format": "table",
            "refId": "variable",
            "root_selector": "",
            "source": "url",
            "type": "json",
            "url": "https://dataportal.proemion.com/api/v22.7.0/machines",
            "url_options": {
              "data": "",
              "method": "GET",
              "params": [
                {
                  "key": "limit",
                  "value": "1000"
                },
                {
                  "key": "offset",
                  "value": "${MachineListPage}"
                }
              ]
            }
          },
          "query": "",
          "queryType": "infinity"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "${DS_INFINITY-FAIRDEMO}"
        },
        "definition": "Proemion RestAPI- (infinity) json",
        "hide": 0,
        "includeAll": false,
        "label": "Signal Id",
        "multi": false,
        "name": "SignalId",
        "options": [],
        "query": {
          "infinityQuery": {
            "columns": [
              {
                "selector": "label",
                "text": "",
                "type": "string"
              },
              {
                "selector": "key",
                "text": "",
                "type": "string"
              }
            ],
            "filters": [],
            "format": "table",
            "refId": "variable",
            "root_selector": "",
            "source": "url",
            "type": "json",
            "url": "https://dataportal.proemion.com/api/v22.7.0//machines/${MachineId}/signals",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          },
          "query": "",
          "queryType": "infinity"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": "Day",
          "value": "86400000"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Bucket Size",
        "multi": false,
        "name": "BucketSize",
        "options": [
          {
            "selected": false,
            "text": "Millisecond",
            "value": "0"
          },
          {
            "selected": false,
            "text": "Second",
            "value": "1000"
          },
          {
            "selected": false,
            "text": "Minute",
            "value": "60000"
          },
          {
            "selected": false,
            "text": "Hour",
            "value": "3600000"
          },
          {
            "selected": true,
            "text": "Day",
            "value": "86400000"
          },
          {
            "selected": false,
            "text": "Week",
            "value": "604800000"
          },
          {
            "selected": false,
            "text": "Month",
            "value": "2628000000"
          },
          {
            "selected": false,
            "text": "Year",
            "value": "31557600000"
          }
        ],
        "query": "Millisecond : 0, Second : 1000, Minute : 60000, Hour : 3600000, Day : 86400000, Week : 604800000, Month : 2628000000, Year : 31557600000",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {
          "selected": true,
          "text": "Raw",
          "value": "raw"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Aggregation",
        "multi": false,
        "name": "aggregationFunction",
        "options": [
          {
            "selected": false,
            "text": "Delta",
            "value": "delta"
          },
          {
            "selected": false,
            "text": "Max",
            "value": "max"
          },
          {
            "selected": false,
            "text": "Min",
            "value": "min"
          },
          {
            "selected": false,
            "text": "Average",
            "value": "average"
          },
          {
            "selected": true,
            "text": "Raw",
            "value": "raw"
          },
          {
            "selected": false,
            "text": "Standard Deviation",
            "value": "std"
          },
          {
            "selected": false,
            "text": "Sum",
            "value": "sum"
          },
          {
            "selected": false,
            "text": "Cumulative Sum",
            "value": "cumulative_sum"
          },
          {
            "selected": false,
            "text": "Average Serial Difference",
            "value": "avg_serial_diff"
          }
        ],
        "query": "Delta : delta, Max : max, Min : min, Average : average, Raw : raw, Standard Deviation : std, Sum : sum, Cumulative Sum : cumulative_sum, Average Serial Difference : avg_serial_diff",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-6M",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Proemion Timeseries Example",
  "uid": "-5_TJUK4z",
  "version": 9,
  "weekStart": "",
  "gnetId": 18786,
  "description": "Example of a Timeseries dashboard with variables to select machines, signals, bucket size, and aggregation."
}