-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdingo_job_types.js
58 lines (55 loc) · 1.45 KB
/
dingo_job_types.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
// dingo_job_types.js
//
// Specific information by job type to allow validation, etc.
var armCompute = require('./arm_compute_ops');
exports = module.exports = {};
exports.vmss = {
operations: {
start: {
op: armCompute.vmssOperations.start_vm
},
stop: {
op: armCompute.vmssOperations.stop_vm
},
restart: {
op: armCompute.vmssOperations.restart_vm,
allowRandom: true
},
powercycle: {
op: [armCompute.vmssOperations.stop_vm, armCompute.vmssOperations.start_vm],
args: {
duration: {
type: 'int-range',
defaultValue: 60,
includeInCall: false
}
},
allowRandom: true
}
}
};
exports.vm = {
operations: {
start: {
op: armCompute.vmOperations.start_vm
},
stop: {
op: armCompute.vmOperations.stop_vm
},
restart: {
op: armCompute.vmOperations.restart_vm,
allowRandom: true
},
powercycle: {
op: [armCompute.vmOperations.stop_vm, armCompute.vmOperations.start_vm],
args: {
duration: {
type: 'int-range',
defaultValue: 60,
includeInCall: false
}
},
allowRandom: true
}
}
};