Back again:
if you want to export/import a timelion sheet, using the restApi, try this !
Export (get the content of your sheet, as seen above):
GET localhost:9200/.kibana/timelio-sheet/MySavedSheetId
Import:
take the content your export, but just keep the elements under "source", and put it like this in your destination Kibana instance:
PUT http://localhost:9200/.kibana/timelion-sheet/ImportedTestSheet
JSON content of this http PUT request:
{
"title": "ImportedTestSheet",
"hits": 0,
"description": "",
"timelion_sheet": [".es(index='jmeter_tir3',avg:ResponseTimeMs).label('Tir3').title(title='Response Time (ms)'),.es(index='jmeter_tir4',avg:ResponseTimeMs,offset=-11m).label('Tir4')",
".es(index='jmeter_tir3',avg:Bytes).label('Tir3').title(title='Bytes Per Request'),.es(index='jmeter_tir4',avg:Bytes,offset=-11m).label('Tir4')",
".es(index='jmeter_tir3',avg:Error).label('Tir3').title(title='Errors/s'),.es(index='jmeter_tir4',avg:Error,offset=-11m).label('Tir4')",
".es(index='jmeter_tir3').label('Tir3').title(title='Hits/s'),.es(index='jmeter_tir4',offset=-11m).label('Tir4')"],
"timelion_interval": "1s",
"timelion_other_interval": "1d",
"timelion_chart_height": 275,
"timelion_columns": 2,
"timelion_rows": 2,
"version": 1
}
In this example, the Timelion code used in this sheet was (just to help you read the JSON content above ):
.es(index='jmeter_tir3',avg:ResponseTimeMs).label('Tir3').title(title='Response Time (ms)'),.es(index='jmeter_tir4',avg:ResponseTimeMs,offset=-11m).label('Tir4')
Hope this could help