Skip to content

Commit d7216e4

Browse files
krishna1sKrishna Chandakvenkatr21Harshan01harshan-b
authored
LoadTest Service: new preview api version (#18169)
* adding data plane apis for load test service * adding custom words * Azure load test api 2022-03-01-preview * New API version for fetching client metrics * validation fixes * typo fix * resolving comments * prettier run * updated new examples * renamed all files * updated all secrets fields * updates examples reference in spec * updated pf criteria examples * updated resource id field * updated subnet fields * updated all examples * added host and schemes * fix file type value * renamed file * updated all the examples * removed validate file api ref and examples * adding back all the params left out by oav tool * resolve comments * updated jmx filetype to be 0 * Improve descriptions * updated nextlink * resolving comments * added filetype description * update filetype enum * Custom words * Typo fixes * Modify FileUrl description * description "ISO 8601" * matching regex for semantics * move testId from params to inline - fix semantics * moved api version def to inline * added apiversion type string * temp change dele app component * semantics fix * fixing testId and apiversion semantic * added oneOf for schema * testId query and path param changes * appcomponent spec and example updates * fix required type definition * added readonly to testArtifacts * removing required from resultUrl and logsUrl * temp changes apiversion inline * reverting temp changes * fix lint validation * adding required value in fileUrlList * order testID param, refactor error, security scope * file put api returns fileUrl model * updated examples * File api changes * prettier fix * adhering error model to rest api guidelines * added next link in file url list * updated example for nextlink fileUrlList * added continuation token for get all files * updated secret description Co-authored-by: Krishna Chandak <krchanda@microsoft.com> Co-authored-by: Venkat Ragavan <mail2venkat21@gmail.com> Co-authored-by: Harshan B <harshan01@gmail.com> Co-authored-by: harshan-b <101398067+harshan-b@users.noreply.github.com>
1 parent 0ea2274 commit d7216e4

29 files changed

+5142
-1
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,7 @@ SPDX
19591959
specversion
19601960
speechservicesmanagement
19611961
speechtotext
1962+
splitAllCSVs
19621963
SQLAG
19631964
sqldatabase
19641965
SQLDB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"parameters": {
3+
"testRunId": "12316678-1234-1234-1234-122451189012",
4+
"oldTestRunId": "12345678-1234-1234-1234-123456789012",
5+
"api-version": "2022-06-01-preview",
6+
"body": {
7+
"displayName": "Performance_LoadTest_Run1",
8+
"testId": "12345678-1234-1234-1234-123456789012",
9+
"description": "sample description",
10+
"loadTestConfig": {
11+
"engineInstances": 6,
12+
"splitAllCSVs": true
13+
},
14+
"passFailCriteria": {
15+
"passFailMetrics": {
16+
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": {
17+
"clientmetric": "response_time_ms",
18+
"aggregate": "percentage",
19+
"condition": ">",
20+
"value": 20,
21+
"action": "continue"
22+
}
23+
}
24+
},
25+
"secrets": {
26+
"secret1": {
27+
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827",
28+
"type": "AKV_SECRET_URI"
29+
}
30+
},
31+
"environmentVariables": {
32+
"envvar1": "sampletext"
33+
}
34+
}
35+
},
36+
"responses": {
37+
"200": {
38+
"body": {
39+
"testRunId": "12316678-1234-1234-1234-122451189012",
40+
"displayName": "Performance_LoadTest_Run1",
41+
"testId": "12345678-1234-1234-1234-123456789012",
42+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.loadtestservice/sampleresourcetype/sampleresourcename",
43+
"description": "sample description",
44+
"status": "ACCEPTED",
45+
"startDateTime": "2021-12-05T16:43:48.125Z",
46+
"endDateTime": "2021-12-05T16:43:48.125Z",
47+
"loadTestConfig": {
48+
"engineInstances": 6,
49+
"splitAllCSVs": true
50+
},
51+
"testResult": "Passed",
52+
"passFailCriteria": {
53+
"passFailMetrics": {
54+
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": {
55+
"clientmetric": "response_time_ms",
56+
"aggregate": "percentage",
57+
"condition": ">",
58+
"value": 20,
59+
"action": "continue",
60+
"actualValue": 10,
61+
"result": "passed"
62+
}
63+
}
64+
},
65+
"testArtifacts": {
66+
"inputArtifacts": {
67+
"configUrl": {
68+
"url": "https://dummyurl.com/configresource",
69+
"fileId": "92345678-1234-1111-1234-123456789012",
70+
"filename": "config.yaml",
71+
"fileType": 2,
72+
"expireTime": "2021-12-05T16:43:46.072Z",
73+
"validationStatus": ""
74+
},
75+
"testScriptUrl": {
76+
"url": "https://dummyurl.com/testscriptresource",
77+
"fileId": "92345678-1234-1111-1234-123456789011",
78+
"filename": "sample.jmx",
79+
"fileType": 0,
80+
"expireTime": "2021-12-05T16:43:46.072Z",
81+
"validationStatus": "VALIDATION_SUCCESS"
82+
},
83+
"userPropUrl": {
84+
"url": "https://dummyurl.com/userpropresource",
85+
"fileId": "92345678-1234-1111-1234-123456789013",
86+
"filename": "user.properties",
87+
"fileType": 1,
88+
"expireTime": "2021-12-05T16:43:46.072Z",
89+
"validationStatus": ""
90+
},
91+
"inputArtifactsZipFileurl": {
92+
"url": "https://dummyurl.com/inputartifactzipresource",
93+
"fileId": "92345678-1234-1111-1234-123456789012",
94+
"filename": "inputartifacts.zip",
95+
"fileType": 2,
96+
"expireTime": "2021-12-05T16:43:46.072Z",
97+
"validationStatus": ""
98+
},
99+
"additionalUrls": []
100+
},
101+
"outputArtifacts": {
102+
"resultUrl": {
103+
"url": "https://dummyurl.com/dummyresourceresult",
104+
"fileId": "92345678-1234-1111-1234-123456789012",
105+
"filename": "sample.jmx",
106+
"fileType": 0,
107+
"expireTime": "2021-12-05T16:43:46.072Z",
108+
"validationStatus": "VALIDATION_SUCCESS"
109+
},
110+
"logsUrl": {
111+
"url": "https://dummyurl.com/logresource",
112+
"fileId": "abb846a7-63af-4d63-bb3d-a7aa4caff55c",
113+
"filename": "worker.log",
114+
"fileType": 2,
115+
"expireTime": "2022-05-16T09:14:46.0411793+00:00",
116+
"validationStatus": ""
117+
}
118+
}
119+
},
120+
"executedDateTime": "2021-12-05T16:43:48.125Z",
121+
"vusers": 4,
122+
"testRunStatistics": {
123+
"Total": {
124+
"transaction": "Total",
125+
"sampleCount": 18,
126+
"errorCount": 19,
127+
"errorPct": 17,
128+
"meanResTime": 13,
129+
"medianResTime": 10,
130+
"maxResTime": 16,
131+
"minResTime": 18,
132+
"pct1ResTime": 27,
133+
"pct2ResTime": 20,
134+
"pct3ResTime": 3,
135+
"throughput": 5,
136+
"receivedKBytesPerSec": 13,
137+
"sentKBytesPerSec": 4
138+
}
139+
},
140+
"createdDateTime": "2021-12-05T16:43:46.072Z",
141+
"createdBy": "elon-musk@microsoft.com",
142+
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z",
143+
"lastModifiedBy": "elon-musk@microsoft.com",
144+
"portalUrl": "https://portal.azure.com/dummyresource",
145+
"secrets": {
146+
"secret1": {
147+
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827",
148+
"type": "AKV_SECRET_URI"
149+
}
150+
},
151+
"environmentVariables": {
152+
"envvar1": "sampletext"
153+
},
154+
"duration": 18,
155+
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0"
156+
}
157+
}
158+
}
159+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"parameters": {
3+
"name": "ee843bd9-a6d4-4364-a45c-427a03c39fa7",
4+
"api-version": "2022-06-01-preview",
5+
"body": {
6+
"testId": "12345678-1234-1234-1234-123456789012",
7+
"testRunId": "12316678-1234-1234-1234-122451189012",
8+
"value": {
9+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
10+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
11+
"resourceType": "microsoft.insights/components",
12+
"resourceName": "appcomponentresource",
13+
"displayName": "Performance_LoadTest_Insights",
14+
"kind": "web"
15+
}
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.loadtestservice/sampleresourcetype/sampleresourcename",
23+
"testId": "12345678-1234-1234-1234-123456789012",
24+
"testRunId": "12316678-1234-1234-1234-122451189012",
25+
"name": "ee843bd9-a6d4-4364-a45c-427a03c39fa7",
26+
"value": {
27+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
28+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
29+
"resourceType": "microsoft.insights/components",
30+
"resourceName": "appcomponentresource",
31+
"displayName": "Performance_LoadTest_Insights",
32+
"resourceGroup": "samplerg",
33+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
34+
"kind": "web"
35+
}
36+
}
37+
}
38+
},
39+
"201": {
40+
"body": {
41+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.loadtestservice/sampleresourcetype/sampleresourcename",
42+
"testId": "12345678-1234-1234-1234-123456789012",
43+
"testRunId": "12316678-1234-1234-1234-122451189012",
44+
"name": "ee843bd9-a6d4-4364-a45c-427a03c39fa7",
45+
"value": {
46+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
47+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
48+
"resourceType": "microsoft.insights/components",
49+
"resourceName": "appcomponentresource",
50+
"displayName": "Performance_LoadTest_Insights",
51+
"resourceGroup": "samplerg",
52+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
53+
"kind": "web"
54+
}
55+
}
56+
}
57+
}
58+
}
59+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"name": "edc6e529-d009-4b99-b763-ca492e3a2823",
4+
"api-version": "2022-06-01-preview",
5+
"body": {
6+
"testId": "12345678-1234-1234-1234-123456789012",
7+
"testRunId": "12316678-1234-1234-1234-122451189012",
8+
"metrics": {
9+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource/providers/microsoft.insights/metricdefinitions/requests/duration": {
10+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
11+
"metricnamespace": "microsoft.insights/components",
12+
"displayDescription": "sample description",
13+
"name": {
14+
"value": "requests/duration",
15+
"localizedValue": "Server Response Time"
16+
},
17+
"aggregation": "Average",
18+
"unit": null,
19+
"resourceType": "microsoft.insights/components"
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"name": "edc6e529-d009-4b99-b763-ca492e3a2823",
28+
"testId": "12345678-1234-1234-1234-123456789012",
29+
"testRunId": "12316678-1234-1234-1234-122451189012",
30+
"metrics": {
31+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource/providers/microsoft.insights/metricdefinitions/requests/duration": {
32+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource/providers/microsoft.insights/metricdefinitions/requests/duration",
33+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
34+
"metricnamespace": "microsoft.insights/components",
35+
"displayDescription": "sample description",
36+
"name": {
37+
"value": "requests/duration",
38+
"localizedValue": "Server Response Time"
39+
},
40+
"aggregation": "Average",
41+
"unit": null,
42+
"resourceType": "microsoft.insights/components"
43+
}
44+
}
45+
}
46+
},
47+
"201": {
48+
"body": {
49+
"name": "edc6e529-d009-4b99-b763-ca492e3a2823",
50+
"testId": "12345678-1234-1234-1234-123456789012",
51+
"testRunId": "12316678-1234-1234-1234-122451189012",
52+
"metrics": {
53+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource/providers/microsoft.insights/metricdefinitions/requests/duration": {
54+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource/providers/microsoft.insights/metricdefinitions/requests/duration",
55+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
56+
"metricnamespace": "microsoft.insights/components",
57+
"displayDescription": "sample description",
58+
"name": {
59+
"value": "requests/duration",
60+
"localizedValue": "Server Response Time"
61+
},
62+
"aggregation": "Average",
63+
"unit": null,
64+
"resourceType": "microsoft.insights/components"
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}

0 commit comments

Comments
 (0)