-
Notifications
You must be signed in to change notification settings - Fork 258
/
json-urls.js
58 lines (44 loc) · 1.87 KB
/
json-urls.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
////////////////////////////////////////////////////////////
// Helper functions for getting URLs of JSON files
function runManifestJsonUrl(release) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/run_manifest.json`;
}
function summaryJsonUrl(release) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/summary.json`;
}
function runSpecsJsonUrl(release) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/run_specs.json`;
}
function groupsMetadataJsonUrl(release) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/groups_metadata.json`;
}
function groupsJsonUrl(release) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/groups.json`;
}
function groupJsonUrl(release, groupName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/releases/${release}/groups/${groupName}.json`;
}
function runSpecJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/run_spec.json`
}
function scenarioJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/scenario.json`;
}
function scenarioStateJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/scenario_state.json`;
}
function statsJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/stats.json`;
}
function instancesJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/instances.json`;
}
function predictionsJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/display_predictions.json`;
}
function requestsJsonUrl(suite, runSpecName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/${runSpecName}/display_requests.json`;
}
function plotUrl(suite, plotName) {
return `${BENCHMARK_OUTPUT_BASE_URL}/runs/${suite}/plots/${plotName}.png`;
}