"name" is apparently a reserved word
parent
1db252643f
commit
def3c434b3
|
@ -3,7 +3,7 @@ import {proxy} from 'utils/queryUrlGenerator';
|
||||||
export function getAlerts(proxyLink) {
|
export function getAlerts(proxyLink) {
|
||||||
return proxy({
|
return proxy({
|
||||||
source: proxyLink,
|
source: proxyLink,
|
||||||
query: "select host, value, level, alert_name from alert",
|
query: "select host, value, level, \"name\" from alert",
|
||||||
db: "chronograf",
|
db: "chronograf",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ const AlertsApp = React.createClass({
|
||||||
const hostIndex = alertSeries[0].columns.findIndex((col) => col === 'host');
|
const hostIndex = alertSeries[0].columns.findIndex((col) => col === 'host');
|
||||||
const valueIndex = alertSeries[0].columns.findIndex((col) => col === 'value');
|
const valueIndex = alertSeries[0].columns.findIndex((col) => col === 'value');
|
||||||
const levelIndex = alertSeries[0].columns.findIndex((col) => col === 'level');
|
const levelIndex = alertSeries[0].columns.findIndex((col) => col === 'level');
|
||||||
const nameIndex = alertSeries[0].columns.findIndex((col) => col === 'alert_name');
|
const nameIndex = alertSeries[0].columns.findIndex((col) => col === 'name');
|
||||||
|
|
||||||
alertSeries[0].values.forEach((s) => {
|
alertSeries[0].values.forEach((s) => {
|
||||||
results.push({
|
results.push({
|
||||||
|
|
Loading…
Reference in New Issue