
Use ds.test when you want to use mock data
The ds.test
data source is used for sample data.
ds.test data sources can only be created in the source editor
You create column events and field values manually. The order of the column and field options is unimportant, but you must have the same number of column values as field names. ds.test
is commonly structured in a way similar to this data source taken from the Boston Marathon example.
"bodyTemp": { "name": "search5", "options": { "data": { "columns": [ [ "99.6" ], [ "98.7" ], [ "99.4" ] ], "fields": [ { "name": "Alan" }, { "name": "Emily" }, { "name": "Jasmin" } ] }, "meta": {} }, "type": "ds.test" },
ds.test example
A run-anywhere example of a dashboard that only uses mock data is in the Boston Marathon in the examples section of the manual.
PREVIOUS Use ds.savedSearch to use reports and saved searches |
NEXT Add secondary data sources to your visualization |
This documentation applies to the following versions of Splunk® Dashboards App: 0.8.0, 0.9.0
Feedback submitted, thanks!