|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
图表数据结构。 |
||
| action |
object |
action |
{ "type": "drilldown", "openLogstore": { "logstore": "nginx-access-log", "query": "status: 500" } } |
| display |
object |
图表的显示配置。 |
{ "xAxis": ["time"], "yAxis": ["count"], "xPos": 0, "yPos": 0, "width": 10, "height": 8, "showTitle": true, "showLegend": true, "legendPosition": "bottom", "lineWidth": 2, "showPoint": true, "fillArea": false } |
| search |
object |
查询配置。 |
{ "logstore": "nginx-access-log", "query": "(*)| SELECT date_format(__time__ - __time__ % 60, '%H:%i:%s') as time, count(1) as count GROUP BY time ORDER BY time", "timeSpanType": "Relative", "start": "-1h", "end": "now" } |
| title |
string |
图表标题。 |
my-chart |
| type |
string |
图表类型。 |
linepro |
该文章对您有帮助吗?