-
Notifications
You must be signed in to change notification settings - Fork 17
/
createUiDefinition.json
73 lines (73 loc) · 1.78 KB
/
createUiDefinition.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{
"name": "instances",
"type": "Microsoft.Common.DropDown",
"label": "Number of slaves",
"defaultValue": "3",
"toolTip": "One slave ~600rps",
"constraints": {
"allowedValues": [
{
"label": "1",
"value": 1
},
{
"label": "2",
"value": 2
},
{
"label": "3",
"value": 3
},
{
"label": "5",
"value": 5
},
{
"label": "10",
"value": 10
},
{
"label": "15",
"value": 15
},
{
"label": "20",
"value": 20
}
],
"required": true
},
"visible": true
},
{
"name": "locustfile",
"type": "Microsoft.Common.FileUpload",
"label": "Locustfile (optional)",
"toolTip": "Upload locustfile.py. If empty, default will be used. You can change it later.",
"constraints": {
"required": false,
"accept": ".py,text/plain"
},
"options": {
"multiple": false,
"uploadMode": "file",
"openMode": "binary",
"encoding": "UTF-8"
},
"visible": true
}
],
"steps": [],
"outputs": {
"location": "[location()]",
"instances": "[steps('basics').instances]",
"locustfile": "[steps('basics').locustfile]"
}
}
}