@azure-rest/load-testing 1.0.0-alpha.20221020.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +201 -0
- package/dist/index.js +187 -0
- package/dist/index.js.map +1 -0
- package/dist-esm/src/azureLoadTesting.js +21 -0
- package/dist-esm/src/azureLoadTesting.js.map +1 -0
- package/dist-esm/src/clientDefinitions.js +4 -0
- package/dist-esm/src/clientDefinitions.js.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/isUnexpected.js +88 -0
- package/dist-esm/src/isUnexpected.js.map +1 -0
- package/dist-esm/src/models.js +4 -0
- package/dist-esm/src/models.js.map +1 -0
- package/dist-esm/src/outputModels.js +4 -0
- package/dist-esm/src/outputModels.js.map +1 -0
- package/dist-esm/src/paginateHelper.js +70 -0
- package/dist-esm/src/paginateHelper.js.map +1 -0
- package/dist-esm/src/parameters.js +4 -0
- package/dist-esm/src/parameters.js.map +1 -0
- package/dist-esm/src/responses.js +4 -0
- package/dist-esm/src/responses.js.map +1 -0
- package/package.json +131 -0
- package/review/load-testing.api.md +1561 -0
- package/types/load-testing.d.ts +1597 -0
|
@@ -0,0 +1,1597 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { Client } from '@azure-rest/core-client';
|
|
4
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
5
|
+
import { HttpResponse } from '@azure-rest/core-client';
|
|
6
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
7
|
+
import { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
8
|
+
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
9
|
+
import { RequestParameters } from '@azure-rest/core-client';
|
|
10
|
+
import { StreamableMethod } from '@azure-rest/core-client';
|
|
11
|
+
import { TokenCredential } from '@azure/core-auth';
|
|
12
|
+
|
|
13
|
+
export declare interface AppComponent {
|
|
14
|
+
/** Fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} */
|
|
15
|
+
resourceId: string;
|
|
16
|
+
/** Azure resource name */
|
|
17
|
+
resourceName: string;
|
|
18
|
+
/** Azure resource type */
|
|
19
|
+
resourceType: string;
|
|
20
|
+
/** Azure resource display name */
|
|
21
|
+
displayName?: string;
|
|
22
|
+
/** Resource group name of the Azure resource */
|
|
23
|
+
resourceGroup?: string;
|
|
24
|
+
/** Subscription Id of the Azure resource */
|
|
25
|
+
subscriptionId?: string;
|
|
26
|
+
/** Kind of Azure resource type */
|
|
27
|
+
kind?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare interface AppComponentCreateOrUpdateAppComponents {
|
|
31
|
+
/** Associate an App Component (Azure resource) to a test or test run. */
|
|
32
|
+
patch(options: AppComponentCreateOrUpdateAppComponentsParameters): StreamableMethod<AppComponentCreateOrUpdateAppComponents200Response | AppComponentCreateOrUpdateAppComponents201Response | AppComponentCreateOrUpdateAppComponentsdefaultResponse>;
|
|
33
|
+
/** Delete an App Component. */
|
|
34
|
+
delete(options?: AppComponentDeleteAppComponentsParameters): StreamableMethod<AppComponentDeleteAppComponents204Response | AppComponentDeleteAppComponentsdefaultResponse>;
|
|
35
|
+
/** Get App Component details by App Component name. */
|
|
36
|
+
get(options?: AppComponentGetAppComponentByNameParameters): StreamableMethod<AppComponentGetAppComponentByName200Response | AppComponentGetAppComponentByNamedefaultResponse>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Associate an App Component (Azure resource) to a test or test run. */
|
|
40
|
+
export declare interface AppComponentCreateOrUpdateAppComponents200Response extends HttpResponse {
|
|
41
|
+
status: "200";
|
|
42
|
+
body: AppComponentsMapOutput;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Associate an App Component (Azure resource) to a test or test run. */
|
|
46
|
+
export declare interface AppComponentCreateOrUpdateAppComponents201Response extends HttpResponse {
|
|
47
|
+
status: "201";
|
|
48
|
+
body: AppComponentsMapOutput;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare interface AppComponentCreateOrUpdateAppComponentsBodyParam {
|
|
52
|
+
/** App Component model. */
|
|
53
|
+
body: AppComponentsMap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare interface AppComponentCreateOrUpdateAppComponentsdefaultHeaders {
|
|
57
|
+
/** The error code for specific error that occurred. */
|
|
58
|
+
"x-ms-error-code"?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** Associate an App Component (Azure resource) to a test or test run. */
|
|
62
|
+
export declare interface AppComponentCreateOrUpdateAppComponentsdefaultResponse extends HttpResponse {
|
|
63
|
+
status: string;
|
|
64
|
+
body: ErrorResponseBodyOutput;
|
|
65
|
+
headers: RawHttpHeaders & AppComponentCreateOrUpdateAppComponentsdefaultHeaders;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare interface AppComponentCreateOrUpdateAppComponentsMediaTypesParam {
|
|
69
|
+
/** Request content type */
|
|
70
|
+
contentType?: "application/merge-patch+json";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare type AppComponentCreateOrUpdateAppComponentsParameters = AppComponentCreateOrUpdateAppComponentsMediaTypesParam & AppComponentCreateOrUpdateAppComponentsBodyParam & RequestParameters;
|
|
74
|
+
|
|
75
|
+
/** Delete an App Component. */
|
|
76
|
+
export declare interface AppComponentDeleteAppComponents204Response extends HttpResponse {
|
|
77
|
+
status: "204";
|
|
78
|
+
body: Record<string, unknown>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare interface AppComponentDeleteAppComponentsdefaultHeaders {
|
|
82
|
+
/** The error code for specific error that occurred. */
|
|
83
|
+
"x-ms-error-code"?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Delete an App Component. */
|
|
87
|
+
export declare interface AppComponentDeleteAppComponentsdefaultResponse extends HttpResponse {
|
|
88
|
+
status: string;
|
|
89
|
+
body: ErrorResponseBodyOutput;
|
|
90
|
+
headers: RawHttpHeaders & AppComponentDeleteAppComponentsdefaultHeaders;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare type AppComponentDeleteAppComponentsParameters = RequestParameters;
|
|
94
|
+
|
|
95
|
+
export declare interface AppComponentGetAppComponent {
|
|
96
|
+
/** Get App Components for a test or a test run by its name. */
|
|
97
|
+
get(options?: AppComponentGetAppComponentParameters): StreamableMethod<AppComponentGetAppComponent200Response | AppComponentGetAppComponentdefaultResponse>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Get App Components for a test or a test run by its name. */
|
|
101
|
+
export declare interface AppComponentGetAppComponent200Response extends HttpResponse {
|
|
102
|
+
status: "200";
|
|
103
|
+
body: AppComponentsMapOutput;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Get App Component details by App Component name. */
|
|
107
|
+
export declare interface AppComponentGetAppComponentByName200Response extends HttpResponse {
|
|
108
|
+
status: "200";
|
|
109
|
+
body: AppComponentsMapOutput;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export declare interface AppComponentGetAppComponentByNamedefaultHeaders {
|
|
113
|
+
/** The error code for specific error that occurred. */
|
|
114
|
+
"x-ms-error-code"?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Get App Component details by App Component name. */
|
|
118
|
+
export declare interface AppComponentGetAppComponentByNamedefaultResponse extends HttpResponse {
|
|
119
|
+
status: string;
|
|
120
|
+
body: ErrorResponseBodyOutput;
|
|
121
|
+
headers: RawHttpHeaders & AppComponentGetAppComponentByNamedefaultHeaders;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare type AppComponentGetAppComponentByNameParameters = RequestParameters;
|
|
125
|
+
|
|
126
|
+
export declare interface AppComponentGetAppComponentdefaultHeaders {
|
|
127
|
+
/** The error code for specific error that occurred. */
|
|
128
|
+
"x-ms-error-code"?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Get App Components for a test or a test run by its name. */
|
|
132
|
+
export declare interface AppComponentGetAppComponentdefaultResponse extends HttpResponse {
|
|
133
|
+
status: string;
|
|
134
|
+
body: ErrorResponseBodyOutput;
|
|
135
|
+
headers: RawHttpHeaders & AppComponentGetAppComponentdefaultHeaders;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export declare type AppComponentGetAppComponentParameters = AppComponentGetAppComponentQueryParam & RequestParameters;
|
|
139
|
+
|
|
140
|
+
export declare interface AppComponentGetAppComponentQueryParam {
|
|
141
|
+
queryParameters?: AppComponentGetAppComponentQueryParamProperties;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare interface AppComponentGetAppComponentQueryParamProperties {
|
|
145
|
+
/** [Required, if testId is not provided] Test run Id. */
|
|
146
|
+
testRunId?: string;
|
|
147
|
+
/** Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$. */
|
|
148
|
+
testId?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export declare interface AppComponentOutput {
|
|
152
|
+
/** Fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} */
|
|
153
|
+
resourceId: string;
|
|
154
|
+
/** Azure resource name */
|
|
155
|
+
resourceName: string;
|
|
156
|
+
/** Azure resource type */
|
|
157
|
+
resourceType: string;
|
|
158
|
+
/** Azure resource display name */
|
|
159
|
+
displayName?: string;
|
|
160
|
+
/** Resource group name of the Azure resource */
|
|
161
|
+
resourceGroup?: string;
|
|
162
|
+
/** Subscription Id of the Azure resource */
|
|
163
|
+
subscriptionId?: string;
|
|
164
|
+
/** Kind of Azure resource type */
|
|
165
|
+
kind?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export declare interface AppComponentsMap {
|
|
169
|
+
/** Azure Load Testing resource Id */
|
|
170
|
+
resourceId?: string;
|
|
171
|
+
/** [Required, if testRunId is not given] Load test unique identifier */
|
|
172
|
+
testId?: string;
|
|
173
|
+
/** [Required if testId is not given] Load test run unique identifier */
|
|
174
|
+
testRunId?: string;
|
|
175
|
+
/** AppComponent name */
|
|
176
|
+
name?: string;
|
|
177
|
+
/** AppComponents Map { resource id (Fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
178
|
+
value: Record<string, AppComponent>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export declare interface AppComponentsMapOutput {
|
|
182
|
+
/** Azure Load Testing resource Id */
|
|
183
|
+
resourceId?: string;
|
|
184
|
+
/** [Required, if testRunId is not given] Load test unique identifier */
|
|
185
|
+
testId?: string;
|
|
186
|
+
/** [Required if testId is not given] Load test run unique identifier */
|
|
187
|
+
testRunId?: string;
|
|
188
|
+
/** AppComponent name */
|
|
189
|
+
name?: string;
|
|
190
|
+
/** AppComponents Map { resource id (Fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
191
|
+
value: Record<string, AppComponentOutput>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export declare type AzureLoadTestingClient = Client & {
|
|
195
|
+
path: Routes;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export declare interface ClientMetricsFiltersOutput {
|
|
199
|
+
/** Test run name for which client metrics filters is required. */
|
|
200
|
+
testRunId?: string;
|
|
201
|
+
filters?: FiltersOutput;
|
|
202
|
+
timeRange?: TimeRangeOutput;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare interface ClientMetricsRequestModel {
|
|
206
|
+
/** List of request samplers, maximum supported samplers for queries are 20. In case of empty, it will return metrics for maximum 20 samplers */
|
|
207
|
+
requestSamplers?: Array<string>;
|
|
208
|
+
/** List of errors, maximum supported errors for queries are 20. In case of empty, by default will return metrics for maximum 20 errors */
|
|
209
|
+
errors?: Array<string>;
|
|
210
|
+
/** List of percentiles values for response time, supported values 50,90,99,95. Default value is 50th percentile. */
|
|
211
|
+
percentiles?: Array<string>;
|
|
212
|
+
/** For test duration less than 10 minutes group by time interval can be any one of 5s,10s,1m,5m.\n\nFor test duration greater than 10 minutes, group by time interval can be any one of 1m,5m,1h. Default value is 1m. */
|
|
213
|
+
groupByInterval?: string;
|
|
214
|
+
/** Start time */
|
|
215
|
+
startTime: Date | string;
|
|
216
|
+
/** End time */
|
|
217
|
+
endTime: Date | string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export declare interface ClientMetricsResultsOutput {
|
|
221
|
+
/** Test run name for which client metrics results is required. */
|
|
222
|
+
testRunId?: string;
|
|
223
|
+
timeSeries?: SeriesOutput;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare function createClient(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): AzureLoadTestingClient;
|
|
227
|
+
export default createClient;
|
|
228
|
+
|
|
229
|
+
export declare interface DefaultServerMetricsConfigListModelOutput {
|
|
230
|
+
/** Default metrics map {resourceType : list of metrics config} (Refer for metrics structure: https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition) */
|
|
231
|
+
defaultMetrics?: Record<string, Array<DefaultServerMetricsConfigModelOutput>>;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export declare interface DefaultServerMetricsConfigModelOutput {
|
|
235
|
+
metricnamespace?: string;
|
|
236
|
+
aggregation?: string;
|
|
237
|
+
name?: LocalizedNameOutput;
|
|
238
|
+
unit?: string;
|
|
239
|
+
displayDescription?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export declare interface ErrorModelOutput {
|
|
243
|
+
/** The error code. */
|
|
244
|
+
code?: string;
|
|
245
|
+
/** The error message. */
|
|
246
|
+
message?: string;
|
|
247
|
+
/** The error target. */
|
|
248
|
+
target?: string;
|
|
249
|
+
/** Additional details and inner errors. */
|
|
250
|
+
details?: Array<ErrorModelOutput>;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export declare interface ErrorResponseBodyOutput {
|
|
254
|
+
/** Error from a REST request. */
|
|
255
|
+
error?: ErrorModelOutput;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export declare interface FileUrl {
|
|
259
|
+
/** File URL. */
|
|
260
|
+
url?: string;
|
|
261
|
+
/** File unique identifier. */
|
|
262
|
+
fileId?: string;
|
|
263
|
+
/** Name of the file. */
|
|
264
|
+
filename?: string;
|
|
265
|
+
/** Integer representation of the file type (0 = JMX_FILE, 1 = USER_PROPERTIES, 2 = ADDITIONAL_ARTIFACTS) */
|
|
266
|
+
fileType?: "0" | "1" | "2";
|
|
267
|
+
/** Expiry time of the file */
|
|
268
|
+
expireTime?: Date | string;
|
|
269
|
+
/** Validation status of the file */
|
|
270
|
+
validationStatus?: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export declare interface FileUrlListOutput {
|
|
274
|
+
/** List of file URLs. */
|
|
275
|
+
value: Array<FileUrlOutput>;
|
|
276
|
+
/** Link for the next list of file URLs, if applicable */
|
|
277
|
+
nextLink?: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export declare interface FileUrlOutput {
|
|
281
|
+
/** File URL. */
|
|
282
|
+
url?: string;
|
|
283
|
+
/** File unique identifier. */
|
|
284
|
+
fileId?: string;
|
|
285
|
+
/** Name of the file. */
|
|
286
|
+
filename?: string;
|
|
287
|
+
/** Integer representation of the file type (0 = JMX_FILE, 1 = USER_PROPERTIES, 2 = ADDITIONAL_ARTIFACTS) */
|
|
288
|
+
fileType?: "0" | "1" | "2";
|
|
289
|
+
/** Expiry time of the file */
|
|
290
|
+
expireTime?: string;
|
|
291
|
+
/** Validation status of the file */
|
|
292
|
+
validationStatus?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export declare interface FiltersOutput {
|
|
296
|
+
/** List of request sampler for the test run, for which client metrics can be filtered. */
|
|
297
|
+
requestSamplerValues?: Array<string>;
|
|
298
|
+
/** List of errors occurred for the test run, for which client metrics can be filtered. */
|
|
299
|
+
errorFiltersValues?: Array<string>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Helper type to extract the type of an array
|
|
304
|
+
*/
|
|
305
|
+
export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
309
|
+
*/
|
|
310
|
+
export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
311
|
+
page: TPage;
|
|
312
|
+
nextPageLink?: string;
|
|
313
|
+
}>;
|
|
314
|
+
|
|
315
|
+
export declare interface InputTestArtifacts {
|
|
316
|
+
/** FileUrl Model. */
|
|
317
|
+
configUrl?: FileUrl;
|
|
318
|
+
/** FileUrl Model. */
|
|
319
|
+
testScriptUrl?: FileUrl;
|
|
320
|
+
/** FileUrl Model. */
|
|
321
|
+
userPropUrl?: FileUrl;
|
|
322
|
+
/** FileUrl Model. */
|
|
323
|
+
inputArtifactsZipFileurl?: FileUrl;
|
|
324
|
+
/** The input artifacts file { name : url } map for the test run. */
|
|
325
|
+
additionalUrls?: Array<FileUrl>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export declare interface InputTestArtifactsOutput {
|
|
329
|
+
/** FileUrl Model. */
|
|
330
|
+
configUrl?: FileUrlOutput;
|
|
331
|
+
/** FileUrl Model. */
|
|
332
|
+
testScriptUrl?: FileUrlOutput;
|
|
333
|
+
/** FileUrl Model. */
|
|
334
|
+
userPropUrl?: FileUrlOutput;
|
|
335
|
+
/** FileUrl Model. */
|
|
336
|
+
inputArtifactsZipFileurl?: FileUrlOutput;
|
|
337
|
+
/** The input artifacts file { name : url } map for the test run. */
|
|
338
|
+
additionalUrls?: Array<FileUrlOutput>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export declare function isUnexpected(response: AppComponentCreateOrUpdateAppComponents200Response | AppComponentCreateOrUpdateAppComponents201Response | AppComponentCreateOrUpdateAppComponentsdefaultResponse): response is AppComponentCreateOrUpdateAppComponentsdefaultResponse;
|
|
342
|
+
|
|
343
|
+
export declare function isUnexpected(response: AppComponentDeleteAppComponents204Response | AppComponentDeleteAppComponentsdefaultResponse): response is AppComponentDeleteAppComponentsdefaultResponse;
|
|
344
|
+
|
|
345
|
+
export declare function isUnexpected(response: AppComponentGetAppComponentByName200Response | AppComponentGetAppComponentByNamedefaultResponse): response is AppComponentGetAppComponentByNamedefaultResponse;
|
|
346
|
+
|
|
347
|
+
export declare function isUnexpected(response: AppComponentGetAppComponent200Response | AppComponentGetAppComponentdefaultResponse): response is AppComponentGetAppComponentdefaultResponse;
|
|
348
|
+
|
|
349
|
+
export declare function isUnexpected(response: ServerMetricsCreateOrUpdateServerMetricsConfig200Response | ServerMetricsCreateOrUpdateServerMetricsConfig201Response | ServerMetricsCreateOrUpdateServerMetricsConfigdefaultResponse): response is ServerMetricsCreateOrUpdateServerMetricsConfigdefaultResponse;
|
|
350
|
+
|
|
351
|
+
export declare function isUnexpected(response: ServerMetricsGetServerMetricsConfigByName200Response | ServerMetricsGetServerMetricsConfigByNamedefaultResponse): response is ServerMetricsGetServerMetricsConfigByNamedefaultResponse;
|
|
352
|
+
|
|
353
|
+
export declare function isUnexpected(response: ServerMetricsDeleteServerMetricsConfig204Response | ServerMetricsDeleteServerMetricsConfigdefaultResponse): response is ServerMetricsDeleteServerMetricsConfigdefaultResponse;
|
|
354
|
+
|
|
355
|
+
export declare function isUnexpected(response: ServerMetricsGetServerMetricsConfig200Response | ServerMetricsGetServerMetricsConfigdefaultResponse): response is ServerMetricsGetServerMetricsConfigdefaultResponse;
|
|
356
|
+
|
|
357
|
+
export declare function isUnexpected(response: ServerMetricsGetServerDefaultMetricsConfig200Response | ServerMetricsGetServerDefaultMetricsConfigdefaultResponse): response is ServerMetricsGetServerDefaultMetricsConfigdefaultResponse;
|
|
358
|
+
|
|
359
|
+
export declare function isUnexpected(response: ServerMetricsListSupportedResourceTypes200Response | ServerMetricsListSupportedResourceTypesdefaultResponse): response is ServerMetricsListSupportedResourceTypesdefaultResponse;
|
|
360
|
+
|
|
361
|
+
export declare function isUnexpected(response: TestCreateOrUpdateTest200Response | TestCreateOrUpdateTest201Response | TestCreateOrUpdateTestdefaultResponse): response is TestCreateOrUpdateTestdefaultResponse;
|
|
362
|
+
|
|
363
|
+
export declare function isUnexpected(response: TestDeleteLoadTest204Response | TestDeleteLoadTestdefaultResponse): response is TestDeleteLoadTestdefaultResponse;
|
|
364
|
+
|
|
365
|
+
export declare function isUnexpected(response: TestGetLoadTest200Response | TestGetLoadTestdefaultResponse): response is TestGetLoadTestdefaultResponse;
|
|
366
|
+
|
|
367
|
+
export declare function isUnexpected(response: TestListLoadTestSearch200Response | TestListLoadTestSearchdefaultResponse): response is TestListLoadTestSearchdefaultResponse;
|
|
368
|
+
|
|
369
|
+
export declare function isUnexpected(response: TestUploadTestFile201Response | TestUploadTestFiledefaultResponse): response is TestUploadTestFiledefaultResponse;
|
|
370
|
+
|
|
371
|
+
export declare function isUnexpected(response: TestGetTestFile200Response | TestGetTestFiledefaultResponse): response is TestGetTestFiledefaultResponse;
|
|
372
|
+
|
|
373
|
+
export declare function isUnexpected(response: TestDeleteTestFile204Response | TestDeleteTestFiledefaultResponse): response is TestDeleteTestFiledefaultResponse;
|
|
374
|
+
|
|
375
|
+
export declare function isUnexpected(response: TestListTestFiles200Response | TestListTestFilesdefaultResponse): response is TestListTestFilesdefaultResponse;
|
|
376
|
+
|
|
377
|
+
export declare function isUnexpected(response: TestRunDeleteTestRun204Response | TestRunDeleteTestRundefaultResponse): response is TestRunDeleteTestRundefaultResponse;
|
|
378
|
+
|
|
379
|
+
export declare function isUnexpected(response: TestRunCreateOrUpdateTestRun200Response | TestRunCreateOrUpdateTestRundefaultResponse): response is TestRunCreateOrUpdateTestRundefaultResponse;
|
|
380
|
+
|
|
381
|
+
export declare function isUnexpected(response: TestRunGetTestRun200Response | TestRunGetTestRundefaultResponse): response is TestRunGetTestRundefaultResponse;
|
|
382
|
+
|
|
383
|
+
export declare function isUnexpected(response: TestRunGetTestRunFile200Response | TestRunGetTestRunFiledefaultResponse): response is TestRunGetTestRunFiledefaultResponse;
|
|
384
|
+
|
|
385
|
+
export declare function isUnexpected(response: TestRunListTestRuns200Response | TestRunListTestRunsdefaultResponse): response is TestRunListTestRunsdefaultResponse;
|
|
386
|
+
|
|
387
|
+
export declare function isUnexpected(response: TestRunStopTestRun200Response | TestRunStopTestRundefaultResponse): response is TestRunStopTestRundefaultResponse;
|
|
388
|
+
|
|
389
|
+
export declare function isUnexpected(response: TestRunGetTestRunClientMetrics200Response | TestRunGetTestRunClientMetricsdefaultResponse): response is TestRunGetTestRunClientMetricsdefaultResponse;
|
|
390
|
+
|
|
391
|
+
export declare function isUnexpected(response: TestRunGetTestRunClientMetricsFilters200Response | TestRunGetTestRunClientMetricsFiltersdefaultResponse): response is TestRunGetTestRunClientMetricsFiltersdefaultResponse;
|
|
392
|
+
|
|
393
|
+
export declare interface LoadTestConfig {
|
|
394
|
+
/** The number of engine instances to execute load test. Supported values are in range of 1-45. Required for creating a new test. */
|
|
395
|
+
engineInstances?: number;
|
|
396
|
+
/** Whether all the input CSV files should be split evenly across all engines. */
|
|
397
|
+
splitAllCSVs?: boolean;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export declare interface LoadTestConfigOutput {
|
|
401
|
+
/** The number of engine instances to execute load test. Supported values are in range of 1-45. Required for creating a new test. */
|
|
402
|
+
engineInstances?: number;
|
|
403
|
+
/** Whether all the input CSV files should be split evenly across all engines. */
|
|
404
|
+
splitAllCSVs?: boolean;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare interface LocalizedNameOutput {
|
|
408
|
+
value?: string;
|
|
409
|
+
localizedValue?: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export declare interface OutputTestArtifacts {
|
|
413
|
+
/** FileUrl Model. */
|
|
414
|
+
resultUrl?: FileUrl;
|
|
415
|
+
/** FileUrl Model. */
|
|
416
|
+
logsUrl?: FileUrl;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export declare interface OutputTestArtifactsOutput {
|
|
420
|
+
/** FileUrl Model. */
|
|
421
|
+
resultUrl?: FileUrlOutput;
|
|
422
|
+
/** FileUrl Model. */
|
|
423
|
+
logsUrl?: FileUrlOutput;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
428
|
+
* @param client - Client to use for sending the next page requests
|
|
429
|
+
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
430
|
+
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
431
|
+
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
432
|
+
*/
|
|
433
|
+
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Helper type to infer the Type of the paged elements from the response type
|
|
437
|
+
* This type is generated based on the swagger information for x-ms-pageable
|
|
438
|
+
* specifically on the itemName property which indicates the property of the response
|
|
439
|
+
* where the page items are found. The default value is `value`.
|
|
440
|
+
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
441
|
+
*/
|
|
442
|
+
export declare type PaginateReturn<TResult> = TResult extends {
|
|
443
|
+
body: {
|
|
444
|
+
value?: infer TPage;
|
|
445
|
+
};
|
|
446
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Options for the paging helper
|
|
450
|
+
*/
|
|
451
|
+
export declare interface PagingOptions<TResponse> {
|
|
452
|
+
/**
|
|
453
|
+
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
454
|
+
*/
|
|
455
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export declare interface PassFailCriteria {
|
|
459
|
+
/** Map of id and pass fail metrics { id : pass fail metrics }. */
|
|
460
|
+
passFailMetrics?: Record<string, PassFailMetric>;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export declare interface PassFailCriteriaOutput {
|
|
464
|
+
/** Map of id and pass fail metrics { id : pass fail metrics }. */
|
|
465
|
+
passFailMetrics?: Record<string, PassFailMetricOutput>;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export declare interface PassFailMetric {
|
|
469
|
+
/** The client metric on which the criteria should be applied. Allowed values - ‘response_time_ms’ , ‘latency’, ‘error’, ‘requests’, ‘requests_per_sec’. */
|
|
470
|
+
clientmetric?: string;
|
|
471
|
+
/** The aggregation function to be applied on the client metric. Allowed functions - ‘percentage’ - for error metric ,‘avg’, ‘p50’, ‘p90’, ‘p95’, ‘p99’, ‘min’, ‘max’ - for response_time_ms and latency metric, ‘avg’ - for requests_per_sec, ‘count’ - for requests. */
|
|
472
|
+
aggregate?: string;
|
|
473
|
+
/** The comparison operator. Supported types ‘>’ */
|
|
474
|
+
condition?: string;
|
|
475
|
+
/** Request name for which the Pass fail criteria has to be applied. */
|
|
476
|
+
requestName?: string;
|
|
477
|
+
/** The value to compare with the client metric. Allowed values - ‘error : [0.0 , 100.0] unit- % ’, response_time_ms and latency : any integer value unit- ms. */
|
|
478
|
+
value?: number;
|
|
479
|
+
/** Either ‘stop’ or ‘continue’ after the threshold is met. Default is ‘continue’. */
|
|
480
|
+
action?: string;
|
|
481
|
+
/** The actual value of the client metric for the test run. */
|
|
482
|
+
actualValue?: number;
|
|
483
|
+
/** Outcome of the test run. possible outcome - ‘passed’ , ‘failed’ , ‘undetermined’. */
|
|
484
|
+
result?: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export declare interface PassFailMetricOutput {
|
|
488
|
+
/** The client metric on which the criteria should be applied. Allowed values - ‘response_time_ms’ , ‘latency’, ‘error’, ‘requests’, ‘requests_per_sec’. */
|
|
489
|
+
clientmetric?: string;
|
|
490
|
+
/** The aggregation function to be applied on the client metric. Allowed functions - ‘percentage’ - for error metric ,‘avg’, ‘p50’, ‘p90’, ‘p95’, ‘p99’, ‘min’, ‘max’ - for response_time_ms and latency metric, ‘avg’ - for requests_per_sec, ‘count’ - for requests. */
|
|
491
|
+
aggregate?: string;
|
|
492
|
+
/** The comparison operator. Supported types ‘>’ */
|
|
493
|
+
condition?: string;
|
|
494
|
+
/** Request name for which the Pass fail criteria has to be applied. */
|
|
495
|
+
requestName?: string;
|
|
496
|
+
/** The value to compare with the client metric. Allowed values - ‘error : [0.0 , 100.0] unit- % ’, response_time_ms and latency : any integer value unit- ms. */
|
|
497
|
+
value?: number;
|
|
498
|
+
/** Either ‘stop’ or ‘continue’ after the threshold is met. Default is ‘continue’. */
|
|
499
|
+
action?: string;
|
|
500
|
+
/** The actual value of the client metric for the test run. */
|
|
501
|
+
actualValue?: number;
|
|
502
|
+
/** Outcome of the test run. possible outcome - ‘passed’ , ‘failed’ , ‘undetermined’. */
|
|
503
|
+
result?: string;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export declare interface ResourceMetricModel {
|
|
507
|
+
/** Unique identifier for metric. */
|
|
508
|
+
id?: string;
|
|
509
|
+
/** Azure resource Id. */
|
|
510
|
+
resourceId: string;
|
|
511
|
+
/** Metric name space. */
|
|
512
|
+
metricnamespace: string;
|
|
513
|
+
/** Metric description. */
|
|
514
|
+
displayDescription?: string;
|
|
515
|
+
/** Metric name object. */
|
|
516
|
+
name: ServerMetricName;
|
|
517
|
+
/** Metric aggregation. */
|
|
518
|
+
aggregation: string;
|
|
519
|
+
/** Metric unit. */
|
|
520
|
+
unit?: string;
|
|
521
|
+
/** Azure resource type. */
|
|
522
|
+
resourceType: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare interface ResourceMetricModelOutput {
|
|
526
|
+
/** Unique identifier for metric. */
|
|
527
|
+
id?: string;
|
|
528
|
+
/** Azure resource Id. */
|
|
529
|
+
resourceId: string;
|
|
530
|
+
/** Metric name space. */
|
|
531
|
+
metricnamespace: string;
|
|
532
|
+
/** Metric description. */
|
|
533
|
+
displayDescription?: string;
|
|
534
|
+
/** Metric name object. */
|
|
535
|
+
name: ServerMetricNameOutput;
|
|
536
|
+
/** Metric aggregation. */
|
|
537
|
+
aggregation: string;
|
|
538
|
+
/** Metric unit. */
|
|
539
|
+
unit?: string;
|
|
540
|
+
/** Azure resource type. */
|
|
541
|
+
resourceType: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export declare interface Routes {
|
|
545
|
+
/** Resource for '/appcomponents/\{name\}' has methods for the following verbs: patch, delete, get */
|
|
546
|
+
(path: "/appcomponents/{name}", name: string): AppComponentCreateOrUpdateAppComponents;
|
|
547
|
+
/** Resource for '/appcomponents' has methods for the following verbs: get */
|
|
548
|
+
(path: "/appcomponents"): AppComponentGetAppComponent;
|
|
549
|
+
/** Resource for '/serverMetricsConfig/\{name\}' has methods for the following verbs: patch, get, delete */
|
|
550
|
+
(path: "/serverMetricsConfig/{name}", name: string): ServerMetricsCreateOrUpdateServerMetricsConfig;
|
|
551
|
+
/** Resource for '/serverMetricsConfig' has methods for the following verbs: get */
|
|
552
|
+
(path: "/serverMetricsConfig"): ServerMetricsGetServerMetricsConfig;
|
|
553
|
+
/** Resource for '/serverMetricsConfig/default' has methods for the following verbs: get */
|
|
554
|
+
(path: "/serverMetricsConfig/default"): ServerMetricsGetServerDefaultMetricsConfig;
|
|
555
|
+
/** Resource for '/serverMetricsConfig/supportedResourceTypes' has methods for the following verbs: get */
|
|
556
|
+
(path: "/serverMetricsConfig/supportedResourceTypes"): ServerMetricsListSupportedResourceTypes;
|
|
557
|
+
/** Resource for '/loadtests/\{testId\}' has methods for the following verbs: patch, delete, get */
|
|
558
|
+
(path: "/loadtests/{testId}", testId: string): TestCreateOrUpdateTest;
|
|
559
|
+
/** Resource for '/loadtests/sortAndFilter' has methods for the following verbs: get */
|
|
560
|
+
(path: "/loadtests/sortAndFilter"): TestListLoadTestSearch;
|
|
561
|
+
/** Resource for '/loadtests/\{testId\}/files/\{fileId\}' has methods for the following verbs: put, get, delete */
|
|
562
|
+
(path: "/loadtests/{testId}/files/{fileId}", testId: string, fileId: string): TestUploadTestFile;
|
|
563
|
+
/** Resource for '/loadtests/\{testId\}/files' has methods for the following verbs: get */
|
|
564
|
+
(path: "/loadtests/{testId}/files", testId: string): TestListTestFiles;
|
|
565
|
+
/** Resource for '/testruns/\{testRunId\}' has methods for the following verbs: delete, patch, get */
|
|
566
|
+
(path: "/testruns/{testRunId}", testRunId: string): TestRunDeleteTestRun;
|
|
567
|
+
/** Resource for '/testruns/\{testRunId\}/files/\{fileId\}' has methods for the following verbs: get */
|
|
568
|
+
(path: "/testruns/{testRunId}/files/{fileId}", testRunId: string, fileId: string): TestRunGetTestRunFile;
|
|
569
|
+
/** Resource for '/testruns/sortAndFilter' has methods for the following verbs: get */
|
|
570
|
+
(path: "/testruns/sortAndFilter"): TestRunListTestRuns;
|
|
571
|
+
/** Resource for '/testruns/\{testRunId\}:stop' has methods for the following verbs: post */
|
|
572
|
+
(path: "/testruns/{testRunId}:stop", testRunId: string): TestRunStopTestRun;
|
|
573
|
+
/** Resource for '/testruns/\{testRunId\}/clientMetrics' has methods for the following verbs: post */
|
|
574
|
+
(path: "/testruns/{testRunId}/clientMetrics", testRunId: string): TestRunGetTestRunClientMetrics;
|
|
575
|
+
/** Resource for '/testruns/\{testRunId\}/clientMetricsFilters' has methods for the following verbs: get */
|
|
576
|
+
(path: "/testruns/{testRunId}/clientMetricsFilters", testRunId: string): TestRunGetTestRunClientMetricsFilters;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export declare interface SecretMetadata {
|
|
580
|
+
/** The value of the secret, of type AKV_SECRET_URI or SECRET_VALUE */
|
|
581
|
+
value?: string;
|
|
582
|
+
/** Type of secret. eg. AKV_SECRET_URI/SECRET_VALUE */
|
|
583
|
+
type?: string;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export declare interface SecretMetadataOutput {
|
|
587
|
+
/** The value of the secret, of type AKV_SECRET_URI or SECRET_VALUE */
|
|
588
|
+
value?: string;
|
|
589
|
+
/** Type of secret. eg. AKV_SECRET_URI/SECRET_VALUE */
|
|
590
|
+
type?: string;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export declare interface SeriesOutput {
|
|
594
|
+
/** Active users time series data. */
|
|
595
|
+
activeUsers?: Record<string, Array<TimeSeriesOutput>>;
|
|
596
|
+
/** Response time, time series data. */
|
|
597
|
+
responseTime?: Record<string, Array<TimeSeriesOutput>>;
|
|
598
|
+
/** Throughput time series data. */
|
|
599
|
+
throughput?: Record<string, Array<TimeSeriesOutput>>;
|
|
600
|
+
/** Errors time series data. */
|
|
601
|
+
errors?: Record<string, Array<TimeSeriesOutput>>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export declare interface ServerMetricName {
|
|
605
|
+
/** Metric name value. */
|
|
606
|
+
value: string;
|
|
607
|
+
/** Metric localized name. */
|
|
608
|
+
localizedValue: string;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export declare interface ServerMetricNameOutput {
|
|
612
|
+
/** Metric name value. */
|
|
613
|
+
value: string;
|
|
614
|
+
/** Metric localized name. */
|
|
615
|
+
localizedValue: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfig {
|
|
619
|
+
/** Configure server metrics for a test or test run */
|
|
620
|
+
patch(options: ServerMetricsCreateOrUpdateServerMetricsConfigParameters): StreamableMethod<ServerMetricsCreateOrUpdateServerMetricsConfig200Response | ServerMetricsCreateOrUpdateServerMetricsConfig201Response | ServerMetricsCreateOrUpdateServerMetricsConfigdefaultResponse>;
|
|
621
|
+
/** Get server metrics configuration by its name. */
|
|
622
|
+
get(options?: ServerMetricsGetServerMetricsConfigByNameParameters): StreamableMethod<ServerMetricsGetServerMetricsConfigByName200Response | ServerMetricsGetServerMetricsConfigByNamedefaultResponse>;
|
|
623
|
+
/** Delete server metrics configuration by its name */
|
|
624
|
+
delete(options?: ServerMetricsDeleteServerMetricsConfigParameters): StreamableMethod<ServerMetricsDeleteServerMetricsConfig204Response | ServerMetricsDeleteServerMetricsConfigdefaultResponse>;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/** Configure server metrics for a test or test run */
|
|
628
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfig200Response extends HttpResponse {
|
|
629
|
+
status: "200";
|
|
630
|
+
body: ServerMetricsModelOutput;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/** Configure server metrics for a test or test run */
|
|
634
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfig201Response extends HttpResponse {
|
|
635
|
+
status: "201";
|
|
636
|
+
body: ServerMetricsModelOutput;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfigBodyParam {
|
|
640
|
+
/** Server metrics configuration model */
|
|
641
|
+
body: ServerMetricsModel;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfigdefaultHeaders {
|
|
645
|
+
/** The error code for specific error that occurred. */
|
|
646
|
+
"x-ms-error-code"?: string;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/** Configure server metrics for a test or test run */
|
|
650
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfigdefaultResponse extends HttpResponse {
|
|
651
|
+
status: string;
|
|
652
|
+
body: ErrorResponseBodyOutput;
|
|
653
|
+
headers: RawHttpHeaders & ServerMetricsCreateOrUpdateServerMetricsConfigdefaultHeaders;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export declare interface ServerMetricsCreateOrUpdateServerMetricsConfigMediaTypesParam {
|
|
657
|
+
/** Request content type */
|
|
658
|
+
contentType?: "application/merge-patch+json";
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export declare type ServerMetricsCreateOrUpdateServerMetricsConfigParameters = ServerMetricsCreateOrUpdateServerMetricsConfigMediaTypesParam & ServerMetricsCreateOrUpdateServerMetricsConfigBodyParam & RequestParameters;
|
|
662
|
+
|
|
663
|
+
/** Delete server metrics configuration by its name */
|
|
664
|
+
export declare interface ServerMetricsDeleteServerMetricsConfig204Response extends HttpResponse {
|
|
665
|
+
status: "204";
|
|
666
|
+
body: Record<string, unknown>;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
export declare interface ServerMetricsDeleteServerMetricsConfigdefaultHeaders {
|
|
670
|
+
/** The error code for specific error that occurred. */
|
|
671
|
+
"x-ms-error-code"?: string;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/** Delete server metrics configuration by its name */
|
|
675
|
+
export declare interface ServerMetricsDeleteServerMetricsConfigdefaultResponse extends HttpResponse {
|
|
676
|
+
status: string;
|
|
677
|
+
body: ErrorResponseBodyOutput;
|
|
678
|
+
headers: RawHttpHeaders & ServerMetricsDeleteServerMetricsConfigdefaultHeaders;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export declare type ServerMetricsDeleteServerMetricsConfigParameters = RequestParameters;
|
|
682
|
+
|
|
683
|
+
export declare interface ServerMetricsGetServerDefaultMetricsConfig {
|
|
684
|
+
/** Get all default server metrics configuration for supported resource types. */
|
|
685
|
+
get(options?: ServerMetricsGetServerDefaultMetricsConfigParameters): StreamableMethod<ServerMetricsGetServerDefaultMetricsConfig200Response | ServerMetricsGetServerDefaultMetricsConfigdefaultResponse>;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/** Get all default server metrics configuration for supported resource types. */
|
|
689
|
+
export declare interface ServerMetricsGetServerDefaultMetricsConfig200Response extends HttpResponse {
|
|
690
|
+
status: "200";
|
|
691
|
+
body: DefaultServerMetricsConfigListModelOutput;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export declare interface ServerMetricsGetServerDefaultMetricsConfigdefaultHeaders {
|
|
695
|
+
/** The error code for specific error that occurred. */
|
|
696
|
+
"x-ms-error-code"?: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/** Get all default server metrics configuration for supported resource types. */
|
|
700
|
+
export declare interface ServerMetricsGetServerDefaultMetricsConfigdefaultResponse extends HttpResponse {
|
|
701
|
+
status: string;
|
|
702
|
+
body: ErrorResponseBodyOutput;
|
|
703
|
+
headers: RawHttpHeaders & ServerMetricsGetServerDefaultMetricsConfigdefaultHeaders;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export declare type ServerMetricsGetServerDefaultMetricsConfigParameters = RequestParameters;
|
|
707
|
+
|
|
708
|
+
export declare interface ServerMetricsGetServerMetricsConfig {
|
|
709
|
+
/** Get server metrics configuration for a test or test run by its name. */
|
|
710
|
+
get(options?: ServerMetricsGetServerMetricsConfigParameters): StreamableMethod<ServerMetricsGetServerMetricsConfig200Response | ServerMetricsGetServerMetricsConfigdefaultResponse>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/** Get server metrics configuration for a test or test run by its name. */
|
|
714
|
+
export declare interface ServerMetricsGetServerMetricsConfig200Response extends HttpResponse {
|
|
715
|
+
status: "200";
|
|
716
|
+
body: ServerMetricsModelOutput;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/** Get server metrics configuration by its name. */
|
|
720
|
+
export declare interface ServerMetricsGetServerMetricsConfigByName200Response extends HttpResponse {
|
|
721
|
+
status: "200";
|
|
722
|
+
body: ServerMetricsModelOutput;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export declare interface ServerMetricsGetServerMetricsConfigByNamedefaultHeaders {
|
|
726
|
+
/** The error code for specific error that occurred. */
|
|
727
|
+
"x-ms-error-code"?: string;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/** Get server metrics configuration by its name. */
|
|
731
|
+
export declare interface ServerMetricsGetServerMetricsConfigByNamedefaultResponse extends HttpResponse {
|
|
732
|
+
status: string;
|
|
733
|
+
body: ErrorResponseBodyOutput;
|
|
734
|
+
headers: RawHttpHeaders & ServerMetricsGetServerMetricsConfigByNamedefaultHeaders;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export declare type ServerMetricsGetServerMetricsConfigByNameParameters = RequestParameters;
|
|
738
|
+
|
|
739
|
+
export declare interface ServerMetricsGetServerMetricsConfigdefaultHeaders {
|
|
740
|
+
/** The error code for specific error that occurred. */
|
|
741
|
+
"x-ms-error-code"?: string;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/** Get server metrics configuration for a test or test run by its name. */
|
|
745
|
+
export declare interface ServerMetricsGetServerMetricsConfigdefaultResponse extends HttpResponse {
|
|
746
|
+
status: string;
|
|
747
|
+
body: ErrorResponseBodyOutput;
|
|
748
|
+
headers: RawHttpHeaders & ServerMetricsGetServerMetricsConfigdefaultHeaders;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export declare type ServerMetricsGetServerMetricsConfigParameters = ServerMetricsGetServerMetricsConfigQueryParam & RequestParameters;
|
|
752
|
+
|
|
753
|
+
export declare interface ServerMetricsGetServerMetricsConfigQueryParam {
|
|
754
|
+
queryParameters?: ServerMetricsGetServerMetricsConfigQueryParamProperties;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export declare interface ServerMetricsGetServerMetricsConfigQueryParamProperties {
|
|
758
|
+
/** [Required, if testId is not provided] Test run Id. */
|
|
759
|
+
testRunId?: string;
|
|
760
|
+
/** Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$. */
|
|
761
|
+
testId?: string;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
export declare interface ServerMetricsListSupportedResourceTypes {
|
|
765
|
+
/** Get all supported resource types for App Components(Azure resource types). */
|
|
766
|
+
get(options?: ServerMetricsListSupportedResourceTypesParameters): StreamableMethod<ServerMetricsListSupportedResourceTypes200Response | ServerMetricsListSupportedResourceTypesdefaultResponse>;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/** Get all supported resource types for App Components(Azure resource types). */
|
|
770
|
+
export declare interface ServerMetricsListSupportedResourceTypes200Response extends HttpResponse {
|
|
771
|
+
status: "200";
|
|
772
|
+
body: SupportedResourceTypeOutput;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export declare interface ServerMetricsListSupportedResourceTypesdefaultHeaders {
|
|
776
|
+
/** The error code for specific error that occurred. */
|
|
777
|
+
"x-ms-error-code"?: string;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/** Get all supported resource types for App Components(Azure resource types). */
|
|
781
|
+
export declare interface ServerMetricsListSupportedResourceTypesdefaultResponse extends HttpResponse {
|
|
782
|
+
status: string;
|
|
783
|
+
body: ErrorResponseBodyOutput;
|
|
784
|
+
headers: RawHttpHeaders & ServerMetricsListSupportedResourceTypesdefaultHeaders;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export declare type ServerMetricsListSupportedResourceTypesParameters = RequestParameters;
|
|
788
|
+
|
|
789
|
+
export declare interface ServerMetricsModel {
|
|
790
|
+
/** Server metrics config name. */
|
|
791
|
+
name?: string;
|
|
792
|
+
/** [Required, if testRunId is not given] Load test unique identifier */
|
|
793
|
+
testId?: string;
|
|
794
|
+
/** [Required, if testId is not given] Load test run unique identifier */
|
|
795
|
+
testRunId?: string;
|
|
796
|
+
/** Metrics map {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
797
|
+
metrics?: Record<string, ResourceMetricModel>;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export declare interface ServerMetricsModelOutput {
|
|
801
|
+
/** Server metrics config name. */
|
|
802
|
+
name?: string;
|
|
803
|
+
/** [Required, if testRunId is not given] Load test unique identifier */
|
|
804
|
+
testId?: string;
|
|
805
|
+
/** [Required, if testId is not given] Load test run unique identifier */
|
|
806
|
+
testRunId?: string;
|
|
807
|
+
/** Metrics map {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
808
|
+
metrics?: Record<string, ResourceMetricModelOutput>;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export declare interface SupportedResourceTypeOutput {
|
|
812
|
+
value?: Array<string>;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export declare interface TestArtifacts {
|
|
816
|
+
/** The input artifacts for the test. */
|
|
817
|
+
inputArtifacts: InputTestArtifacts;
|
|
818
|
+
/** The output artifacts for the test run. */
|
|
819
|
+
outputArtifacts?: OutputTestArtifacts;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export declare interface TestArtifactsOutput {
|
|
823
|
+
/** The input artifacts for the test. */
|
|
824
|
+
inputArtifacts: InputTestArtifactsOutput;
|
|
825
|
+
/** The output artifacts for the test run. */
|
|
826
|
+
outputArtifacts?: OutputTestArtifactsOutput;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export declare interface TestCreateOrUpdateTest {
|
|
830
|
+
/** Create a new test or Update an existing test. */
|
|
831
|
+
patch(options: TestCreateOrUpdateTestParameters): StreamableMethod<TestCreateOrUpdateTest200Response | TestCreateOrUpdateTest201Response | TestCreateOrUpdateTestdefaultResponse>;
|
|
832
|
+
/** Delete a test by its name. */
|
|
833
|
+
delete(options?: TestDeleteLoadTestParameters): StreamableMethod<TestDeleteLoadTest204Response | TestDeleteLoadTestdefaultResponse>;
|
|
834
|
+
/** Get load test details by test name */
|
|
835
|
+
get(options?: TestGetLoadTestParameters): StreamableMethod<TestGetLoadTest200Response | TestGetLoadTestdefaultResponse>;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/** Create a new test or Update an existing test. */
|
|
839
|
+
export declare interface TestCreateOrUpdateTest200Response extends HttpResponse {
|
|
840
|
+
status: "200";
|
|
841
|
+
body: TestModelOutput;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/** Create a new test or Update an existing test. */
|
|
845
|
+
export declare interface TestCreateOrUpdateTest201Response extends HttpResponse {
|
|
846
|
+
status: "201";
|
|
847
|
+
body: TestModelOutput;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export declare interface TestCreateOrUpdateTestBodyParam {
|
|
851
|
+
/** Load test model */
|
|
852
|
+
body: TestModel;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
export declare interface TestCreateOrUpdateTestdefaultHeaders {
|
|
856
|
+
/** The error code for specific error that occurred. */
|
|
857
|
+
"x-ms-error-code"?: string;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/** Create a new test or Update an existing test. */
|
|
861
|
+
export declare interface TestCreateOrUpdateTestdefaultResponse extends HttpResponse {
|
|
862
|
+
status: string;
|
|
863
|
+
body: ErrorResponseBodyOutput;
|
|
864
|
+
headers: RawHttpHeaders & TestCreateOrUpdateTestdefaultHeaders;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export declare interface TestCreateOrUpdateTestMediaTypesParam {
|
|
868
|
+
/** Request content type */
|
|
869
|
+
contentType?: "application/merge-patch+json";
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export declare type TestCreateOrUpdateTestParameters = TestCreateOrUpdateTestMediaTypesParam & TestCreateOrUpdateTestBodyParam & RequestParameters;
|
|
873
|
+
|
|
874
|
+
/** Delete a test by its name. */
|
|
875
|
+
export declare interface TestDeleteLoadTest204Response extends HttpResponse {
|
|
876
|
+
status: "204";
|
|
877
|
+
body: Record<string, unknown>;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export declare interface TestDeleteLoadTestdefaultHeaders {
|
|
881
|
+
/** The error code for specific error that occurred. */
|
|
882
|
+
"x-ms-error-code"?: string;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/** Delete a test by its name. */
|
|
886
|
+
export declare interface TestDeleteLoadTestdefaultResponse extends HttpResponse {
|
|
887
|
+
status: string;
|
|
888
|
+
body: ErrorResponseBodyOutput;
|
|
889
|
+
headers: RawHttpHeaders & TestDeleteLoadTestdefaultHeaders;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export declare type TestDeleteLoadTestParameters = RequestParameters;
|
|
893
|
+
|
|
894
|
+
/** Delete file by the file name for a test. */
|
|
895
|
+
export declare interface TestDeleteTestFile204Response extends HttpResponse {
|
|
896
|
+
status: "204";
|
|
897
|
+
body: Record<string, unknown>;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export declare interface TestDeleteTestFiledefaultHeaders {
|
|
901
|
+
/** The error code for specific error that occurred. */
|
|
902
|
+
"x-ms-error-code"?: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/** Delete file by the file name for a test. */
|
|
906
|
+
export declare interface TestDeleteTestFiledefaultResponse extends HttpResponse {
|
|
907
|
+
status: string;
|
|
908
|
+
body: ErrorResponseBodyOutput;
|
|
909
|
+
headers: RawHttpHeaders & TestDeleteTestFiledefaultHeaders;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export declare type TestDeleteTestFileParameters = RequestParameters;
|
|
913
|
+
|
|
914
|
+
/** Get load test details by test name */
|
|
915
|
+
export declare interface TestGetLoadTest200Response extends HttpResponse {
|
|
916
|
+
status: "200";
|
|
917
|
+
body: TestModelOutput;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export declare interface TestGetLoadTestdefaultHeaders {
|
|
921
|
+
/** The error code for specific error that occurred. */
|
|
922
|
+
"x-ms-error-code"?: string;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/** Get load test details by test name */
|
|
926
|
+
export declare interface TestGetLoadTestdefaultResponse extends HttpResponse {
|
|
927
|
+
status: string;
|
|
928
|
+
body: ErrorResponseBodyOutput;
|
|
929
|
+
headers: RawHttpHeaders & TestGetLoadTestdefaultHeaders;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export declare type TestGetLoadTestParameters = RequestParameters;
|
|
933
|
+
|
|
934
|
+
/** Get test file by the file name. */
|
|
935
|
+
export declare interface TestGetTestFile200Response extends HttpResponse {
|
|
936
|
+
status: "200";
|
|
937
|
+
body: FileUrlOutput;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export declare interface TestGetTestFiledefaultHeaders {
|
|
941
|
+
/** The error code for specific error that occurred. */
|
|
942
|
+
"x-ms-error-code"?: string;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/** Get test file by the file name. */
|
|
946
|
+
export declare interface TestGetTestFiledefaultResponse extends HttpResponse {
|
|
947
|
+
status: string;
|
|
948
|
+
body: ErrorResponseBodyOutput;
|
|
949
|
+
headers: RawHttpHeaders & TestGetTestFiledefaultHeaders;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
export declare type TestGetTestFileParameters = RequestParameters;
|
|
953
|
+
|
|
954
|
+
export declare interface TestListLoadTestSearch {
|
|
955
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
956
|
+
get(options?: TestListLoadTestSearchParameters): StreamableMethod<TestListLoadTestSearch200Response | TestListLoadTestSearchdefaultResponse>;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
960
|
+
export declare interface TestListLoadTestSearch200Response extends HttpResponse {
|
|
961
|
+
status: "200";
|
|
962
|
+
body: TestModelResourceListOutput;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export declare interface TestListLoadTestSearchdefaultHeaders {
|
|
966
|
+
/** The error code for specific error that occurred. */
|
|
967
|
+
"x-ms-error-code"?: string;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
971
|
+
export declare interface TestListLoadTestSearchdefaultResponse extends HttpResponse {
|
|
972
|
+
status: string;
|
|
973
|
+
body: ErrorResponseBodyOutput;
|
|
974
|
+
headers: RawHttpHeaders & TestListLoadTestSearchdefaultHeaders;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export declare type TestListLoadTestSearchParameters = TestListLoadTestSearchQueryParam & RequestParameters;
|
|
978
|
+
|
|
979
|
+
export declare interface TestListLoadTestSearchQueryParam {
|
|
980
|
+
queryParameters?: TestListLoadTestSearchQueryParamProperties;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
export declare interface TestListLoadTestSearchQueryParamProperties {
|
|
984
|
+
/** Sort on one of the field - lastModifiedDateTime, displayName, createdBy in (field asc/desc) format. eg: displayName asc. */
|
|
985
|
+
orderBy?: string;
|
|
986
|
+
/** Filter search based on searchable fields - testId, createdBy. */
|
|
987
|
+
search?: string;
|
|
988
|
+
/** Start DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */
|
|
989
|
+
lastUpdatedStartTime?: Date | string;
|
|
990
|
+
/** End DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */
|
|
991
|
+
lastUpdatedEndTime?: Date | string;
|
|
992
|
+
/** Continuation token to get the next page of response. */
|
|
993
|
+
continuationToken?: string;
|
|
994
|
+
/** Number of results in response. */
|
|
995
|
+
maxPageSize?: number;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
export declare interface TestListTestFiles {
|
|
999
|
+
/** Get all test files. */
|
|
1000
|
+
get(options?: TestListTestFilesParameters): StreamableMethod<TestListTestFiles200Response | TestListTestFilesdefaultResponse>;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/** Get all test files. */
|
|
1004
|
+
export declare interface TestListTestFiles200Response extends HttpResponse {
|
|
1005
|
+
status: "200";
|
|
1006
|
+
body: FileUrlListOutput;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export declare interface TestListTestFilesdefaultHeaders {
|
|
1010
|
+
/** The error code for specific error that occurred. */
|
|
1011
|
+
"x-ms-error-code"?: string;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/** Get all test files. */
|
|
1015
|
+
export declare interface TestListTestFilesdefaultResponse extends HttpResponse {
|
|
1016
|
+
status: string;
|
|
1017
|
+
body: ErrorResponseBodyOutput;
|
|
1018
|
+
headers: RawHttpHeaders & TestListTestFilesdefaultHeaders;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
export declare type TestListTestFilesParameters = TestListTestFilesQueryParam & RequestParameters;
|
|
1022
|
+
|
|
1023
|
+
export declare interface TestListTestFilesQueryParam {
|
|
1024
|
+
queryParameters?: TestListTestFilesQueryParamProperties;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export declare interface TestListTestFilesQueryParamProperties {
|
|
1028
|
+
/** Continuation token to get the next page of response. */
|
|
1029
|
+
continuationToken?: string;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export declare interface TestModel {
|
|
1033
|
+
/** Unique test name as identifier. */
|
|
1034
|
+
testId?: string;
|
|
1035
|
+
/** The test description. */
|
|
1036
|
+
description?: string;
|
|
1037
|
+
/** Display name of a test. */
|
|
1038
|
+
displayName?: string;
|
|
1039
|
+
/** Fully qualified resource Id e.g /subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
1040
|
+
resourceId?: string;
|
|
1041
|
+
/** The load test configuration. */
|
|
1042
|
+
loadTestConfig?: LoadTestConfig;
|
|
1043
|
+
/** Pass fail criteria for a test. */
|
|
1044
|
+
passFailCriteria?: PassFailCriteria;
|
|
1045
|
+
/** The created DateTime(ISO 8601 literal format) of the test model. */
|
|
1046
|
+
createdDateTime?: Date | string;
|
|
1047
|
+
/** The user that created the test model. */
|
|
1048
|
+
createdBy?: string;
|
|
1049
|
+
/** The last Modified DateTime(ISO 8601 literal format) of the test model. */
|
|
1050
|
+
lastModifiedDateTime?: Date | string;
|
|
1051
|
+
/** The user that last modified the test model. */
|
|
1052
|
+
lastModifiedBy?: string;
|
|
1053
|
+
/** The input artifacts for the test. */
|
|
1054
|
+
inputArtifacts?: InputTestArtifacts;
|
|
1055
|
+
/** Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE. */
|
|
1056
|
+
secrets?: Record<string, SecretMetadata>;
|
|
1057
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1058
|
+
environmentVariables?: Record<string, string>;
|
|
1059
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1060
|
+
subnetId?: string;
|
|
1061
|
+
/** Type of the managed identity referencing the Key vault. */
|
|
1062
|
+
keyvaultReferenceIdentityType?: string;
|
|
1063
|
+
/** Resource Id of the managed identity referencing the Key vault. */
|
|
1064
|
+
keyvaultReferenceIdentityId?: string;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
export declare interface TestModelOutput {
|
|
1068
|
+
/** Unique test name as identifier. */
|
|
1069
|
+
testId?: string;
|
|
1070
|
+
/** The test description. */
|
|
1071
|
+
description?: string;
|
|
1072
|
+
/** Display name of a test. */
|
|
1073
|
+
displayName?: string;
|
|
1074
|
+
/** Fully qualified resource Id e.g /subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
1075
|
+
resourceId?: string;
|
|
1076
|
+
/** The load test configuration. */
|
|
1077
|
+
loadTestConfig?: LoadTestConfigOutput;
|
|
1078
|
+
/** Pass fail criteria for a test. */
|
|
1079
|
+
passFailCriteria?: PassFailCriteriaOutput;
|
|
1080
|
+
/** The created DateTime(ISO 8601 literal format) of the test model. */
|
|
1081
|
+
createdDateTime?: string;
|
|
1082
|
+
/** The user that created the test model. */
|
|
1083
|
+
createdBy?: string;
|
|
1084
|
+
/** The last Modified DateTime(ISO 8601 literal format) of the test model. */
|
|
1085
|
+
lastModifiedDateTime?: string;
|
|
1086
|
+
/** The user that last modified the test model. */
|
|
1087
|
+
lastModifiedBy?: string;
|
|
1088
|
+
/** The input artifacts for the test. */
|
|
1089
|
+
inputArtifacts?: InputTestArtifactsOutput;
|
|
1090
|
+
/** Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE. */
|
|
1091
|
+
secrets?: Record<string, SecretMetadataOutput>;
|
|
1092
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1093
|
+
environmentVariables?: Record<string, string>;
|
|
1094
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1095
|
+
subnetId?: string;
|
|
1096
|
+
/** Type of the managed identity referencing the Key vault. */
|
|
1097
|
+
keyvaultReferenceIdentityType?: string;
|
|
1098
|
+
/** Resource Id of the managed identity referencing the Key vault. */
|
|
1099
|
+
keyvaultReferenceIdentityId?: string;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export declare interface TestModelResourceListOutput {
|
|
1103
|
+
/** List of Resources */
|
|
1104
|
+
value: Array<TestModelOutput>;
|
|
1105
|
+
/** Link for the next list of resources in case of paginated results, if applicable */
|
|
1106
|
+
nextLink?: string;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/** Create and start a new test run with the given name. */
|
|
1110
|
+
export declare interface TestRunCreateOrUpdateTestRun200Response extends HttpResponse {
|
|
1111
|
+
status: "200";
|
|
1112
|
+
body: TestRunModelOutput;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export declare interface TestRunCreateOrUpdateTestRunBodyParam {
|
|
1116
|
+
/** Load test run model */
|
|
1117
|
+
body: TestRunModel;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
export declare interface TestRunCreateOrUpdateTestRundefaultHeaders {
|
|
1121
|
+
/** The error code for specific error that occurred. */
|
|
1122
|
+
"x-ms-error-code"?: string;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/** Create and start a new test run with the given name. */
|
|
1126
|
+
export declare interface TestRunCreateOrUpdateTestRundefaultResponse extends HttpResponse {
|
|
1127
|
+
status: string;
|
|
1128
|
+
body: ErrorResponseBodyOutput;
|
|
1129
|
+
headers: RawHttpHeaders & TestRunCreateOrUpdateTestRundefaultHeaders;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export declare interface TestRunCreateOrUpdateTestRunMediaTypesParam {
|
|
1133
|
+
/** Request content type */
|
|
1134
|
+
contentType?: "application/merge-patch+json";
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export declare type TestRunCreateOrUpdateTestRunParameters = TestRunCreateOrUpdateTestRunQueryParam & TestRunCreateOrUpdateTestRunMediaTypesParam & TestRunCreateOrUpdateTestRunBodyParam & RequestParameters;
|
|
1138
|
+
|
|
1139
|
+
export declare interface TestRunCreateOrUpdateTestRunQueryParam {
|
|
1140
|
+
queryParameters?: TestRunCreateOrUpdateTestRunQueryParamProperties;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
export declare interface TestRunCreateOrUpdateTestRunQueryParamProperties {
|
|
1144
|
+
/** Existing test run Id that should be rerun. */
|
|
1145
|
+
oldTestRunId?: string;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
export declare interface TestRunDeleteTestRun {
|
|
1149
|
+
/** Delete a test run by its name. */
|
|
1150
|
+
delete(options?: TestRunDeleteTestRunParameters): StreamableMethod<TestRunDeleteTestRun204Response | TestRunDeleteTestRundefaultResponse>;
|
|
1151
|
+
/** Create and start a new test run with the given name. */
|
|
1152
|
+
patch(options: TestRunCreateOrUpdateTestRunParameters): StreamableMethod<TestRunCreateOrUpdateTestRun200Response | TestRunCreateOrUpdateTestRundefaultResponse>;
|
|
1153
|
+
/** Get test run details by name. */
|
|
1154
|
+
get(options?: TestRunGetTestRunParameters): StreamableMethod<TestRunGetTestRun200Response | TestRunGetTestRundefaultResponse>;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
/** Delete a test run by its name. */
|
|
1158
|
+
export declare interface TestRunDeleteTestRun204Response extends HttpResponse {
|
|
1159
|
+
status: "204";
|
|
1160
|
+
body: Record<string, unknown>;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export declare interface TestRunDeleteTestRundefaultHeaders {
|
|
1164
|
+
/** The error code for specific error that occurred. */
|
|
1165
|
+
"x-ms-error-code"?: string;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/** Delete a test run by its name. */
|
|
1169
|
+
export declare interface TestRunDeleteTestRundefaultResponse extends HttpResponse {
|
|
1170
|
+
status: string;
|
|
1171
|
+
body: ErrorResponseBodyOutput;
|
|
1172
|
+
headers: RawHttpHeaders & TestRunDeleteTestRundefaultHeaders;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
export declare type TestRunDeleteTestRunParameters = RequestParameters;
|
|
1176
|
+
|
|
1177
|
+
/** Get test run details by name. */
|
|
1178
|
+
export declare interface TestRunGetTestRun200Response extends HttpResponse {
|
|
1179
|
+
status: "200";
|
|
1180
|
+
body: TestRunModelOutput;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
export declare interface TestRunGetTestRunClientMetrics {
|
|
1184
|
+
/** Get all client metrics for a load test run. */
|
|
1185
|
+
post(options: TestRunGetTestRunClientMetricsParameters): StreamableMethod<TestRunGetTestRunClientMetrics200Response | TestRunGetTestRunClientMetricsdefaultResponse>;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/** Get all client metrics for a load test run. */
|
|
1189
|
+
export declare interface TestRunGetTestRunClientMetrics200Response extends HttpResponse {
|
|
1190
|
+
status: "200";
|
|
1191
|
+
body: ClientMetricsResultsOutput;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export declare interface TestRunGetTestRunClientMetricsBodyParam {
|
|
1195
|
+
/** Client metrics request model */
|
|
1196
|
+
body: ClientMetricsRequestModel;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
export declare interface TestRunGetTestRunClientMetricsdefaultHeaders {
|
|
1200
|
+
/** The error code for specific error that occurred. */
|
|
1201
|
+
"x-ms-error-code"?: string;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/** Get all client metrics for a load test run. */
|
|
1205
|
+
export declare interface TestRunGetTestRunClientMetricsdefaultResponse extends HttpResponse {
|
|
1206
|
+
status: string;
|
|
1207
|
+
body: ErrorResponseBodyOutput;
|
|
1208
|
+
headers: RawHttpHeaders & TestRunGetTestRunClientMetricsdefaultHeaders;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export declare interface TestRunGetTestRunClientMetricsFilters {
|
|
1212
|
+
/** Get all filters that are supported for client metrics for a given load test run */
|
|
1213
|
+
get(options?: TestRunGetTestRunClientMetricsFiltersParameters): StreamableMethod<TestRunGetTestRunClientMetricsFilters200Response | TestRunGetTestRunClientMetricsFiltersdefaultResponse>;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/** Get all filters that are supported for client metrics for a given load test run */
|
|
1217
|
+
export declare interface TestRunGetTestRunClientMetricsFilters200Response extends HttpResponse {
|
|
1218
|
+
status: "200";
|
|
1219
|
+
body: ClientMetricsFiltersOutput;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
export declare interface TestRunGetTestRunClientMetricsFiltersdefaultHeaders {
|
|
1223
|
+
/** The error code for specific error that occurred. */
|
|
1224
|
+
"x-ms-error-code"?: string;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/** Get all filters that are supported for client metrics for a given load test run */
|
|
1228
|
+
export declare interface TestRunGetTestRunClientMetricsFiltersdefaultResponse extends HttpResponse {
|
|
1229
|
+
status: string;
|
|
1230
|
+
body: ErrorResponseBodyOutput;
|
|
1231
|
+
headers: RawHttpHeaders & TestRunGetTestRunClientMetricsFiltersdefaultHeaders;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export declare type TestRunGetTestRunClientMetricsFiltersParameters = RequestParameters;
|
|
1235
|
+
|
|
1236
|
+
export declare interface TestRunGetTestRunClientMetricsMediaTypesParam {
|
|
1237
|
+
/** Request content type */
|
|
1238
|
+
contentType?: "application/json";
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export declare type TestRunGetTestRunClientMetricsParameters = TestRunGetTestRunClientMetricsMediaTypesParam & TestRunGetTestRunClientMetricsBodyParam & RequestParameters;
|
|
1242
|
+
|
|
1243
|
+
export declare interface TestRunGetTestRundefaultHeaders {
|
|
1244
|
+
/** The error code for specific error that occurred. */
|
|
1245
|
+
"x-ms-error-code"?: string;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/** Get test run details by name. */
|
|
1249
|
+
export declare interface TestRunGetTestRundefaultResponse extends HttpResponse {
|
|
1250
|
+
status: string;
|
|
1251
|
+
body: ErrorResponseBodyOutput;
|
|
1252
|
+
headers: RawHttpHeaders & TestRunGetTestRundefaultHeaders;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export declare interface TestRunGetTestRunFile {
|
|
1256
|
+
/** Get test run file by file name. */
|
|
1257
|
+
get(options?: TestRunGetTestRunFileParameters): StreamableMethod<TestRunGetTestRunFile200Response | TestRunGetTestRunFiledefaultResponse>;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/** Get test run file by file name. */
|
|
1261
|
+
export declare interface TestRunGetTestRunFile200Response extends HttpResponse {
|
|
1262
|
+
status: "200";
|
|
1263
|
+
body: FileUrlOutput;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
export declare interface TestRunGetTestRunFiledefaultHeaders {
|
|
1267
|
+
/** The error code for specific error that occurred. */
|
|
1268
|
+
"x-ms-error-code"?: string;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/** Get test run file by file name. */
|
|
1272
|
+
export declare interface TestRunGetTestRunFiledefaultResponse extends HttpResponse {
|
|
1273
|
+
status: string;
|
|
1274
|
+
body: ErrorResponseBodyOutput;
|
|
1275
|
+
headers: RawHttpHeaders & TestRunGetTestRunFiledefaultHeaders;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
export declare type TestRunGetTestRunFileParameters = RequestParameters;
|
|
1279
|
+
|
|
1280
|
+
export declare type TestRunGetTestRunParameters = RequestParameters;
|
|
1281
|
+
|
|
1282
|
+
export declare interface TestRunListTestRuns {
|
|
1283
|
+
/** Get all test runs with given filters */
|
|
1284
|
+
get(options?: TestRunListTestRunsParameters): StreamableMethod<TestRunListTestRuns200Response | TestRunListTestRunsdefaultResponse>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/** Get all test runs with given filters */
|
|
1288
|
+
export declare interface TestRunListTestRuns200Response extends HttpResponse {
|
|
1289
|
+
status: "200";
|
|
1290
|
+
body: TestRunModelResourceListOutput;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
export declare interface TestRunListTestRunsdefaultHeaders {
|
|
1294
|
+
/** The error code for specific error that occurred. */
|
|
1295
|
+
"x-ms-error-code"?: string;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/** Get all test runs with given filters */
|
|
1299
|
+
export declare interface TestRunListTestRunsdefaultResponse extends HttpResponse {
|
|
1300
|
+
status: string;
|
|
1301
|
+
body: ErrorResponseBodyOutput;
|
|
1302
|
+
headers: RawHttpHeaders & TestRunListTestRunsdefaultHeaders;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export declare type TestRunListTestRunsParameters = TestRunListTestRunsQueryParam & RequestParameters;
|
|
1306
|
+
|
|
1307
|
+
export declare interface TestRunListTestRunsQueryParam {
|
|
1308
|
+
queryParameters?: TestRunListTestRunsQueryParamProperties;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
export declare interface TestRunListTestRunsQueryParamProperties {
|
|
1312
|
+
/** Sort on one of the field - status, displayName, executedDateTime in (field asc/desc) format. eg: displayName asc. */
|
|
1313
|
+
orderBy?: string;
|
|
1314
|
+
/** Continuation token to get the next page of response. */
|
|
1315
|
+
continuationToken?: string;
|
|
1316
|
+
/** Filter search based on searchable fields - description, executedUser. */
|
|
1317
|
+
search?: string;
|
|
1318
|
+
/** The end DateTime(ISO 8601 literal format) of test-run execution time filter range. */
|
|
1319
|
+
executionFrom?: Date | string;
|
|
1320
|
+
/** The start DateTime(ISO 8601 literal format) of test-run execution time filter range. */
|
|
1321
|
+
executionTo?: Date | string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Comma separated list of test run status, value can be - "ACCEPTED", "NOTSTARTED","PROVISIONING","PROVISIONED","CONFIGURING",
|
|
1324
|
+
* "CONFIGURED","EXECUTING","EXECUTED","DEPROVISIONING","DEPROVISIONED","DONE","CANCELLED","FAILED".
|
|
1325
|
+
*/
|
|
1326
|
+
status?: string;
|
|
1327
|
+
/** Number of results in response. */
|
|
1328
|
+
maxPageSize?: number;
|
|
1329
|
+
/** Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$. */
|
|
1330
|
+
testId?: string;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
export declare interface TestRunModel {
|
|
1334
|
+
/** Unique test run name as identifier. */
|
|
1335
|
+
testRunId?: string;
|
|
1336
|
+
/** Display name of a test run. */
|
|
1337
|
+
displayName?: string;
|
|
1338
|
+
/** Associated test Id. */
|
|
1339
|
+
testId?: string;
|
|
1340
|
+
/** Load test resource Id. */
|
|
1341
|
+
resourceId?: string;
|
|
1342
|
+
/** The test run description. */
|
|
1343
|
+
description?: string;
|
|
1344
|
+
/** The test run status. */
|
|
1345
|
+
status?: string;
|
|
1346
|
+
/** The test run start DateTime(ISO 8601 literal format). */
|
|
1347
|
+
startDateTime?: Date | string;
|
|
1348
|
+
/** The test run end DateTime(ISO 8601 literal format). */
|
|
1349
|
+
endDateTime?: Date | string;
|
|
1350
|
+
/** The load test configuration. */
|
|
1351
|
+
loadTestConfig?: LoadTestConfig;
|
|
1352
|
+
/** Test result for pass/Fail criteria used during the test run. possible outcome - ‘Passed’ , ‘Failed’ , ‘Not Applicable’. */
|
|
1353
|
+
testResult?: string;
|
|
1354
|
+
/** Pass fail criteria for a test. */
|
|
1355
|
+
passFailCriteria?: PassFailCriteria;
|
|
1356
|
+
testArtifacts?: TestArtifacts;
|
|
1357
|
+
/** Test run initiated time */
|
|
1358
|
+
executedDateTime?: Date | string;
|
|
1359
|
+
/** Number of virtual users, for which test has been run. */
|
|
1360
|
+
vusers?: number;
|
|
1361
|
+
/** Test run statistics */
|
|
1362
|
+
testRunStatistics?: Record<string, TestRunStatisticsModel>;
|
|
1363
|
+
/** The created DateTime(ISO 8601 literal format) of the test run. */
|
|
1364
|
+
createdDateTime?: Date | string;
|
|
1365
|
+
/** The user that created the test run. */
|
|
1366
|
+
createdBy?: string;
|
|
1367
|
+
/** The last updated DateTime(ISO 8601 literal format) of the test run. */
|
|
1368
|
+
lastModifiedDateTime?: Date | string;
|
|
1369
|
+
/** The user that updated the test run. */
|
|
1370
|
+
lastModifiedBy?: string;
|
|
1371
|
+
/** Portal url. */
|
|
1372
|
+
portalUrl?: string;
|
|
1373
|
+
/** Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE. */
|
|
1374
|
+
secrets?: Record<string, SecretMetadata>;
|
|
1375
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1376
|
+
environmentVariables?: Record<string, string>;
|
|
1377
|
+
/** Test run duration in milliseconds. */
|
|
1378
|
+
duration?: number;
|
|
1379
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1380
|
+
subnetId?: string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export declare interface TestRunModelOutput {
|
|
1384
|
+
/** Unique test run name as identifier. */
|
|
1385
|
+
testRunId?: string;
|
|
1386
|
+
/** Display name of a test run. */
|
|
1387
|
+
displayName?: string;
|
|
1388
|
+
/** Associated test Id. */
|
|
1389
|
+
testId?: string;
|
|
1390
|
+
/** Load test resource Id. */
|
|
1391
|
+
resourceId?: string;
|
|
1392
|
+
/** The test run description. */
|
|
1393
|
+
description?: string;
|
|
1394
|
+
/** The test run status. */
|
|
1395
|
+
status?: string;
|
|
1396
|
+
/** The test run start DateTime(ISO 8601 literal format). */
|
|
1397
|
+
startDateTime?: string;
|
|
1398
|
+
/** The test run end DateTime(ISO 8601 literal format). */
|
|
1399
|
+
endDateTime?: string;
|
|
1400
|
+
/** The load test configuration. */
|
|
1401
|
+
loadTestConfig?: LoadTestConfigOutput;
|
|
1402
|
+
/** Test result for pass/Fail criteria used during the test run. possible outcome - ‘Passed’ , ‘Failed’ , ‘Not Applicable’. */
|
|
1403
|
+
testResult?: string;
|
|
1404
|
+
/** Pass fail criteria for a test. */
|
|
1405
|
+
passFailCriteria?: PassFailCriteriaOutput;
|
|
1406
|
+
testArtifacts?: TestArtifactsOutput;
|
|
1407
|
+
/** Test run initiated time */
|
|
1408
|
+
executedDateTime?: string;
|
|
1409
|
+
/** Number of virtual users, for which test has been run. */
|
|
1410
|
+
vusers?: number;
|
|
1411
|
+
/** Test run statistics */
|
|
1412
|
+
testRunStatistics?: Record<string, TestRunStatisticsModelOutput>;
|
|
1413
|
+
/** The created DateTime(ISO 8601 literal format) of the test run. */
|
|
1414
|
+
createdDateTime?: string;
|
|
1415
|
+
/** The user that created the test run. */
|
|
1416
|
+
createdBy?: string;
|
|
1417
|
+
/** The last updated DateTime(ISO 8601 literal format) of the test run. */
|
|
1418
|
+
lastModifiedDateTime?: string;
|
|
1419
|
+
/** The user that updated the test run. */
|
|
1420
|
+
lastModifiedBy?: string;
|
|
1421
|
+
/** Portal url. */
|
|
1422
|
+
portalUrl?: string;
|
|
1423
|
+
/** Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE. */
|
|
1424
|
+
secrets?: Record<string, SecretMetadataOutput>;
|
|
1425
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1426
|
+
environmentVariables?: Record<string, string>;
|
|
1427
|
+
/** Test run duration in milliseconds. */
|
|
1428
|
+
duration?: number;
|
|
1429
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1430
|
+
subnetId?: string;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
export declare interface TestRunModelResourceListOutput {
|
|
1434
|
+
/** List of Resources */
|
|
1435
|
+
value: Array<TestRunModelOutput>;
|
|
1436
|
+
/** Link for the next list of resources in case of paginated results, if applicable */
|
|
1437
|
+
nextLink?: string;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export declare interface TestRunStatisticsModel {
|
|
1441
|
+
/** Transaction name. */
|
|
1442
|
+
transaction?: string;
|
|
1443
|
+
/** Sampler count. */
|
|
1444
|
+
sampleCount?: number;
|
|
1445
|
+
/** Error count. */
|
|
1446
|
+
errorCount?: number;
|
|
1447
|
+
/** Error percentage. */
|
|
1448
|
+
errorPct?: number;
|
|
1449
|
+
/** Mean response time. */
|
|
1450
|
+
meanResTime?: number;
|
|
1451
|
+
/** Median response time. */
|
|
1452
|
+
medianResTime?: number;
|
|
1453
|
+
/** Max response time. */
|
|
1454
|
+
maxResTime?: number;
|
|
1455
|
+
/** Minimum response time. */
|
|
1456
|
+
minResTime?: number;
|
|
1457
|
+
/** 90 percentile response time. */
|
|
1458
|
+
pct1ResTime?: number;
|
|
1459
|
+
/** 95 percentile response time. */
|
|
1460
|
+
pct2ResTime?: number;
|
|
1461
|
+
/** 99 percentile response time. */
|
|
1462
|
+
pct3ResTime?: number;
|
|
1463
|
+
/** Throughput. */
|
|
1464
|
+
throughput?: number;
|
|
1465
|
+
/** Received network bytes. */
|
|
1466
|
+
receivedKBytesPerSec?: number;
|
|
1467
|
+
/** Sent network bytes. */
|
|
1468
|
+
sentKBytesPerSec?: number;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
export declare interface TestRunStatisticsModelOutput {
|
|
1472
|
+
/** Transaction name. */
|
|
1473
|
+
transaction?: string;
|
|
1474
|
+
/** Sampler count. */
|
|
1475
|
+
sampleCount?: number;
|
|
1476
|
+
/** Error count. */
|
|
1477
|
+
errorCount?: number;
|
|
1478
|
+
/** Error percentage. */
|
|
1479
|
+
errorPct?: number;
|
|
1480
|
+
/** Mean response time. */
|
|
1481
|
+
meanResTime?: number;
|
|
1482
|
+
/** Median response time. */
|
|
1483
|
+
medianResTime?: number;
|
|
1484
|
+
/** Max response time. */
|
|
1485
|
+
maxResTime?: number;
|
|
1486
|
+
/** Minimum response time. */
|
|
1487
|
+
minResTime?: number;
|
|
1488
|
+
/** 90 percentile response time. */
|
|
1489
|
+
pct1ResTime?: number;
|
|
1490
|
+
/** 95 percentile response time. */
|
|
1491
|
+
pct2ResTime?: number;
|
|
1492
|
+
/** 99 percentile response time. */
|
|
1493
|
+
pct3ResTime?: number;
|
|
1494
|
+
/** Throughput. */
|
|
1495
|
+
throughput?: number;
|
|
1496
|
+
/** Received network bytes. */
|
|
1497
|
+
receivedKBytesPerSec?: number;
|
|
1498
|
+
/** Sent network bytes. */
|
|
1499
|
+
sentKBytesPerSec?: number;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
export declare interface TestRunStopTestRun {
|
|
1503
|
+
/** Stop test run by name. */
|
|
1504
|
+
post(options?: TestRunStopTestRunParameters): StreamableMethod<TestRunStopTestRun200Response | TestRunStopTestRundefaultResponse>;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/** Stop test run by name. */
|
|
1508
|
+
export declare interface TestRunStopTestRun200Response extends HttpResponse {
|
|
1509
|
+
status: "200";
|
|
1510
|
+
body: TestRunModelOutput;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export declare interface TestRunStopTestRundefaultHeaders {
|
|
1514
|
+
/** The error code for specific error that occurred. */
|
|
1515
|
+
"x-ms-error-code"?: string;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/** Stop test run by name. */
|
|
1519
|
+
export declare interface TestRunStopTestRundefaultResponse extends HttpResponse {
|
|
1520
|
+
status: string;
|
|
1521
|
+
body: ErrorResponseBodyOutput;
|
|
1522
|
+
headers: RawHttpHeaders & TestRunStopTestRundefaultHeaders;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
export declare type TestRunStopTestRunParameters = RequestParameters;
|
|
1526
|
+
|
|
1527
|
+
export declare interface TestUploadTestFile {
|
|
1528
|
+
/** Upload input file for a given test name. File size can't be more than 50 MB. Existing file with same name for the given test will be overwritten. File should be provided in the request body as multipart/form-data. */
|
|
1529
|
+
put(options: TestUploadTestFileParameters): StreamableMethod<TestUploadTestFile201Response | TestUploadTestFiledefaultResponse>;
|
|
1530
|
+
/** Get test file by the file name. */
|
|
1531
|
+
get(options?: TestGetTestFileParameters): StreamableMethod<TestGetTestFile200Response | TestGetTestFiledefaultResponse>;
|
|
1532
|
+
/** Delete file by the file name for a test. */
|
|
1533
|
+
delete(options?: TestDeleteTestFileParameters): StreamableMethod<TestDeleteTestFile204Response | TestDeleteTestFiledefaultResponse>;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/** Upload input file for a given test name. File size can't be more than 50 MB. Existing file with same name for the given test will be overwritten. File should be provided in the request body as multipart/form-data. */
|
|
1537
|
+
export declare interface TestUploadTestFile201Response extends HttpResponse {
|
|
1538
|
+
status: "201";
|
|
1539
|
+
body: FileUrlOutput;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export declare interface TestUploadTestFileBodyParam {
|
|
1543
|
+
body: TestUploadTestFileFormBody;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
export declare interface TestUploadTestFiledefaultHeaders {
|
|
1547
|
+
/** The error code for specific error that occurred. */
|
|
1548
|
+
"x-ms-error-code"?: string;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
/** Upload input file for a given test name. File size can't be more than 50 MB. Existing file with same name for the given test will be overwritten. File should be provided in the request body as multipart/form-data. */
|
|
1552
|
+
export declare interface TestUploadTestFiledefaultResponse extends HttpResponse {
|
|
1553
|
+
status: string;
|
|
1554
|
+
body: ErrorResponseBodyOutput;
|
|
1555
|
+
headers: RawHttpHeaders & TestUploadTestFiledefaultHeaders;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export declare interface TestUploadTestFileFormBody {
|
|
1559
|
+
/**
|
|
1560
|
+
* The file to be uploaded.
|
|
1561
|
+
*
|
|
1562
|
+
* Value may contain any sequence of octets
|
|
1563
|
+
*/
|
|
1564
|
+
file: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
export declare interface TestUploadTestFileMediaTypesParam {
|
|
1568
|
+
/** Request content type */
|
|
1569
|
+
contentType?: "multipart/form-data";
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
export declare type TestUploadTestFileParameters = TestUploadTestFileQueryParam & TestUploadTestFileMediaTypesParam & TestUploadTestFileBodyParam & RequestParameters;
|
|
1573
|
+
|
|
1574
|
+
export declare interface TestUploadTestFileQueryParam {
|
|
1575
|
+
queryParameters?: TestUploadTestFileQueryParamProperties;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export declare interface TestUploadTestFileQueryParamProperties {
|
|
1579
|
+
/** Integer representation of the file type (0 = JMX_FILE, 1 = USER_PROPERTIES, 2 = ADDITIONAL_ARTIFACTS). */
|
|
1580
|
+
fileType?: number;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export declare interface TimeRangeOutput {
|
|
1584
|
+
/** start DateTime(ISO 8601 literal format) for the requested client metrics filter. */
|
|
1585
|
+
startTime?: string;
|
|
1586
|
+
/** end DateTime(ISO 8601 literal format) for the requested client metrics filter. */
|
|
1587
|
+
endTime?: string;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
export declare interface TimeSeriesOutput {
|
|
1591
|
+
/** Timestamp(ISO 8601 literal format). */
|
|
1592
|
+
timestamp?: string;
|
|
1593
|
+
/** Value at timestamp. */
|
|
1594
|
+
value?: number;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
export { }
|