我想使用HTTP方法将新的仪表板发布到我的本地Kibana实例,但是我在使用API时找不到太多相关文档。
Kibana上有一个拉请求(pull request)提到了它正在添加此功能,但是如何使用它的文档很少:https://github.com/elastic/kibana/pull/10858
这是我尝试发布的仪表板示例:
{
"_id": "12345678-1234-1234-1234-1234567890op",
"_type": "dashboard",
"_source": {
"title": "my-app",
"hits": 0,
"description": "",
"panelsJSON": "",
"optionsJSON": "{\"darkTheme\":false}",
"uiStateJSON": "",
"version": 1,
"timeRestore": true,
"timeTo": "now/d",
"timeFrom": "now/d",
"refreshInterval": {
"display": "1 minute",
"pause": false,
"section": 2,
"value": 60000
},
"kibanaSavedObjectMeta": {
"searchSourceJSON": ""
}
}
}