Skip to content

Commit 9bbf0ab

Browse files
Support Kibana 6.6.0
- Kibana 6.6+ uses a newer HAPI version which comes with some breaking changes
1 parent 737c003 commit 9bbf0ab

File tree

4 files changed

+635
-420
lines changed

4 files changed

+635
-420
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.11.4
1+
10.14.1

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "elastalert-kibana-plugin",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Create, test and edit ElastAlert rules within Kibana.",
55
"main": "index.js",
66
"license": "SEE LICENSE IN LICENSE.md",
77
"kibana": {
8-
"version": "6.5.1",
8+
"version": "6.6.0",
99
"templateVersion": "1.0.0"
1010
},
1111
"scripts": {
@@ -35,6 +35,6 @@
3535
"expect.js": "^0.3.1"
3636
},
3737
"dependencies": {
38-
"@elastic/eui": "^5.1.0"
38+
"@elastic/eui": "^6.8.0"
3939
}
4040
}

server/routes/elastalert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function (server, options) {
1+
export default function(server, options) {
22
const baseUri = `http${options.serverSsl ? 's' : ''}://${options.serverHost}:${options.serverPort}`;
33

44
// Route every request to the ElastAlert API
@@ -7,8 +7,8 @@ export default function (server, options) {
77
method: ['GET', 'POST', 'DELETE'],
88
handler: {
99
proxy: {
10-
mapUri: function (request, callback) {
11-
callback(null, `${baseUri}/${request.params.path || ''}`);
10+
mapUri: request => {
11+
return { uri: `${baseUri}/${request.params.path || ''}` };
1212
}
1313
}
1414
}

0 commit comments

Comments
 (0)