Get timestamp of the interval

Hi there,

is there any way to get the start and end timestamp of the individual interval (e.g. $_interval does return 5 min on 6 hour overview timeseries graph), but is there any way to get the start time and end time of every individual interval so we can use it on filtering on some columns in the DB?

So something like this:

SELECT cast(cast((100*(SELECT count(ErrorLevel)
FROM dbo.MonitorsDataView a
INNER JOIN dbo.monitors b
ON b.MonitorGuid = a.MonitorGuid
where a.ErrorLevel='NoError' and b.Name LIKE '%Bla%' and a.Timestamp BETWEEN '${__from:date:iso}' AND '${__to:date:iso}'))as decimal(10,2))/cast((SELECT COUNT(*) AS 'Percentage' FROM dbo.MonitorsDataView a
INNER JOIN dbo.monitors b
ON b.MonitorGuid = a.MonitorGuid
where b.Name LIKE '%Bla%' and a.Timestamp BETWEEN '${__from:date:iso}' AND '${__to:date:iso}')as decimal(10,2))as decimal(10,2));

But not using overall start and end time but for every single interval.

Many thanks!