如何将Kibana数据转换为Java图形

时间:2016-03-22 17:54:27

标签: java elasticsearch kibana

我将这些数据存储在ElasticSearch中:

{
    "_index": ".kibana",
    "_type": "visualization",
    "_id": "bar-teste",
    "_version": 1,
    "found": true,
    "_source": {
        "title": "bar teste",
        "visState": "{\"title\":\"New Visualization\",\"type\":\"histogram\",\"params\":{\"shareYAxis\":true,\"addTooltip\":true,\"addLegend\":true,\"scale\":\"linear\",\"mode\":\"stacked\",\"times\":[],\"addTimeMarker\":false,\"defaultYExtents\":false,\"setYExtents\":false,\"yAxis\":{}},\"aggs\":[{\"id\":\"1\",\"type\":\"cardinality\",\"schema\":\"metric\",\"params\":{\"field\":\"entityFk\"}},{\"id\":\"2\",\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"entityObj.description\",\"size\":3,\"order\":\"asc\",\"orderBy\":\"1\"}}],\"listeners\":{}}",
        "uiStateJSON": "{}",
        "description": "",
        "version": 1,
        "kibanaSavedObjectMeta": {
            "searchSourceJSON": "{\"index\":\"index*\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
        }
    }
}

此数据是垂直条形图。我可以通过HTTP请求获取此数据。 问题是:它可以将这些数据转换成Java中的图形吗? 谢谢。

0 个答案:

没有答案