import {proxy} from 'utils/queryUrlGenerator'

export function getAlerts(source, timeRange) {
  return proxy({
    source,
    query: `SELECT host, value, level, alertName FROM alerts WHERE time >= '${timeRange.lower}' AND time <= '${timeRange.upper}' ORDER BY time desc`,
    db: 'chronograf',
  })
}

import {proxy} from 'utils/queryUrlGenerator'

export const getAlerts = (source, timeRange) =>
  proxy({
    source,
    query: `SELECT host, value, level, alertName FROM alerts WHERE time >= '${timeRange.lower}' AND time <= '${timeRange.upper}' ORDER BY time desc`,
    db: 'chronograf',
  })

Update getAlerts syntax to ES6
Update getAlerts syntax to ES6
