aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/schlab/mon/static/js/scharm-test0.js
blob: 7d543b63c11356c17956818e8241cca49bbb6b73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var cfg = [{
    "label": "mygen1",
    "startTime": 0,
    "period": 50,
    "periodCount": 0,
    "reqSizeBytes": 1000000,
    "reqCount": 1,
    "reqInterval": 1,
    "user": "vdisk0",
    "desc": "write-log"
},{
    "label": "mygen2",
    "startTime": 0,
    "period": 50,
    "periodCount": 0,
    "reqSizeBytes": 1000000,
    "reqCount": 5,
    "reqInterval": 1,
    "user": "vdisk1",
    "desc": "write-chunk"
}];

var scharm = d3.scharm().height(350).width(800);

scharm.tableSelector('#cfg-table');
scharm.chartSelector('#cfg-chart');
scharm.applyUrl('?mode=setconfig');
scharm.timeDomain([0, 1000]);
scharm(cfg);