There was an error while loading. Please reload this page.
The test source generates fake time-series data for fun and profit. Can also be used to generate sparse test events.
type
test
target
&sparsity=0.5
Dash.stats() .add({ title: 'Fake data', type: 'test', target: 'foo.bar.baz&sparsity=0.2' })
The .find() method returns the number of fake metric names requested in the target param.
.find()
Dash.stats() .config({ type: 'test', display: 'last' }) .find({ type: 'test', // fake data target: '3', // number of metrics to return add: function(metric) { return { title: Dash.capitalize(metric.replace(/\./g, ' ')), target: metric + '&sparsity=' + Math.random() } } })
Use a very high sparsity to generate realistic events:
Dash.events() .add( { title: 'FakeEvent', type: 'test', target: 'test.event&sparsity=0.98' } )