"rawSql":"select count(1), destination, creation_date as \"time\" from res_letterbox where destination is not null group by destination, creation_date",
"refId":"A",
"select":[
[
{
"params":[
"fee"
],
"type":"column"
}
]
],
"table":"shippings",
"timeColumn":"creation_date",
"timeColumnType":"timestamp",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"thresholds":[],
"timeFrom":null,
"timeRegions":[],
"timeShift":null,
"title":"Courriers par service",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"series",
"name":null,
"show":true,
"values":[
"count"
]
},
"yaxes":[
{
"format":"none",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":true
},
{
"format":"none",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":true
}
],
"yaxis":{
"align":false,
"alignLevel":null
}
},
{
"aliasColors":{},
"bars":true,
"dashLength":10,
"dashes":false,
"datasource":null,
"fieldConfig":{
"defaults":{
"custom":{}
},
"overrides":[]
},
"fill":1,
"fillGradient":0,
"gridPos":{
"h":8,
"w":11,
"x":0,
"y":7
},
"hiddenSeries":false,
"id":8,
"legend":{
"avg":false,
"current":false,
"max":false,
"min":false,
"show":false,
"total":false,
"values":false
},
"lines":false,
"linewidth":1,
"nullPointMode":"null",
"options":{
"alertThreshold":true
},
"percentage":false,
"pluginVersion":"7.3.7",
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"spaceLength":10,
"stack":false,
"steppedLine":false,
"targets":[
{
"format":"time_series",
"group":[],
"metricColumn":"none",
"rawQuery":true,
"rawSql":"select DATE_PART('day', closing_date - creation_date) as \"delay\", destination, creation_date as \"time\" from res_letterbox where destination is not null and closing_date is not null group by destination, delay, time",
"rawSql":"SELECT\n $__timeGroupAlias(closing_date,$__interval),\n count(res_id) AS \"res_id\"\nFROM res_letterbox\nWHERE\n $__timeFilter(closing_date) and closing_date is not null\nGROUP BY 1\nORDER BY 1",