@azure-rest/load-testing 1.0.0-beta.1 → 1.0.0
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/README.md +127 -28
- package/dist/index.js +15 -182
- package/dist/index.js.map +1 -1
- package/dist-esm/src/azureLoadTesting.js +13 -5
- package/dist-esm/src/azureLoadTesting.js.map +1 -1
- package/dist-esm/src/clientDefinitions.js +2 -1
- package/dist-esm/src/clientDefinitions.js.map +1 -1
- package/dist-esm/src/getFileValidationPoller.js +138 -0
- package/dist-esm/src/getFileValidationPoller.js.map +1 -0
- package/dist-esm/src/getTestRunCompletionPoller.js +121 -0
- package/dist-esm/src/getTestRunCompletionPoller.js.map +1 -0
- package/dist-esm/src/index.js +16 -10
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/isUnexpected.js +38 -30
- package/dist-esm/src/isUnexpected.js.map +1 -1
- package/dist-esm/src/models.js +2 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/outputModels.js +2 -1
- package/dist-esm/src/outputModels.js.map +1 -1
- package/dist-esm/src/paginateHelper.js +13 -8
- package/dist-esm/src/paginateHelper.js.map +1 -1
- package/dist-esm/src/parameters.js +2 -1
- package/dist-esm/src/parameters.js.map +1 -1
- package/dist-esm/src/pollingHelper.js +27 -0
- package/dist-esm/src/pollingHelper.js.map +1 -0
- package/dist-esm/src/responses.js +2 -1
- package/dist-esm/src/responses.js.map +1 -1
- package/dist-esm/src/util/LROUtil.js +49 -0
- package/dist-esm/src/util/LROUtil.js.map +1 -0
- package/package.json +41 -37
- package/review/load-testing.api.md +953 -783
- package/types/load-testing.d.ts +1233 -933
package/types/load-testing.d.ts
CHANGED
|
@@ -3,20 +3,23 @@
|
|
|
3
3
|
import { Client } from '@azure-rest/core-client';
|
|
4
4
|
import { ClientOptions } from '@azure-rest/core-client';
|
|
5
5
|
import { HttpResponse } from '@azure-rest/core-client';
|
|
6
|
+
import { OperationState } from '@azure/core-lro';
|
|
6
7
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
7
8
|
import { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
8
9
|
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
9
10
|
import { RequestParameters } from '@azure-rest/core-client';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
10
12
|
import { StreamableMethod } from '@azure-rest/core-client';
|
|
11
13
|
import { TokenCredential } from '@azure/core-auth';
|
|
12
14
|
|
|
15
|
+
/** An Azure resource object (Refer azure generic resource model : https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id#genericresource) */
|
|
13
16
|
export declare interface AppComponent {
|
|
14
|
-
/**
|
|
15
|
-
resourceId
|
|
16
|
-
/** Azure resource name */
|
|
17
|
-
resourceName
|
|
18
|
-
/** Azure resource type */
|
|
19
|
-
resourceType
|
|
17
|
+
/** fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} */
|
|
18
|
+
resourceId?: string;
|
|
19
|
+
/** Azure resource name, required while creating the app component. */
|
|
20
|
+
resourceName?: string;
|
|
21
|
+
/** Azure resource type, required while creating the app component. */
|
|
22
|
+
resourceType?: string;
|
|
20
23
|
/** Azure resource display name */
|
|
21
24
|
displayName?: string;
|
|
22
25
|
/** Resource group name of the Azure resource */
|
|
@@ -27,134 +30,14 @@ export declare interface AppComponent {
|
|
|
27
30
|
kind?: string;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
|
|
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
|
-
|
|
33
|
+
/** An Azure resource object (Refer azure generic resource model : https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id#genericresource) */
|
|
151
34
|
export declare interface AppComponentOutput {
|
|
152
|
-
/**
|
|
153
|
-
resourceId
|
|
154
|
-
/** Azure resource name */
|
|
155
|
-
resourceName
|
|
156
|
-
/** Azure resource type */
|
|
157
|
-
resourceType
|
|
35
|
+
/** fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} */
|
|
36
|
+
resourceId?: string;
|
|
37
|
+
/** Azure resource name, required while creating the app component. */
|
|
38
|
+
resourceName?: string;
|
|
39
|
+
/** Azure resource type, required while creating the app component. */
|
|
40
|
+
resourceType?: string;
|
|
158
41
|
/** Azure resource display name */
|
|
159
42
|
displayName?: string;
|
|
160
43
|
/** Resource group name of the Azure resource */
|
|
@@ -165,145 +48,146 @@ export declare interface AppComponentOutput {
|
|
|
165
48
|
kind?: string;
|
|
166
49
|
}
|
|
167
50
|
|
|
168
|
-
export declare
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
51
|
+
export declare type AzureLoadTestingClient = Client & {
|
|
52
|
+
path: Routes;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** Certificates metadata */
|
|
56
|
+
export declare interface CertificateMetadata {
|
|
57
|
+
/** The value of the certificate for respective type */
|
|
58
|
+
value?: string;
|
|
59
|
+
/** Type of certificate */
|
|
60
|
+
type?: "AKV_CERT_URI";
|
|
61
|
+
/** Name of the certificate. */
|
|
176
62
|
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
63
|
}
|
|
180
64
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/** AppComponent name */
|
|
65
|
+
/** Certificates metadata */
|
|
66
|
+
export declare interface CertificateMetadataOutput {
|
|
67
|
+
/** The value of the certificate for respective type */
|
|
68
|
+
value?: string;
|
|
69
|
+
/** Type of certificate */
|
|
70
|
+
type?: "AKV_CERT_URI";
|
|
71
|
+
/** Name of the certificate. */
|
|
189
72
|
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
73
|
}
|
|
193
74
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Initialize a new instance of the class AzureLoadTestingClient class.
|
|
77
|
+
* @param Endpoint type: string URL to perform data plane API operations on the resource.
|
|
78
|
+
* @param credentials type: TokenCredential
|
|
79
|
+
*/
|
|
80
|
+
declare function createClient(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): AzureLoadTestingClient;
|
|
81
|
+
export default createClient;
|
|
197
82
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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;
|
|
83
|
+
/** Dimension name and values to filter */
|
|
84
|
+
export declare interface DimensionFilter {
|
|
85
|
+
/** The dimension name */
|
|
86
|
+
name?: string;
|
|
87
|
+
/** The dimension values. Maximum values can be 20. */
|
|
88
|
+
values?: Array<string>;
|
|
224
89
|
}
|
|
225
90
|
|
|
226
|
-
|
|
227
|
-
export
|
|
91
|
+
/** Metrics dimension values. */
|
|
92
|
+
export declare interface DimensionValueListOutput {
|
|
93
|
+
/** The dimension values */
|
|
94
|
+
value?: Array<string>;
|
|
95
|
+
/** Link for the next set of values in case of paginated results, if applicable */
|
|
96
|
+
nextLink?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Represents a metric dimension value. */
|
|
100
|
+
export declare interface DimensionValueOutput {
|
|
101
|
+
/** The name of the dimension. */
|
|
102
|
+
name?: string;
|
|
103
|
+
/** The value of the dimension. */
|
|
104
|
+
value?: string;
|
|
105
|
+
}
|
|
228
106
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
107
|
+
/** Error details if there is any failure in load test run */
|
|
108
|
+
export declare interface ErrorDetails {
|
|
109
|
+
/** Error details in case test run was not successfully run. */
|
|
110
|
+
message?: string;
|
|
232
111
|
}
|
|
233
112
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
unit?: string;
|
|
239
|
-
displayDescription?: string;
|
|
113
|
+
/** Error details if there is any failure in load test run */
|
|
114
|
+
export declare interface ErrorDetailsOutput {
|
|
115
|
+
/** Error details in case test run was not successfully run. */
|
|
116
|
+
message?: string;
|
|
240
117
|
}
|
|
241
118
|
|
|
119
|
+
/** Error from a REST request. */
|
|
242
120
|
export declare interface ErrorModelOutput {
|
|
243
121
|
/** The error code. */
|
|
244
|
-
code
|
|
122
|
+
code: string;
|
|
245
123
|
/** The error message. */
|
|
246
|
-
message
|
|
124
|
+
message: string;
|
|
247
125
|
/** The error target. */
|
|
248
126
|
target?: string;
|
|
249
127
|
/** Additional details and inner errors. */
|
|
250
128
|
details?: Array<ErrorModelOutput>;
|
|
251
129
|
}
|
|
252
130
|
|
|
131
|
+
/** The definition of an error object. */
|
|
253
132
|
export declare interface ErrorResponseBodyOutput {
|
|
254
133
|
/** Error from a REST request. */
|
|
255
|
-
error
|
|
134
|
+
error: ErrorModelOutput;
|
|
256
135
|
}
|
|
257
136
|
|
|
258
|
-
|
|
137
|
+
/** File info */
|
|
138
|
+
export declare interface FileInfo {
|
|
259
139
|
/** File URL. */
|
|
260
140
|
url?: string;
|
|
261
|
-
/** File unique identifier. */
|
|
262
|
-
fileId?: string;
|
|
263
141
|
/** Name of the file. */
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
fileType?: "
|
|
267
|
-
/** Expiry time of the file */
|
|
268
|
-
|
|
142
|
+
fileName?: string;
|
|
143
|
+
/** File type */
|
|
144
|
+
fileType?: "JMX_FILE" | "USER_PROPERTIES" | "ADDITIONAL_ARTIFACTS";
|
|
145
|
+
/** Expiry time of the file (ISO 8601 literal format) */
|
|
146
|
+
expireDateTime?: Date | string;
|
|
269
147
|
/** Validation status of the file */
|
|
270
|
-
validationStatus?:
|
|
148
|
+
validationStatus?: "NOT_VALIDATED" | "VALIDATION_SUCCESS" | "VALIDATION_FAILURE" | "VALIDATION_INITIATED" | "VALIDATION_NOT_REQUIRED";
|
|
149
|
+
/** Validation failure error details */
|
|
150
|
+
validationFailureDetails?: string;
|
|
271
151
|
}
|
|
272
152
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
153
|
+
/** Collection of files. */
|
|
154
|
+
export declare interface FileInfoListOutput {
|
|
155
|
+
/** List of file info. */
|
|
156
|
+
value: Array<FileInfoOutput>;
|
|
276
157
|
/** Link for the next list of file URLs, if applicable */
|
|
277
158
|
nextLink?: string;
|
|
278
159
|
}
|
|
279
160
|
|
|
280
|
-
|
|
161
|
+
/** File info */
|
|
162
|
+
export declare interface FileInfoOutput {
|
|
281
163
|
/** File URL. */
|
|
282
164
|
url?: string;
|
|
283
|
-
/** File unique identifier. */
|
|
284
|
-
fileId?: string;
|
|
285
165
|
/** Name of the file. */
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
fileType?: "
|
|
289
|
-
/** Expiry time of the file */
|
|
290
|
-
|
|
166
|
+
fileName?: string;
|
|
167
|
+
/** File type */
|
|
168
|
+
fileType?: "JMX_FILE" | "USER_PROPERTIES" | "ADDITIONAL_ARTIFACTS";
|
|
169
|
+
/** Expiry time of the file (ISO 8601 literal format) */
|
|
170
|
+
expireDateTime?: string;
|
|
291
171
|
/** Validation status of the file */
|
|
292
|
-
validationStatus?:
|
|
172
|
+
validationStatus?: "NOT_VALIDATED" | "VALIDATION_SUCCESS" | "VALIDATION_FAILURE" | "VALIDATION_INITIATED" | "VALIDATION_NOT_REQUIRED";
|
|
173
|
+
/** Validation failure error details */
|
|
174
|
+
validationFailureDetails?: string;
|
|
293
175
|
}
|
|
294
176
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
errorFiltersValues?: Array<string>;
|
|
300
|
-
}
|
|
177
|
+
/**
|
|
178
|
+
* Describes a poller for NotificationHubJob types.
|
|
179
|
+
*/
|
|
180
|
+
export declare type FileUploadAndValidatePoller = SimplePollerLike<OperationState<TestGetFile200Response>, TestGetFile200Response>;
|
|
301
181
|
|
|
302
182
|
/**
|
|
303
183
|
* Helper type to extract the type of an array
|
|
304
184
|
*/
|
|
305
185
|
export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
306
186
|
|
|
187
|
+
export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestUploadFileSuccessResponse): Promise<FileUploadAndValidatePoller>;
|
|
188
|
+
|
|
189
|
+
export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestRunCreateOrUpdateSuccessResponse): Promise<TestRunCompletionPoller>;
|
|
190
|
+
|
|
307
191
|
/**
|
|
308
192
|
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
309
193
|
*/
|
|
@@ -312,115 +196,180 @@ export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) =>
|
|
|
312
196
|
nextPageLink?: string;
|
|
313
197
|
}>;
|
|
314
198
|
|
|
315
|
-
export declare
|
|
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;
|
|
199
|
+
export declare function isUnexpected(response: TestCreateOrUpdate200Response | TestCreateOrUpdate201Response | TestCreateOrUpdateDefaultResponse): response is TestCreateOrUpdateDefaultResponse;
|
|
342
200
|
|
|
343
|
-
export declare function isUnexpected(response:
|
|
201
|
+
export declare function isUnexpected(response: TestDelete204Response | TestDeleteDefaultResponse): response is TestDeleteDefaultResponse;
|
|
344
202
|
|
|
345
|
-
export declare function isUnexpected(response:
|
|
203
|
+
export declare function isUnexpected(response: TestGet200Response | TestGetDefaultResponse): response is TestGetDefaultResponse;
|
|
346
204
|
|
|
347
|
-
export declare function isUnexpected(response:
|
|
205
|
+
export declare function isUnexpected(response: TestList200Response | TestListDefaultResponse): response is TestListDefaultResponse;
|
|
348
206
|
|
|
349
|
-
export declare function isUnexpected(response:
|
|
207
|
+
export declare function isUnexpected(response: TestUploadFile201Response | TestUploadFileDefaultResponse): response is TestUploadFileDefaultResponse;
|
|
350
208
|
|
|
351
|
-
export declare function isUnexpected(response:
|
|
209
|
+
export declare function isUnexpected(response: TestGetFile200Response | TestGetFileDefaultResponse): response is TestGetFileDefaultResponse;
|
|
352
210
|
|
|
353
|
-
export declare function isUnexpected(response:
|
|
211
|
+
export declare function isUnexpected(response: TestDeleteFile204Response | TestDeleteFileDefaultResponse): response is TestDeleteFileDefaultResponse;
|
|
354
212
|
|
|
355
|
-
export declare function isUnexpected(response:
|
|
213
|
+
export declare function isUnexpected(response: TestListFiles200Response | TestListFilesDefaultResponse): response is TestListFilesDefaultResponse;
|
|
356
214
|
|
|
357
|
-
export declare function isUnexpected(response:
|
|
215
|
+
export declare function isUnexpected(response: TestCreateOrUpdateAppComponents200Response | TestCreateOrUpdateAppComponents201Response | TestCreateOrUpdateAppComponentsDefaultResponse): response is TestCreateOrUpdateAppComponentsDefaultResponse;
|
|
358
216
|
|
|
359
|
-
export declare function isUnexpected(response:
|
|
217
|
+
export declare function isUnexpected(response: TestListAppComponents200Response | TestListAppComponentsDefaultResponse): response is TestListAppComponentsDefaultResponse;
|
|
360
218
|
|
|
361
|
-
export declare function isUnexpected(response:
|
|
219
|
+
export declare function isUnexpected(response: TestCreateOrUpdateServerMetricsConfig200Response | TestCreateOrUpdateServerMetricsConfig201Response | TestCreateOrUpdateServerMetricsConfigDefaultResponse): response is TestCreateOrUpdateServerMetricsConfigDefaultResponse;
|
|
362
220
|
|
|
363
|
-
export declare function isUnexpected(response:
|
|
221
|
+
export declare function isUnexpected(response: TestListServerMetricsConfig200Response | TestListServerMetricsConfigDefaultResponse): response is TestListServerMetricsConfigDefaultResponse;
|
|
364
222
|
|
|
365
|
-
export declare function isUnexpected(response:
|
|
223
|
+
export declare function isUnexpected(response: TestRunDelete204Response | TestRunDeleteDefaultResponse): response is TestRunDeleteDefaultResponse;
|
|
366
224
|
|
|
367
|
-
export declare function isUnexpected(response:
|
|
225
|
+
export declare function isUnexpected(response: TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response | TestRunCreateOrUpdateDefaultResponse): response is TestRunCreateOrUpdateDefaultResponse;
|
|
368
226
|
|
|
369
|
-
export declare function isUnexpected(response:
|
|
227
|
+
export declare function isUnexpected(response: TestRunGet200Response | TestRunGetDefaultResponse): response is TestRunGetDefaultResponse;
|
|
370
228
|
|
|
371
|
-
export declare function isUnexpected(response:
|
|
229
|
+
export declare function isUnexpected(response: TestRunGetFile200Response | TestRunGetFileDefaultResponse): response is TestRunGetFileDefaultResponse;
|
|
372
230
|
|
|
373
|
-
export declare function isUnexpected(response:
|
|
231
|
+
export declare function isUnexpected(response: TestRunList200Response | TestRunListDefaultResponse): response is TestRunListDefaultResponse;
|
|
374
232
|
|
|
375
|
-
export declare function isUnexpected(response:
|
|
233
|
+
export declare function isUnexpected(response: TestRunStop200Response | TestRunStopDefaultResponse): response is TestRunStopDefaultResponse;
|
|
376
234
|
|
|
377
|
-
export declare function isUnexpected(response:
|
|
235
|
+
export declare function isUnexpected(response: TestRunListMetricNamespaces200Response | TestRunListMetricNamespacesDefaultResponse): response is TestRunListMetricNamespacesDefaultResponse;
|
|
378
236
|
|
|
379
|
-
export declare function isUnexpected(response:
|
|
237
|
+
export declare function isUnexpected(response: TestRunListMetricDefinitions200Response | TestRunListMetricDefinitionsDefaultResponse): response is TestRunListMetricDefinitionsDefaultResponse;
|
|
380
238
|
|
|
381
|
-
export declare function isUnexpected(response:
|
|
239
|
+
export declare function isUnexpected(response: TestRunListMetrics200Response | TestRunListMetricsDefaultResponse): response is TestRunListMetricsDefaultResponse;
|
|
382
240
|
|
|
383
|
-
export declare function isUnexpected(response:
|
|
241
|
+
export declare function isUnexpected(response: TestRunListMetricDimensionValues200Response | TestRunListMetricDimensionValuesDefaultResponse): response is TestRunListMetricDimensionValuesDefaultResponse;
|
|
384
242
|
|
|
385
|
-
export declare function isUnexpected(response:
|
|
243
|
+
export declare function isUnexpected(response: TestRunCreateOrUpdateAppComponents200Response | TestRunCreateOrUpdateAppComponents201Response | TestRunCreateOrUpdateAppComponentsDefaultResponse): response is TestRunCreateOrUpdateAppComponentsDefaultResponse;
|
|
386
244
|
|
|
387
|
-
export declare function isUnexpected(response:
|
|
245
|
+
export declare function isUnexpected(response: TestRunListAppComponents200Response | TestRunListAppComponentsDefaultResponse): response is TestRunListAppComponentsDefaultResponse;
|
|
388
246
|
|
|
389
|
-
export declare function isUnexpected(response:
|
|
247
|
+
export declare function isUnexpected(response: TestRunCreateOrUpdateServerMetricsConfig200Response | TestRunCreateOrUpdateServerMetricsConfig201Response | TestRunCreateOrUpdateServerMetricsConfigDefaultResponse): response is TestRunCreateOrUpdateServerMetricsConfigDefaultResponse;
|
|
390
248
|
|
|
391
|
-
export declare function isUnexpected(response:
|
|
249
|
+
export declare function isUnexpected(response: TestRunListServerMetricsConfig200Response | TestRunListServerMetricsConfigDefaultResponse): response is TestRunListServerMetricsConfigDefaultResponse;
|
|
392
250
|
|
|
393
|
-
|
|
251
|
+
/** The load test configuration. */
|
|
252
|
+
export declare interface LoadTestConfiguration {
|
|
394
253
|
/** The number of engine instances to execute load test. Supported values are in range of 1-45. Required for creating a new test. */
|
|
395
254
|
engineInstances?: number;
|
|
396
|
-
/**
|
|
255
|
+
/** If false, Azure Load Testing copies and processes your input files unmodified across all test engine instances. If true, Azure Load Testing splits the CSV input data evenly across all engine instances. If you provide multiple CSV files, each file will be split evenly. */
|
|
397
256
|
splitAllCSVs?: boolean;
|
|
257
|
+
/** If true, optionalLoadTestConfig is required and JMX script for the load test is not required to upload. */
|
|
258
|
+
quickStartTest?: boolean;
|
|
259
|
+
/** Optional load test config */
|
|
260
|
+
optionalLoadTestConfig?: OptionalLoadTestConfig;
|
|
398
261
|
}
|
|
399
262
|
|
|
400
|
-
|
|
263
|
+
/** The load test configuration. */
|
|
264
|
+
export declare interface LoadTestConfigurationOutput {
|
|
401
265
|
/** The number of engine instances to execute load test. Supported values are in range of 1-45. Required for creating a new test. */
|
|
402
266
|
engineInstances?: number;
|
|
403
|
-
/**
|
|
267
|
+
/** If false, Azure Load Testing copies and processes your input files unmodified across all test engine instances. If true, Azure Load Testing splits the CSV input data evenly across all engine instances. If you provide multiple CSV files, each file will be split evenly. */
|
|
404
268
|
splitAllCSVs?: boolean;
|
|
269
|
+
/** If true, optionalLoadTestConfig is required and JMX script for the load test is not required to upload. */
|
|
270
|
+
quickStartTest?: boolean;
|
|
271
|
+
/** Optional load test config */
|
|
272
|
+
optionalLoadTestConfig?: OptionalLoadTestConfigOutput;
|
|
405
273
|
}
|
|
406
274
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
275
|
+
/** Metric availability specifies the time grain (aggregation interval or frequency) */
|
|
276
|
+
export declare interface MetricAvailabilityOutput {
|
|
277
|
+
/** The time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'PT1H', etc. */
|
|
278
|
+
timeGrain?: "PT5S" | "PT10S" | "PT1M" | "PT5M" | "PT1H";
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** Represents collection of metric definitions. */
|
|
282
|
+
export declare interface MetricDefinitionCollectionOutput {
|
|
283
|
+
/** the values for the metric definitions. */
|
|
284
|
+
value: Array<MetricDefinitionOutput>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/** Metric definition */
|
|
288
|
+
export declare interface MetricDefinitionOutput {
|
|
289
|
+
/** List of dimensions */
|
|
290
|
+
dimensions?: Array<NameAndDescOutput>;
|
|
291
|
+
/** The metric description */
|
|
292
|
+
description?: string;
|
|
293
|
+
/** The metric name */
|
|
294
|
+
name?: string;
|
|
295
|
+
/** The namespace the metric belongs to. */
|
|
296
|
+
namespace?: string;
|
|
297
|
+
/** The primary aggregation type value defining how to use the values for display. */
|
|
298
|
+
primaryAggregationType?: "Average" | "Count" | "None" | "Total" | "Percentile90" | "Percentile95" | "Percentile99";
|
|
299
|
+
/** The collection of what all aggregation types are supported. */
|
|
300
|
+
supportedAggregationTypes?: Array<string>;
|
|
301
|
+
/** The unit of the metric. */
|
|
302
|
+
unit?: "NotSpecified" | "Percent" | "Count" | "Seconds" | "Milliseconds" | "Bytes" | "BytesPerSecond" | "CountPerSecond";
|
|
303
|
+
/** Metric availability specifies the time grain (aggregation interval or frequency). */
|
|
304
|
+
metricAvailabilities?: Array<MetricAvailabilityOutput>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/** Represents collection of metric namespaces. */
|
|
308
|
+
export declare interface MetricNamespaceCollectionOutput {
|
|
309
|
+
/** The values for the metric namespaces. */
|
|
310
|
+
value: Array<MetricNamespaceOutput>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/** Metric namespace class specifies the metadata for a metric namespace. */
|
|
314
|
+
export declare interface MetricNamespaceOutput {
|
|
315
|
+
/** The namespace description. */
|
|
316
|
+
description?: string;
|
|
317
|
+
/** The metric namespace name. */
|
|
318
|
+
name?: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** Filters to fetch the set of metric */
|
|
322
|
+
export declare interface MetricRequestPayload {
|
|
323
|
+
/** Get metrics for specific dimension values. Example: Metric contains dimension like SamplerName, Error. To retrieve all the time series data where SamplerName is equals to HTTPRequest1 or HTTPRequest2, the DimensionFilter value will be {"SamplerName", ["HTTPRequest1", "HTTPRequest2"} */
|
|
324
|
+
filters?: Array<DimensionFilter>;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/** The response to a metrics query. */
|
|
328
|
+
export declare interface MetricsOutput {
|
|
329
|
+
/** Timeseries data for metric query. */
|
|
330
|
+
timeseries?: Array<TimeSeriesElementOutput>;
|
|
331
|
+
/** Link for the next set of timeseries in case of paginated results, if applicable */
|
|
332
|
+
nextLink?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/** Represents a metric value. */
|
|
336
|
+
export declare interface MetricValueOutput {
|
|
337
|
+
/** The timestamp for the metric value in ISO 8601 format. */
|
|
338
|
+
timestamp?: string;
|
|
339
|
+
/** The metric value. */
|
|
340
|
+
value?: number;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/** The name and description */
|
|
344
|
+
export declare interface NameAndDescOutput {
|
|
345
|
+
/** The description */
|
|
346
|
+
description?: string;
|
|
347
|
+
/** The name */
|
|
348
|
+
name?: string;
|
|
410
349
|
}
|
|
411
350
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
351
|
+
/** Optional load test config */
|
|
352
|
+
export declare interface OptionalLoadTestConfig {
|
|
353
|
+
/** Test URL. Provide the complete HTTP URL. For example, http://contoso-app.azurewebsites.net/login */
|
|
354
|
+
endpointUrl?: string;
|
|
355
|
+
/** No of concurrent virtual users */
|
|
356
|
+
virtualUsers?: number;
|
|
357
|
+
/** Ramp up time */
|
|
358
|
+
rampUpTime?: number;
|
|
359
|
+
/** Test run duration */
|
|
360
|
+
duration?: number;
|
|
417
361
|
}
|
|
418
362
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
363
|
+
/** Optional load test config */
|
|
364
|
+
export declare interface OptionalLoadTestConfigOutput {
|
|
365
|
+
/** Test URL. Provide the complete HTTP URL. For example, http://contoso-app.azurewebsites.net/login */
|
|
366
|
+
endpointUrl?: string;
|
|
367
|
+
/** No of concurrent virtual users */
|
|
368
|
+
virtualUsers?: number;
|
|
369
|
+
/** Ramp up time */
|
|
370
|
+
rampUpTime?: number;
|
|
371
|
+
/** Test run duration */
|
|
372
|
+
duration?: number;
|
|
424
373
|
}
|
|
425
374
|
|
|
426
375
|
/**
|
|
@@ -455,65 +404,77 @@ export declare interface PagingOptions<TResponse> {
|
|
|
455
404
|
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
456
405
|
}
|
|
457
406
|
|
|
407
|
+
/** Pass fail criteria for a test. */
|
|
458
408
|
export declare interface PassFailCriteria {
|
|
459
409
|
/** Map of id and pass fail metrics { id : pass fail metrics }. */
|
|
460
410
|
passFailMetrics?: Record<string, PassFailMetric>;
|
|
461
411
|
}
|
|
462
412
|
|
|
413
|
+
/** Pass fail criteria for a test. */
|
|
463
414
|
export declare interface PassFailCriteriaOutput {
|
|
464
415
|
/** Map of id and pass fail metrics { id : pass fail metrics }. */
|
|
465
416
|
passFailMetrics?: Record<string, PassFailMetricOutput>;
|
|
466
417
|
}
|
|
467
418
|
|
|
419
|
+
/** Pass fail metric */
|
|
468
420
|
export declare interface PassFailMetric {
|
|
469
|
-
/** The client metric on which the criteria should be applied.
|
|
470
|
-
|
|
471
|
-
/** The aggregation function to be applied on the client metric. Allowed functions - ‘percentage’ - for error metric
|
|
472
|
-
aggregate?:
|
|
473
|
-
/** The comparison operator. Supported types
|
|
421
|
+
/** The client metric on which the criteria should be applied. */
|
|
422
|
+
clientMetric?: "response_time_ms" | "latency" | "error" | "requests" | "requests_per_sec";
|
|
423
|
+
/** 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 */
|
|
424
|
+
aggregate?: "count" | "percentage" | "avg" | "p50" | "p90" | "p95" | "p99" | "min" | "max";
|
|
425
|
+
/** The comparison operator. Supported types ‘>’, ‘<’ */
|
|
474
426
|
condition?: string;
|
|
475
|
-
/** Request name for which the Pass fail criteria has to be applied
|
|
427
|
+
/** Request name for which the Pass fail criteria has to be applied */
|
|
476
428
|
requestName?: string;
|
|
477
429
|
/** 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
430
|
value?: number;
|
|
479
|
-
/**
|
|
480
|
-
action?:
|
|
431
|
+
/** Action taken after the threshold is met. Default is ‘continue’. */
|
|
432
|
+
action?: "stop" | "continue";
|
|
481
433
|
/** The actual value of the client metric for the test run. */
|
|
482
434
|
actualValue?: number;
|
|
483
|
-
/** Outcome of the test run.
|
|
484
|
-
result?:
|
|
435
|
+
/** Outcome of the test run. */
|
|
436
|
+
result?: "passed" | "undetermined" | "failed";
|
|
485
437
|
}
|
|
486
438
|
|
|
439
|
+
/** Pass fail metric */
|
|
487
440
|
export declare interface PassFailMetricOutput {
|
|
488
|
-
/** The client metric on which the criteria should be applied.
|
|
489
|
-
|
|
490
|
-
/** The aggregation function to be applied on the client metric. Allowed functions - ‘percentage’ - for error metric
|
|
491
|
-
aggregate?:
|
|
492
|
-
/** The comparison operator. Supported types
|
|
441
|
+
/** The client metric on which the criteria should be applied. */
|
|
442
|
+
clientMetric?: "response_time_ms" | "latency" | "error" | "requests" | "requests_per_sec";
|
|
443
|
+
/** 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 */
|
|
444
|
+
aggregate?: "count" | "percentage" | "avg" | "p50" | "p90" | "p95" | "p99" | "min" | "max";
|
|
445
|
+
/** The comparison operator. Supported types ‘>’, ‘<’ */
|
|
493
446
|
condition?: string;
|
|
494
|
-
/** Request name for which the Pass fail criteria has to be applied
|
|
447
|
+
/** Request name for which the Pass fail criteria has to be applied */
|
|
495
448
|
requestName?: string;
|
|
496
449
|
/** 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
450
|
value?: number;
|
|
498
|
-
/**
|
|
499
|
-
action?:
|
|
451
|
+
/** Action taken after the threshold is met. Default is ‘continue’. */
|
|
452
|
+
action?: "stop" | "continue";
|
|
500
453
|
/** The actual value of the client metric for the test run. */
|
|
501
454
|
actualValue?: number;
|
|
502
|
-
/** Outcome of the test run.
|
|
503
|
-
result?:
|
|
455
|
+
/** Outcome of the test run. */
|
|
456
|
+
result?: "passed" | "undetermined" | "failed";
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare interface PolledOperationOptions {
|
|
460
|
+
/**
|
|
461
|
+
* Time delay between poll requests, in milliseconds.
|
|
462
|
+
*/
|
|
463
|
+
updateIntervalInMs?: number;
|
|
504
464
|
}
|
|
505
465
|
|
|
506
|
-
|
|
507
|
-
|
|
466
|
+
/** Associated metric definition for particular metrics of the azure resource ( Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition). */
|
|
467
|
+
export declare interface ResourceMetric {
|
|
468
|
+
/** Unique name for metric. */
|
|
508
469
|
id?: string;
|
|
509
|
-
/** Azure resource
|
|
470
|
+
/** Azure resource id. */
|
|
510
471
|
resourceId: string;
|
|
511
472
|
/** Metric name space. */
|
|
512
|
-
|
|
473
|
+
metricNamespace: string;
|
|
513
474
|
/** Metric description. */
|
|
514
475
|
displayDescription?: string;
|
|
515
|
-
/**
|
|
516
|
-
name:
|
|
476
|
+
/** The invariant value of metric name */
|
|
477
|
+
name: string;
|
|
517
478
|
/** Metric aggregation. */
|
|
518
479
|
aggregation: string;
|
|
519
480
|
/** Metric unit. */
|
|
@@ -522,17 +483,18 @@ export declare interface ResourceMetricModel {
|
|
|
522
483
|
resourceType: string;
|
|
523
484
|
}
|
|
524
485
|
|
|
525
|
-
|
|
526
|
-
|
|
486
|
+
/** Associated metric definition for particular metrics of the azure resource ( Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition). */
|
|
487
|
+
export declare interface ResourceMetricOutput {
|
|
488
|
+
/** Unique name for metric. */
|
|
527
489
|
id?: string;
|
|
528
|
-
/** Azure resource
|
|
490
|
+
/** Azure resource id. */
|
|
529
491
|
resourceId: string;
|
|
530
492
|
/** Metric name space. */
|
|
531
|
-
|
|
493
|
+
metricNamespace: string;
|
|
532
494
|
/** Metric description. */
|
|
533
495
|
displayDescription?: string;
|
|
534
|
-
/**
|
|
535
|
-
name:
|
|
496
|
+
/** The invariant value of metric name */
|
|
497
|
+
name: string;
|
|
536
498
|
/** Metric aggregation. */
|
|
537
499
|
aggregation: string;
|
|
538
500
|
/** Metric unit. */
|
|
@@ -542,902 +504,1207 @@ export declare interface ResourceMetricModelOutput {
|
|
|
542
504
|
}
|
|
543
505
|
|
|
544
506
|
export declare interface Routes {
|
|
545
|
-
/** Resource for '/
|
|
546
|
-
(path: "/
|
|
547
|
-
/** Resource for '/
|
|
548
|
-
(path: "/
|
|
549
|
-
/** Resource for '/
|
|
550
|
-
(path: "/
|
|
551
|
-
/** Resource for '/
|
|
552
|
-
(path: "/
|
|
553
|
-
/** Resource for '/
|
|
554
|
-
(path: "/
|
|
555
|
-
/** Resource for '/
|
|
556
|
-
(path: "/
|
|
557
|
-
/** Resource for '/
|
|
558
|
-
(path: "/
|
|
559
|
-
/** Resource for '/
|
|
560
|
-
(path: "/
|
|
561
|
-
/** Resource for '/
|
|
562
|
-
(path: "/
|
|
563
|
-
/** Resource for '/
|
|
564
|
-
(path: "/
|
|
565
|
-
/** Resource for '/
|
|
566
|
-
(path: "/
|
|
567
|
-
/** Resource for '/
|
|
568
|
-
(path: "/
|
|
569
|
-
/** Resource for '/
|
|
570
|
-
(path: "/
|
|
571
|
-
/** Resource for '/
|
|
572
|
-
(path: "/
|
|
573
|
-
/** Resource for '/
|
|
574
|
-
(path: "/
|
|
575
|
-
/** Resource for '/
|
|
576
|
-
(path: "/
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
507
|
+
/** Resource for '/tests/\{testId\}' has methods for the following verbs: patch, delete, get */
|
|
508
|
+
(path: "/tests/{testId}", testId: string): TestCreateOrUpdate;
|
|
509
|
+
/** Resource for '/tests' has methods for the following verbs: get */
|
|
510
|
+
(path: "/tests"): TestList;
|
|
511
|
+
/** Resource for '/tests/\{testId\}/files/\{fileName\}' has methods for the following verbs: put, get, delete */
|
|
512
|
+
(path: "/tests/{testId}/files/{fileName}", testId: string, fileName: string): TestUploadFile;
|
|
513
|
+
/** Resource for '/tests/\{testId\}/files' has methods for the following verbs: get */
|
|
514
|
+
(path: "/tests/{testId}/files", testId: string): TestListFiles;
|
|
515
|
+
/** Resource for '/tests/\{testId\}/app-components' has methods for the following verbs: patch, get */
|
|
516
|
+
(path: "/tests/{testId}/app-components", testId: string): TestCreateOrUpdateAppComponents;
|
|
517
|
+
/** Resource for '/tests/\{testId\}/server-metrics-config' has methods for the following verbs: patch, get */
|
|
518
|
+
(path: "/tests/{testId}/server-metrics-config", testId: string): TestCreateOrUpdateServerMetricsConfig;
|
|
519
|
+
/** Resource for '/test-runs/\{testRunId\}' has methods for the following verbs: delete, patch, get */
|
|
520
|
+
(path: "/test-runs/{testRunId}", testRunId: string): TestRunDelete;
|
|
521
|
+
/** Resource for '/test-runs/\{testRunId\}/files/\{fileName\}' has methods for the following verbs: get */
|
|
522
|
+
(path: "/test-runs/{testRunId}/files/{fileName}", testRunId: string, fileName: string): TestRunGetFile;
|
|
523
|
+
/** Resource for '/test-runs' has methods for the following verbs: get */
|
|
524
|
+
(path: "/test-runs"): TestRunList;
|
|
525
|
+
/** Resource for '/test-runs/\{testRunId\}:stop' has methods for the following verbs: post */
|
|
526
|
+
(path: "/test-runs/{testRunId}:stop", testRunId: string): TestRunStop;
|
|
527
|
+
/** Resource for '/test-runs/\{testRunId\}/metric-namespaces' has methods for the following verbs: get */
|
|
528
|
+
(path: "/test-runs/{testRunId}/metric-namespaces", testRunId: string): TestRunListMetricNamespaces;
|
|
529
|
+
/** Resource for '/test-runs/\{testRunId\}/metric-definitions' has methods for the following verbs: get */
|
|
530
|
+
(path: "/test-runs/{testRunId}/metric-definitions", testRunId: string): TestRunListMetricDefinitions;
|
|
531
|
+
/** Resource for '/test-runs/\{testRunId\}/metrics' has methods for the following verbs: post */
|
|
532
|
+
(path: "/test-runs/{testRunId}/metrics", testRunId: string): TestRunListMetrics;
|
|
533
|
+
/** Resource for '/test-runs/\{testRunId\}/metric-dimensions/\{name\}/values' has methods for the following verbs: get */
|
|
534
|
+
(path: "/test-runs/{testRunId}/metric-dimensions/{name}/values", testRunId: string, name: string): TestRunListMetricDimensionValues;
|
|
535
|
+
/** Resource for '/test-runs/\{testRunId\}/app-components' has methods for the following verbs: patch, get */
|
|
536
|
+
(path: "/test-runs/{testRunId}/app-components", testRunId: string): TestRunCreateOrUpdateAppComponents;
|
|
537
|
+
/** Resource for '/test-runs/\{testRunId\}/server-metrics-config' has methods for the following verbs: patch, get */
|
|
538
|
+
(path: "/test-runs/{testRunId}/server-metrics-config", testRunId: string): TestRunCreateOrUpdateServerMetricsConfig;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/** Secret */
|
|
542
|
+
export declare interface Secret {
|
|
543
|
+
/** The value of the secret for the respective type */
|
|
581
544
|
value?: string;
|
|
582
|
-
/** Type of secret
|
|
583
|
-
type?:
|
|
545
|
+
/** Type of secret */
|
|
546
|
+
type?: "AKV_SECRET_URI" | "SECRET_VALUE";
|
|
584
547
|
}
|
|
585
548
|
|
|
586
|
-
|
|
587
|
-
|
|
549
|
+
/** Secret */
|
|
550
|
+
export declare interface SecretOutput {
|
|
551
|
+
/** The value of the secret for the respective type */
|
|
588
552
|
value?: string;
|
|
589
|
-
/** Type of secret
|
|
590
|
-
type?:
|
|
553
|
+
/** Type of secret */
|
|
554
|
+
type?: "AKV_SECRET_URI" | "SECRET_VALUE";
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/** Load test model */
|
|
558
|
+
export declare interface Test {
|
|
559
|
+
/** Pass fail criteria for a test. */
|
|
560
|
+
passFailCriteria?: PassFailCriteria;
|
|
561
|
+
/** 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. */
|
|
562
|
+
secrets?: Record<string, Secret>;
|
|
563
|
+
/** Certificates metadata */
|
|
564
|
+
certificate?: CertificateMetadata;
|
|
565
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
566
|
+
environmentVariables?: Record<string, string>;
|
|
567
|
+
/** The load test configuration. */
|
|
568
|
+
loadTestConfiguration?: LoadTestConfiguration;
|
|
569
|
+
/** The input artifacts for the test. */
|
|
570
|
+
inputArtifacts?: TestInputArtifacts;
|
|
571
|
+
/** Unique test name as identifier. */
|
|
572
|
+
testId?: string;
|
|
573
|
+
/** The test description. */
|
|
574
|
+
description?: string;
|
|
575
|
+
/** Display name of a test. */
|
|
576
|
+
displayName?: string;
|
|
577
|
+
/** Subnet ID on which the load test instances should run. */
|
|
578
|
+
subnetId?: string;
|
|
579
|
+
/** Type of the managed identity referencing the Key vault. */
|
|
580
|
+
keyvaultReferenceIdentityType?: string;
|
|
581
|
+
/** Resource Id of the managed identity referencing the Key vault. */
|
|
582
|
+
keyvaultReferenceIdentityId?: string;
|
|
583
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
584
|
+
createdDateTime?: Date | string;
|
|
585
|
+
/** The user that created. */
|
|
586
|
+
createdBy?: string;
|
|
587
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
588
|
+
lastModifiedDateTime?: Date | string;
|
|
589
|
+
/** The user that last modified. */
|
|
590
|
+
lastModifiedBy?: string;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/** Test app component */
|
|
594
|
+
export declare interface TestAppComponents {
|
|
595
|
+
/** Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
596
|
+
components: Record<string, AppComponent>;
|
|
597
|
+
/** Test identifier */
|
|
598
|
+
testId?: string;
|
|
599
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
600
|
+
createdDateTime?: Date | string;
|
|
601
|
+
/** The user that created. */
|
|
602
|
+
createdBy?: string;
|
|
603
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
604
|
+
lastModifiedDateTime?: Date | string;
|
|
605
|
+
/** The user that last modified. */
|
|
606
|
+
lastModifiedBy?: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/** Test app component */
|
|
610
|
+
export declare interface TestAppComponentsOutput {
|
|
611
|
+
/** Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
612
|
+
components: Record<string, AppComponentOutput>;
|
|
613
|
+
/** Test identifier */
|
|
614
|
+
testId?: string;
|
|
615
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
616
|
+
createdDateTime?: string;
|
|
617
|
+
/** The user that created. */
|
|
618
|
+
createdBy?: string;
|
|
619
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
620
|
+
lastModifiedDateTime?: string;
|
|
621
|
+
/** The user that last modified. */
|
|
622
|
+
lastModifiedBy?: string;
|
|
591
623
|
}
|
|
592
624
|
|
|
593
|
-
export declare interface
|
|
594
|
-
/**
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
|
|
600
|
-
/** Errors time series data. */
|
|
601
|
-
errors?: Record<string, Array<TimeSeriesOutput>>;
|
|
625
|
+
export declare interface TestCreateOrUpdate {
|
|
626
|
+
/** Create a new test or update an existing test. */
|
|
627
|
+
patch(options: TestCreateOrUpdateParameters): StreamableMethod<TestCreateOrUpdate200Response | TestCreateOrUpdate201Response | TestCreateOrUpdateDefaultResponse>;
|
|
628
|
+
/** Delete a test by its name. */
|
|
629
|
+
delete(options?: TestDeleteParameters): StreamableMethod<TestDelete204Response | TestDeleteDefaultResponse>;
|
|
630
|
+
/** Get load test details by test name */
|
|
631
|
+
get(options?: TestGetParameters): StreamableMethod<TestGet200Response | TestGetDefaultResponse>;
|
|
602
632
|
}
|
|
603
633
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
localizedValue: string;
|
|
634
|
+
/** Create a new test or update an existing test. */
|
|
635
|
+
export declare interface TestCreateOrUpdate200Response extends HttpResponse {
|
|
636
|
+
status: "200";
|
|
637
|
+
body: TestOutput;
|
|
609
638
|
}
|
|
610
639
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
localizedValue: string;
|
|
640
|
+
/** Create a new test or update an existing test. */
|
|
641
|
+
export declare interface TestCreateOrUpdate201Response extends HttpResponse {
|
|
642
|
+
status: "201";
|
|
643
|
+
body: TestOutput;
|
|
616
644
|
}
|
|
617
645
|
|
|
618
|
-
export declare interface
|
|
619
|
-
/**
|
|
620
|
-
patch(options:
|
|
621
|
-
/** Get
|
|
622
|
-
get(options?:
|
|
623
|
-
/** Delete server metrics configuration by its name */
|
|
624
|
-
delete(options?: ServerMetricsDeleteServerMetricsConfigParameters): StreamableMethod<ServerMetricsDeleteServerMetricsConfig204Response | ServerMetricsDeleteServerMetricsConfigdefaultResponse>;
|
|
646
|
+
export declare interface TestCreateOrUpdateAppComponents {
|
|
647
|
+
/** Associate an app component (collection of azure resources) to a test */
|
|
648
|
+
patch(options: TestCreateOrUpdateAppComponentsParameters): StreamableMethod<TestCreateOrUpdateAppComponents200Response | TestCreateOrUpdateAppComponents201Response | TestCreateOrUpdateAppComponentsDefaultResponse>;
|
|
649
|
+
/** Get associated app component (collection of azure resources) for the given test. */
|
|
650
|
+
get(options?: TestListAppComponentsParameters): StreamableMethod<TestListAppComponents200Response | TestListAppComponentsDefaultResponse>;
|
|
625
651
|
}
|
|
626
652
|
|
|
627
|
-
/**
|
|
628
|
-
export declare interface
|
|
653
|
+
/** Associate an app component (collection of azure resources) to a test */
|
|
654
|
+
export declare interface TestCreateOrUpdateAppComponents200Response extends HttpResponse {
|
|
629
655
|
status: "200";
|
|
630
|
-
body:
|
|
656
|
+
body: TestAppComponentsOutput;
|
|
631
657
|
}
|
|
632
658
|
|
|
633
|
-
/**
|
|
634
|
-
export declare interface
|
|
659
|
+
/** Associate an app component (collection of azure resources) to a test */
|
|
660
|
+
export declare interface TestCreateOrUpdateAppComponents201Response extends HttpResponse {
|
|
635
661
|
status: "201";
|
|
636
|
-
body:
|
|
662
|
+
body: TestAppComponentsOutput;
|
|
637
663
|
}
|
|
638
664
|
|
|
639
|
-
export declare interface
|
|
640
|
-
/**
|
|
641
|
-
body:
|
|
665
|
+
export declare interface TestCreateOrUpdateAppComponentsBodyParam {
|
|
666
|
+
/** App Component model. */
|
|
667
|
+
body: TestAppComponents;
|
|
642
668
|
}
|
|
643
669
|
|
|
644
|
-
export declare interface
|
|
670
|
+
export declare interface TestCreateOrUpdateAppComponentsDefaultHeaders {
|
|
645
671
|
/** The error code for specific error that occurred. */
|
|
646
672
|
"x-ms-error-code"?: string;
|
|
647
673
|
}
|
|
648
674
|
|
|
649
|
-
/**
|
|
650
|
-
export declare interface
|
|
675
|
+
/** Associate an app component (collection of azure resources) to a test */
|
|
676
|
+
export declare interface TestCreateOrUpdateAppComponentsDefaultResponse extends HttpResponse {
|
|
651
677
|
status: string;
|
|
652
678
|
body: ErrorResponseBodyOutput;
|
|
653
|
-
headers: RawHttpHeaders &
|
|
679
|
+
headers: RawHttpHeaders & TestCreateOrUpdateAppComponentsDefaultHeaders;
|
|
654
680
|
}
|
|
655
681
|
|
|
656
|
-
export declare interface
|
|
682
|
+
export declare interface TestCreateOrUpdateAppComponentsMediaTypesParam {
|
|
657
683
|
/** Request content type */
|
|
658
684
|
contentType?: "application/merge-patch+json";
|
|
659
685
|
}
|
|
660
686
|
|
|
661
|
-
export declare type
|
|
687
|
+
export declare type TestCreateOrUpdateAppComponentsParameters = TestCreateOrUpdateAppComponentsMediaTypesParam & TestCreateOrUpdateAppComponentsBodyParam & RequestParameters;
|
|
662
688
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
body: Record<string, unknown>;
|
|
689
|
+
export declare interface TestCreateOrUpdateBodyParam {
|
|
690
|
+
/** Load test model */
|
|
691
|
+
body: Test;
|
|
667
692
|
}
|
|
668
693
|
|
|
669
|
-
export declare interface
|
|
694
|
+
export declare interface TestCreateOrUpdateDefaultHeaders {
|
|
670
695
|
/** The error code for specific error that occurred. */
|
|
671
696
|
"x-ms-error-code"?: string;
|
|
672
697
|
}
|
|
673
698
|
|
|
674
|
-
/**
|
|
675
|
-
export declare interface
|
|
699
|
+
/** Create a new test or update an existing test. */
|
|
700
|
+
export declare interface TestCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
676
701
|
status: string;
|
|
677
702
|
body: ErrorResponseBodyOutput;
|
|
678
|
-
headers: RawHttpHeaders &
|
|
703
|
+
headers: RawHttpHeaders & TestCreateOrUpdateDefaultHeaders;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export declare interface TestCreateOrUpdateMediaTypesParam {
|
|
707
|
+
/** Request content type */
|
|
708
|
+
contentType?: "application/merge-patch+json";
|
|
679
709
|
}
|
|
680
710
|
|
|
681
|
-
export declare type
|
|
711
|
+
export declare type TestCreateOrUpdateParameters = TestCreateOrUpdateMediaTypesParam & TestCreateOrUpdateBodyParam & RequestParameters;
|
|
682
712
|
|
|
683
|
-
export declare interface
|
|
684
|
-
/**
|
|
685
|
-
|
|
713
|
+
export declare interface TestCreateOrUpdateServerMetricsConfig {
|
|
714
|
+
/** Configure server metrics for a test */
|
|
715
|
+
patch(options: TestCreateOrUpdateServerMetricsConfigParameters): StreamableMethod<TestCreateOrUpdateServerMetricsConfig200Response | TestCreateOrUpdateServerMetricsConfig201Response | TestCreateOrUpdateServerMetricsConfigDefaultResponse>;
|
|
716
|
+
/** List server metrics configuration for the given test. */
|
|
717
|
+
get(options?: TestListServerMetricsConfigParameters): StreamableMethod<TestListServerMetricsConfig200Response | TestListServerMetricsConfigDefaultResponse>;
|
|
686
718
|
}
|
|
687
719
|
|
|
688
|
-
/**
|
|
689
|
-
export declare interface
|
|
720
|
+
/** Configure server metrics for a test */
|
|
721
|
+
export declare interface TestCreateOrUpdateServerMetricsConfig200Response extends HttpResponse {
|
|
690
722
|
status: "200";
|
|
691
|
-
body:
|
|
723
|
+
body: TestServerMetricConfigOutput;
|
|
692
724
|
}
|
|
693
725
|
|
|
694
|
-
|
|
726
|
+
/** Configure server metrics for a test */
|
|
727
|
+
export declare interface TestCreateOrUpdateServerMetricsConfig201Response extends HttpResponse {
|
|
728
|
+
status: "201";
|
|
729
|
+
body: TestServerMetricConfigOutput;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export declare interface TestCreateOrUpdateServerMetricsConfigBodyParam {
|
|
733
|
+
/** Server metric configuration model. */
|
|
734
|
+
body: TestServerMetricConfig;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export declare interface TestCreateOrUpdateServerMetricsConfigDefaultHeaders {
|
|
695
738
|
/** The error code for specific error that occurred. */
|
|
696
739
|
"x-ms-error-code"?: string;
|
|
697
740
|
}
|
|
698
741
|
|
|
699
|
-
/**
|
|
700
|
-
export declare interface
|
|
742
|
+
/** Configure server metrics for a test */
|
|
743
|
+
export declare interface TestCreateOrUpdateServerMetricsConfigDefaultResponse extends HttpResponse {
|
|
701
744
|
status: string;
|
|
702
745
|
body: ErrorResponseBodyOutput;
|
|
703
|
-
headers: RawHttpHeaders &
|
|
746
|
+
headers: RawHttpHeaders & TestCreateOrUpdateServerMetricsConfigDefaultHeaders;
|
|
704
747
|
}
|
|
705
748
|
|
|
706
|
-
export declare
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
/** Get server metrics configuration for a test or test run by its name. */
|
|
710
|
-
get(options?: ServerMetricsGetServerMetricsConfigParameters): StreamableMethod<ServerMetricsGetServerMetricsConfig200Response | ServerMetricsGetServerMetricsConfigdefaultResponse>;
|
|
749
|
+
export declare interface TestCreateOrUpdateServerMetricsConfigMediaTypesParam {
|
|
750
|
+
/** Request content type */
|
|
751
|
+
contentType?: "application/merge-patch+json";
|
|
711
752
|
}
|
|
712
753
|
|
|
713
|
-
|
|
714
|
-
export declare interface ServerMetricsGetServerMetricsConfig200Response extends HttpResponse {
|
|
715
|
-
status: "200";
|
|
716
|
-
body: ServerMetricsModelOutput;
|
|
717
|
-
}
|
|
754
|
+
export declare type TestCreateOrUpdateServerMetricsConfigParameters = TestCreateOrUpdateServerMetricsConfigMediaTypesParam & TestCreateOrUpdateServerMetricsConfigBodyParam & RequestParameters;
|
|
718
755
|
|
|
719
|
-
/**
|
|
720
|
-
export declare interface
|
|
721
|
-
status: "
|
|
722
|
-
body:
|
|
756
|
+
/** Delete a test by its name. */
|
|
757
|
+
export declare interface TestDelete204Response extends HttpResponse {
|
|
758
|
+
status: "204";
|
|
759
|
+
body: Record<string, unknown>;
|
|
723
760
|
}
|
|
724
761
|
|
|
725
|
-
export declare interface
|
|
762
|
+
export declare interface TestDeleteDefaultHeaders {
|
|
726
763
|
/** The error code for specific error that occurred. */
|
|
727
764
|
"x-ms-error-code"?: string;
|
|
728
765
|
}
|
|
729
766
|
|
|
730
|
-
/**
|
|
731
|
-
export declare interface
|
|
767
|
+
/** Delete a test by its name. */
|
|
768
|
+
export declare interface TestDeleteDefaultResponse extends HttpResponse {
|
|
732
769
|
status: string;
|
|
733
770
|
body: ErrorResponseBodyOutput;
|
|
734
|
-
headers: RawHttpHeaders &
|
|
771
|
+
headers: RawHttpHeaders & TestDeleteDefaultHeaders;
|
|
735
772
|
}
|
|
736
773
|
|
|
737
|
-
|
|
774
|
+
/** Delete file by the file name for a test */
|
|
775
|
+
export declare interface TestDeleteFile204Response extends HttpResponse {
|
|
776
|
+
status: "204";
|
|
777
|
+
body: Record<string, unknown>;
|
|
778
|
+
}
|
|
738
779
|
|
|
739
|
-
export declare interface
|
|
780
|
+
export declare interface TestDeleteFileDefaultHeaders {
|
|
740
781
|
/** The error code for specific error that occurred. */
|
|
741
782
|
"x-ms-error-code"?: string;
|
|
742
783
|
}
|
|
743
784
|
|
|
744
|
-
/**
|
|
745
|
-
export declare interface
|
|
785
|
+
/** Delete file by the file name for a test */
|
|
786
|
+
export declare interface TestDeleteFileDefaultResponse extends HttpResponse {
|
|
746
787
|
status: string;
|
|
747
788
|
body: ErrorResponseBodyOutput;
|
|
748
|
-
headers: RawHttpHeaders &
|
|
789
|
+
headers: RawHttpHeaders & TestDeleteFileDefaultHeaders;
|
|
749
790
|
}
|
|
750
791
|
|
|
751
|
-
export declare type
|
|
792
|
+
export declare type TestDeleteFileParameters = RequestParameters;
|
|
752
793
|
|
|
753
|
-
export declare
|
|
754
|
-
|
|
794
|
+
export declare type TestDeleteParameters = RequestParameters;
|
|
795
|
+
|
|
796
|
+
/** Get load test details by test name */
|
|
797
|
+
export declare interface TestGet200Response extends HttpResponse {
|
|
798
|
+
status: "200";
|
|
799
|
+
body: TestOutput;
|
|
755
800
|
}
|
|
756
801
|
|
|
757
|
-
export declare interface
|
|
758
|
-
/**
|
|
759
|
-
|
|
760
|
-
/** Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$. */
|
|
761
|
-
testId?: string;
|
|
802
|
+
export declare interface TestGetDefaultHeaders {
|
|
803
|
+
/** The error code for specific error that occurred. */
|
|
804
|
+
"x-ms-error-code"?: string;
|
|
762
805
|
}
|
|
763
806
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
807
|
+
/** Get load test details by test name */
|
|
808
|
+
export declare interface TestGetDefaultResponse extends HttpResponse {
|
|
809
|
+
status: string;
|
|
810
|
+
body: ErrorResponseBodyOutput;
|
|
811
|
+
headers: RawHttpHeaders & TestGetDefaultHeaders;
|
|
767
812
|
}
|
|
768
813
|
|
|
769
|
-
/** Get
|
|
770
|
-
export declare interface
|
|
814
|
+
/** Get test file by the file name. */
|
|
815
|
+
export declare interface TestGetFile200Response extends HttpResponse {
|
|
771
816
|
status: "200";
|
|
772
|
-
body:
|
|
817
|
+
body: FileInfoOutput;
|
|
773
818
|
}
|
|
774
819
|
|
|
775
|
-
export declare interface
|
|
820
|
+
export declare interface TestGetFileDefaultHeaders {
|
|
776
821
|
/** The error code for specific error that occurred. */
|
|
777
822
|
"x-ms-error-code"?: string;
|
|
778
823
|
}
|
|
779
824
|
|
|
780
|
-
/** Get
|
|
781
|
-
export declare interface
|
|
825
|
+
/** Get test file by the file name. */
|
|
826
|
+
export declare interface TestGetFileDefaultResponse extends HttpResponse {
|
|
782
827
|
status: string;
|
|
783
828
|
body: ErrorResponseBodyOutput;
|
|
784
|
-
headers: RawHttpHeaders &
|
|
829
|
+
headers: RawHttpHeaders & TestGetFileDefaultHeaders;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export declare type TestGetFileParameters = RequestParameters;
|
|
833
|
+
|
|
834
|
+
export declare type TestGetParameters = RequestParameters;
|
|
835
|
+
|
|
836
|
+
/** The input artifacts for the test. */
|
|
837
|
+
export declare interface TestInputArtifacts {
|
|
838
|
+
/** File info */
|
|
839
|
+
configFileInfo?: FileInfo;
|
|
840
|
+
/** File info */
|
|
841
|
+
testScriptFileInfo?: FileInfo;
|
|
842
|
+
/** File info */
|
|
843
|
+
userPropFileInfo?: FileInfo;
|
|
844
|
+
/** File info */
|
|
845
|
+
inputArtifactsZipFileInfo?: FileInfo;
|
|
846
|
+
/** Additional supported files for the test run */
|
|
847
|
+
additionalFileInfo?: Array<FileInfo>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/** The input artifacts for the test. */
|
|
851
|
+
export declare interface TestInputArtifactsOutput {
|
|
852
|
+
/** File info */
|
|
853
|
+
configFileInfo?: FileInfoOutput;
|
|
854
|
+
/** File info */
|
|
855
|
+
testScriptFileInfo?: FileInfoOutput;
|
|
856
|
+
/** File info */
|
|
857
|
+
userPropFileInfo?: FileInfoOutput;
|
|
858
|
+
/** File info */
|
|
859
|
+
inputArtifactsZipFileInfo?: FileInfoOutput;
|
|
860
|
+
/** Additional supported files for the test run */
|
|
861
|
+
additionalFileInfo?: Array<FileInfoOutput>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export declare interface TestList {
|
|
865
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
866
|
+
get(options?: TestListParameters): StreamableMethod<TestList200Response | TestListDefaultResponse>;
|
|
785
867
|
}
|
|
786
868
|
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
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>;
|
|
869
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
870
|
+
export declare interface TestList200Response extends HttpResponse {
|
|
871
|
+
status: "200";
|
|
872
|
+
body: TestsListOutput;
|
|
798
873
|
}
|
|
799
874
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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>;
|
|
875
|
+
/** Get associated app component (collection of azure resources) for the given test. */
|
|
876
|
+
export declare interface TestListAppComponents200Response extends HttpResponse {
|
|
877
|
+
status: "200";
|
|
878
|
+
body: TestAppComponentsOutput;
|
|
809
879
|
}
|
|
810
880
|
|
|
811
|
-
export declare interface
|
|
812
|
-
|
|
881
|
+
export declare interface TestListAppComponentsDefaultHeaders {
|
|
882
|
+
/** The error code for specific error that occurred. */
|
|
883
|
+
"x-ms-error-code"?: string;
|
|
813
884
|
}
|
|
814
885
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
886
|
+
/** Get associated app component (collection of azure resources) for the given test. */
|
|
887
|
+
export declare interface TestListAppComponentsDefaultResponse extends HttpResponse {
|
|
888
|
+
status: string;
|
|
889
|
+
body: ErrorResponseBodyOutput;
|
|
890
|
+
headers: RawHttpHeaders & TestListAppComponentsDefaultHeaders;
|
|
820
891
|
}
|
|
821
892
|
|
|
822
|
-
export declare
|
|
823
|
-
/** The input artifacts for the test. */
|
|
824
|
-
inputArtifacts: InputTestArtifactsOutput;
|
|
825
|
-
/** The output artifacts for the test run. */
|
|
826
|
-
outputArtifacts?: OutputTestArtifactsOutput;
|
|
827
|
-
}
|
|
893
|
+
export declare type TestListAppComponentsParameters = RequestParameters;
|
|
828
894
|
|
|
829
|
-
export declare interface
|
|
830
|
-
/**
|
|
831
|
-
|
|
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>;
|
|
895
|
+
export declare interface TestListDefaultHeaders {
|
|
896
|
+
/** The error code for specific error that occurred. */
|
|
897
|
+
"x-ms-error-code"?: string;
|
|
836
898
|
}
|
|
837
899
|
|
|
838
|
-
/**
|
|
839
|
-
export declare interface
|
|
840
|
-
status:
|
|
841
|
-
body:
|
|
900
|
+
/** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */
|
|
901
|
+
export declare interface TestListDefaultResponse extends HttpResponse {
|
|
902
|
+
status: string;
|
|
903
|
+
body: ErrorResponseBodyOutput;
|
|
904
|
+
headers: RawHttpHeaders & TestListDefaultHeaders;
|
|
842
905
|
}
|
|
843
906
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
body: TestModelOutput;
|
|
907
|
+
export declare interface TestListFiles {
|
|
908
|
+
/** Get all test files. */
|
|
909
|
+
get(options?: TestListFilesParameters): StreamableMethod<TestListFiles200Response | TestListFilesDefaultResponse>;
|
|
848
910
|
}
|
|
849
911
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
912
|
+
/** Get all test files. */
|
|
913
|
+
export declare interface TestListFiles200Response extends HttpResponse {
|
|
914
|
+
status: "200";
|
|
915
|
+
body: FileInfoListOutput;
|
|
853
916
|
}
|
|
854
917
|
|
|
855
|
-
export declare interface
|
|
918
|
+
export declare interface TestListFilesDefaultHeaders {
|
|
856
919
|
/** The error code for specific error that occurred. */
|
|
857
920
|
"x-ms-error-code"?: string;
|
|
858
921
|
}
|
|
859
922
|
|
|
860
|
-
/**
|
|
861
|
-
export declare interface
|
|
923
|
+
/** Get all test files. */
|
|
924
|
+
export declare interface TestListFilesDefaultResponse extends HttpResponse {
|
|
862
925
|
status: string;
|
|
863
926
|
body: ErrorResponseBodyOutput;
|
|
864
|
-
headers: RawHttpHeaders &
|
|
927
|
+
headers: RawHttpHeaders & TestListFilesDefaultHeaders;
|
|
865
928
|
}
|
|
866
929
|
|
|
867
|
-
export declare
|
|
868
|
-
|
|
869
|
-
|
|
930
|
+
export declare type TestListFilesParameters = TestListFilesQueryParam & RequestParameters;
|
|
931
|
+
|
|
932
|
+
export declare interface TestListFilesQueryParam {
|
|
933
|
+
queryParameters?: TestListFilesQueryParamProperties;
|
|
870
934
|
}
|
|
871
935
|
|
|
872
|
-
export declare
|
|
936
|
+
export declare interface TestListFilesQueryParamProperties {
|
|
937
|
+
/** Continuation token to get the next page of response */
|
|
938
|
+
continuationToken?: string;
|
|
939
|
+
}
|
|
873
940
|
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
941
|
+
export declare type TestListParameters = TestListQueryParam & RequestParameters;
|
|
942
|
+
|
|
943
|
+
export declare interface TestListQueryParam {
|
|
944
|
+
queryParameters?: TestListQueryParamProperties;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export declare interface TestListQueryParamProperties {
|
|
948
|
+
/** Sort on the supported fields in (field asc/desc) format. eg: lastModifiedDateTime asc. Supported fields - lastModifiedDateTime */
|
|
949
|
+
orderby?: string;
|
|
950
|
+
/** Prefix based, case sensitive search on searchable fields - displayName, createdBy. For example, to search for a test, with display name is Login Test, the search parameter can be Login. */
|
|
951
|
+
search?: string;
|
|
952
|
+
/** Start DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */
|
|
953
|
+
lastModifiedStartTime?: Date | string;
|
|
954
|
+
/** End DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */
|
|
955
|
+
lastModifiedEndTime?: Date | string;
|
|
956
|
+
/** Continuation token to get the next page of response */
|
|
957
|
+
continuationToken?: string;
|
|
958
|
+
/** Number of results in response. */
|
|
959
|
+
maxpagesize?: number;
|
|
878
960
|
}
|
|
879
961
|
|
|
880
|
-
|
|
962
|
+
/** List server metrics configuration for the given test. */
|
|
963
|
+
export declare interface TestListServerMetricsConfig200Response extends HttpResponse {
|
|
964
|
+
status: "200";
|
|
965
|
+
body: TestServerMetricConfigOutput;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export declare interface TestListServerMetricsConfigDefaultHeaders {
|
|
881
969
|
/** The error code for specific error that occurred. */
|
|
882
970
|
"x-ms-error-code"?: string;
|
|
883
971
|
}
|
|
884
972
|
|
|
885
|
-
/**
|
|
886
|
-
export declare interface
|
|
973
|
+
/** List server metrics configuration for the given test. */
|
|
974
|
+
export declare interface TestListServerMetricsConfigDefaultResponse extends HttpResponse {
|
|
887
975
|
status: string;
|
|
888
976
|
body: ErrorResponseBodyOutput;
|
|
889
|
-
headers: RawHttpHeaders &
|
|
977
|
+
headers: RawHttpHeaders & TestListServerMetricsConfigDefaultHeaders;
|
|
890
978
|
}
|
|
891
979
|
|
|
892
|
-
export declare type
|
|
980
|
+
export declare type TestListServerMetricsConfigParameters = RequestParameters;
|
|
893
981
|
|
|
894
|
-
/**
|
|
895
|
-
export declare interface
|
|
896
|
-
|
|
897
|
-
|
|
982
|
+
/** Load test model */
|
|
983
|
+
export declare interface TestOutput {
|
|
984
|
+
/** Pass fail criteria for a test. */
|
|
985
|
+
passFailCriteria?: PassFailCriteriaOutput;
|
|
986
|
+
/** 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. */
|
|
987
|
+
secrets?: Record<string, SecretOutput>;
|
|
988
|
+
/** Certificates metadata */
|
|
989
|
+
certificate?: CertificateMetadataOutput;
|
|
990
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
991
|
+
environmentVariables?: Record<string, string>;
|
|
992
|
+
/** The load test configuration. */
|
|
993
|
+
loadTestConfiguration?: LoadTestConfigurationOutput;
|
|
994
|
+
/** The input artifacts for the test. */
|
|
995
|
+
inputArtifacts?: TestInputArtifactsOutput;
|
|
996
|
+
/** Unique test name as identifier. */
|
|
997
|
+
testId?: string;
|
|
998
|
+
/** The test description. */
|
|
999
|
+
description?: string;
|
|
1000
|
+
/** Display name of a test. */
|
|
1001
|
+
displayName?: string;
|
|
1002
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1003
|
+
subnetId?: string;
|
|
1004
|
+
/** Type of the managed identity referencing the Key vault. */
|
|
1005
|
+
keyvaultReferenceIdentityType?: string;
|
|
1006
|
+
/** Resource Id of the managed identity referencing the Key vault. */
|
|
1007
|
+
keyvaultReferenceIdentityId?: string;
|
|
1008
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1009
|
+
createdDateTime?: string;
|
|
1010
|
+
/** The user that created. */
|
|
1011
|
+
createdBy?: string;
|
|
1012
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1013
|
+
lastModifiedDateTime?: string;
|
|
1014
|
+
/** The user that last modified. */
|
|
1015
|
+
lastModifiedBy?: string;
|
|
898
1016
|
}
|
|
899
1017
|
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
1018
|
+
/** Load test run model */
|
|
1019
|
+
export declare interface TestRun {
|
|
1020
|
+
/** Pass fail criteria for a test. */
|
|
1021
|
+
passFailCriteria?: PassFailCriteria;
|
|
1022
|
+
/** 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. */
|
|
1023
|
+
secrets?: Record<string, Secret>;
|
|
1024
|
+
/** Certificates metadata */
|
|
1025
|
+
certificate?: CertificateMetadata;
|
|
1026
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1027
|
+
environmentVariables?: Record<string, string>;
|
|
1028
|
+
/** Error details if there is any failure in load test run */
|
|
1029
|
+
errorDetails?: Array<ErrorDetails>;
|
|
1030
|
+
/** Test run statistics. */
|
|
1031
|
+
testRunStatistics?: Record<string, TestRunStatistics>;
|
|
1032
|
+
/** The load test configuration. */
|
|
1033
|
+
loadTestConfiguration?: LoadTestConfiguration;
|
|
1034
|
+
/** Collection of test run artifacts */
|
|
1035
|
+
testArtifacts?: TestRunArtifacts;
|
|
1036
|
+
/** Test result for pass/Fail criteria used during the test run. */
|
|
1037
|
+
testResult?: "PASSED" | "NOT_APPLICABLE" | "FAILED";
|
|
1038
|
+
/** Number of virtual users, for which test has been run. */
|
|
1039
|
+
virtualUsers?: number;
|
|
1040
|
+
/** Unique test run name as identifier */
|
|
1041
|
+
testRunId?: string;
|
|
1042
|
+
/** Display name of a testRun. */
|
|
1043
|
+
displayName?: string;
|
|
1044
|
+
/** Associated test Id. */
|
|
1045
|
+
testId?: string;
|
|
1046
|
+
/** The test run description. */
|
|
1047
|
+
description?: string;
|
|
1048
|
+
/** The test run status. */
|
|
1049
|
+
status?: "ACCEPTED" | "NOTSTARTED" | "PROVISIONING" | "PROVISIONED" | "CONFIGURING" | "CONFIGURED" | "EXECUTING" | "EXECUTED" | "DEPROVISIONING" | "DEPROVISIONED" | "DONE" | "CANCELLING" | "CANCELLED" | "FAILED" | "VALIDATION_SUCCESS" | "VALIDATION_FAILURE";
|
|
1050
|
+
/** The test run start DateTime(ISO 8601 literal format). */
|
|
1051
|
+
startDateTime?: Date | string;
|
|
1052
|
+
/** The test run end DateTime(ISO 8601 literal format). */
|
|
1053
|
+
endDateTime?: Date | string;
|
|
1054
|
+
/** Test run initiated time. */
|
|
1055
|
+
executedDateTime?: Date | string;
|
|
1056
|
+
/** Portal url. */
|
|
1057
|
+
portalUrl?: string;
|
|
1058
|
+
/** Test run duration in milliseconds. */
|
|
1059
|
+
duration?: number;
|
|
1060
|
+
/** Subnet ID on which the load test instances should run. */
|
|
1061
|
+
subnetId?: string;
|
|
1062
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1063
|
+
createdDateTime?: Date | string;
|
|
1064
|
+
/** The user that created. */
|
|
1065
|
+
createdBy?: string;
|
|
1066
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1067
|
+
lastModifiedDateTime?: Date | string;
|
|
1068
|
+
/** The user that last modified. */
|
|
1069
|
+
lastModifiedBy?: string;
|
|
903
1070
|
}
|
|
904
1071
|
|
|
905
|
-
/**
|
|
906
|
-
export declare interface
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
1072
|
+
/** Test run app component */
|
|
1073
|
+
export declare interface TestRunAppComponents {
|
|
1074
|
+
/** Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
1075
|
+
components: Record<string, AppComponent>;
|
|
1076
|
+
/** Test run identifier */
|
|
1077
|
+
testRunId?: string;
|
|
1078
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1079
|
+
createdDateTime?: Date | string;
|
|
1080
|
+
/** The user that created. */
|
|
1081
|
+
createdBy?: string;
|
|
1082
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1083
|
+
lastModifiedDateTime?: Date | string;
|
|
1084
|
+
/** The user that last modified. */
|
|
1085
|
+
lastModifiedBy?: string;
|
|
910
1086
|
}
|
|
911
1087
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
1088
|
+
/** Test run app component */
|
|
1089
|
+
export declare interface TestRunAppComponentsOutput {
|
|
1090
|
+
/** Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object } */
|
|
1091
|
+
components: Record<string, AppComponentOutput>;
|
|
1092
|
+
/** Test run identifier */
|
|
1093
|
+
testRunId?: string;
|
|
1094
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1095
|
+
createdDateTime?: string;
|
|
1096
|
+
/** The user that created. */
|
|
1097
|
+
createdBy?: string;
|
|
1098
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1099
|
+
lastModifiedDateTime?: string;
|
|
1100
|
+
/** The user that last modified. */
|
|
1101
|
+
lastModifiedBy?: string;
|
|
918
1102
|
}
|
|
919
1103
|
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1104
|
+
/** Collection of test run artifacts */
|
|
1105
|
+
export declare interface TestRunArtifacts {
|
|
1106
|
+
/** The input artifacts for the test run. */
|
|
1107
|
+
inputArtifacts?: TestRunInputArtifacts;
|
|
1108
|
+
/** The output artifacts for the test run. */
|
|
1109
|
+
outputArtifacts?: TestRunOutputArtifacts;
|
|
923
1110
|
}
|
|
924
1111
|
|
|
925
|
-
/**
|
|
926
|
-
export declare interface
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1112
|
+
/** Collection of test run artifacts */
|
|
1113
|
+
export declare interface TestRunArtifactsOutput {
|
|
1114
|
+
/** The input artifacts for the test run. */
|
|
1115
|
+
inputArtifacts?: TestRunInputArtifactsOutput;
|
|
1116
|
+
/** The output artifacts for the test run. */
|
|
1117
|
+
outputArtifacts?: TestRunOutputArtifactsOutput;
|
|
930
1118
|
}
|
|
931
1119
|
|
|
932
|
-
export declare type
|
|
1120
|
+
export declare type TestRunCompletionPoller = SimplePollerLike<OperationState<TestRunGet200Response>, TestRunGet200Response>;
|
|
933
1121
|
|
|
934
|
-
/**
|
|
935
|
-
export declare interface
|
|
1122
|
+
/** Create and start a new test run with the given name. */
|
|
1123
|
+
export declare interface TestRunCreateOrUpdate200Response extends HttpResponse {
|
|
936
1124
|
status: "200";
|
|
937
|
-
body:
|
|
1125
|
+
body: TestRunOutput;
|
|
938
1126
|
}
|
|
939
1127
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
"
|
|
1128
|
+
/** Create and start a new test run with the given name. */
|
|
1129
|
+
export declare interface TestRunCreateOrUpdate201Response extends HttpResponse {
|
|
1130
|
+
status: "201";
|
|
1131
|
+
body: TestRunOutput;
|
|
943
1132
|
}
|
|
944
1133
|
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
1134
|
+
export declare interface TestRunCreateOrUpdateAppComponents {
|
|
1135
|
+
/** Associate an app component (collection of azure resources) to a test run */
|
|
1136
|
+
patch(options: TestRunCreateOrUpdateAppComponentsParameters): StreamableMethod<TestRunCreateOrUpdateAppComponents200Response | TestRunCreateOrUpdateAppComponents201Response | TestRunCreateOrUpdateAppComponentsDefaultResponse>;
|
|
1137
|
+
/** Get associated app component (collection of azure resources) for the given test run. */
|
|
1138
|
+
get(options?: TestRunListAppComponentsParameters): StreamableMethod<TestRunListAppComponents200Response | TestRunListAppComponentsDefaultResponse>;
|
|
950
1139
|
}
|
|
951
1140
|
|
|
952
|
-
|
|
1141
|
+
/** Associate an app component (collection of azure resources) to a test run */
|
|
1142
|
+
export declare interface TestRunCreateOrUpdateAppComponents200Response extends HttpResponse {
|
|
1143
|
+
status: "200";
|
|
1144
|
+
body: TestRunAppComponentsOutput;
|
|
1145
|
+
}
|
|
953
1146
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1147
|
+
/** Associate an app component (collection of azure resources) to a test run */
|
|
1148
|
+
export declare interface TestRunCreateOrUpdateAppComponents201Response extends HttpResponse {
|
|
1149
|
+
status: "201";
|
|
1150
|
+
body: TestRunAppComponentsOutput;
|
|
957
1151
|
}
|
|
958
1152
|
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
body: TestModelResourceListOutput;
|
|
1153
|
+
export declare interface TestRunCreateOrUpdateAppComponentsBodyParam {
|
|
1154
|
+
/** App Component model. */
|
|
1155
|
+
body: TestRunAppComponents;
|
|
963
1156
|
}
|
|
964
1157
|
|
|
965
|
-
export declare interface
|
|
1158
|
+
export declare interface TestRunCreateOrUpdateAppComponentsDefaultHeaders {
|
|
966
1159
|
/** The error code for specific error that occurred. */
|
|
967
1160
|
"x-ms-error-code"?: string;
|
|
968
1161
|
}
|
|
969
1162
|
|
|
970
|
-
/**
|
|
971
|
-
export declare interface
|
|
1163
|
+
/** Associate an app component (collection of azure resources) to a test run */
|
|
1164
|
+
export declare interface TestRunCreateOrUpdateAppComponentsDefaultResponse extends HttpResponse {
|
|
972
1165
|
status: string;
|
|
973
1166
|
body: ErrorResponseBodyOutput;
|
|
974
|
-
headers: RawHttpHeaders &
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
export declare type TestListLoadTestSearchParameters = TestListLoadTestSearchQueryParam & RequestParameters;
|
|
978
|
-
|
|
979
|
-
export declare interface TestListLoadTestSearchQueryParam {
|
|
980
|
-
queryParameters?: TestListLoadTestSearchQueryParamProperties;
|
|
1167
|
+
headers: RawHttpHeaders & TestRunCreateOrUpdateAppComponentsDefaultHeaders;
|
|
981
1168
|
}
|
|
982
1169
|
|
|
983
|
-
export declare interface
|
|
984
|
-
/**
|
|
985
|
-
|
|
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;
|
|
1170
|
+
export declare interface TestRunCreateOrUpdateAppComponentsMediaTypesParam {
|
|
1171
|
+
/** Request content type */
|
|
1172
|
+
contentType?: "application/merge-patch+json";
|
|
996
1173
|
}
|
|
997
1174
|
|
|
998
|
-
export declare
|
|
999
|
-
/** Get all test files. */
|
|
1000
|
-
get(options?: TestListTestFilesParameters): StreamableMethod<TestListTestFiles200Response | TestListTestFilesdefaultResponse>;
|
|
1001
|
-
}
|
|
1175
|
+
export declare type TestRunCreateOrUpdateAppComponentsParameters = TestRunCreateOrUpdateAppComponentsMediaTypesParam & TestRunCreateOrUpdateAppComponentsBodyParam & RequestParameters;
|
|
1002
1176
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
body: FileUrlListOutput;
|
|
1177
|
+
export declare interface TestRunCreateOrUpdateBodyParam {
|
|
1178
|
+
/** Load test run model */
|
|
1179
|
+
body: TestRun;
|
|
1007
1180
|
}
|
|
1008
1181
|
|
|
1009
|
-
export declare interface
|
|
1182
|
+
export declare interface TestRunCreateOrUpdateDefaultHeaders {
|
|
1010
1183
|
/** The error code for specific error that occurred. */
|
|
1011
1184
|
"x-ms-error-code"?: string;
|
|
1012
1185
|
}
|
|
1013
1186
|
|
|
1014
|
-
/**
|
|
1015
|
-
export declare interface
|
|
1187
|
+
/** Create and start a new test run with the given name. */
|
|
1188
|
+
export declare interface TestRunCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
1016
1189
|
status: string;
|
|
1017
1190
|
body: ErrorResponseBodyOutput;
|
|
1018
|
-
headers: RawHttpHeaders &
|
|
1191
|
+
headers: RawHttpHeaders & TestRunCreateOrUpdateDefaultHeaders;
|
|
1019
1192
|
}
|
|
1020
1193
|
|
|
1021
|
-
export declare
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
queryParameters?: TestListTestFilesQueryParamProperties;
|
|
1194
|
+
export declare interface TestRunCreateOrUpdateMediaTypesParam {
|
|
1195
|
+
/** Request content type */
|
|
1196
|
+
contentType?: "application/merge-patch+json";
|
|
1025
1197
|
}
|
|
1026
1198
|
|
|
1027
|
-
export declare
|
|
1028
|
-
/** Continuation token to get the next page of response. */
|
|
1029
|
-
continuationToken?: string;
|
|
1030
|
-
}
|
|
1199
|
+
export declare type TestRunCreateOrUpdateParameters = TestRunCreateOrUpdateQueryParam & TestRunCreateOrUpdateMediaTypesParam & TestRunCreateOrUpdateBodyParam & RequestParameters;
|
|
1031
1200
|
|
|
1032
|
-
export declare interface
|
|
1033
|
-
|
|
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;
|
|
1201
|
+
export declare interface TestRunCreateOrUpdateQueryParam {
|
|
1202
|
+
queryParameters?: TestRunCreateOrUpdateQueryParamProperties;
|
|
1065
1203
|
}
|
|
1066
1204
|
|
|
1067
|
-
export declare interface
|
|
1068
|
-
/**
|
|
1069
|
-
|
|
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;
|
|
1205
|
+
export declare interface TestRunCreateOrUpdateQueryParamProperties {
|
|
1206
|
+
/** Existing test run identifier that should be rerun, if this is provided, the test will run with the JMX file, configuration and app components from the existing test run. You can override the configuration values for new test run in the request body. */
|
|
1207
|
+
oldTestRunId?: string;
|
|
1100
1208
|
}
|
|
1101
1209
|
|
|
1102
|
-
export declare interface
|
|
1103
|
-
/**
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
|
|
1210
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfig {
|
|
1211
|
+
/** Configure server metrics for a test run */
|
|
1212
|
+
patch(options: TestRunCreateOrUpdateServerMetricsConfigParameters): StreamableMethod<TestRunCreateOrUpdateServerMetricsConfig200Response | TestRunCreateOrUpdateServerMetricsConfig201Response | TestRunCreateOrUpdateServerMetricsConfigDefaultResponse>;
|
|
1213
|
+
/** List server metrics configuration for the given test run. */
|
|
1214
|
+
get(options?: TestRunListServerMetricsConfigParameters): StreamableMethod<TestRunListServerMetricsConfig200Response | TestRunListServerMetricsConfigDefaultResponse>;
|
|
1107
1215
|
}
|
|
1108
1216
|
|
|
1109
|
-
/**
|
|
1110
|
-
export declare interface
|
|
1217
|
+
/** Configure server metrics for a test run */
|
|
1218
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfig200Response extends HttpResponse {
|
|
1111
1219
|
status: "200";
|
|
1112
|
-
body:
|
|
1220
|
+
body: TestRunServerMetricConfigOutput;
|
|
1113
1221
|
}
|
|
1114
1222
|
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1223
|
+
/** Configure server metrics for a test run */
|
|
1224
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfig201Response extends HttpResponse {
|
|
1225
|
+
status: "201";
|
|
1226
|
+
body: TestRunServerMetricConfigOutput;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfigBodyParam {
|
|
1230
|
+
/** Server metric configuration model. */
|
|
1231
|
+
body: TestRunServerMetricConfig;
|
|
1118
1232
|
}
|
|
1119
1233
|
|
|
1120
|
-
export declare interface
|
|
1234
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfigDefaultHeaders {
|
|
1121
1235
|
/** The error code for specific error that occurred. */
|
|
1122
1236
|
"x-ms-error-code"?: string;
|
|
1123
1237
|
}
|
|
1124
1238
|
|
|
1125
|
-
/**
|
|
1126
|
-
export declare interface
|
|
1239
|
+
/** Configure server metrics for a test run */
|
|
1240
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfigDefaultResponse extends HttpResponse {
|
|
1127
1241
|
status: string;
|
|
1128
1242
|
body: ErrorResponseBodyOutput;
|
|
1129
|
-
headers: RawHttpHeaders &
|
|
1243
|
+
headers: RawHttpHeaders & TestRunCreateOrUpdateServerMetricsConfigDefaultHeaders;
|
|
1130
1244
|
}
|
|
1131
1245
|
|
|
1132
|
-
export declare interface
|
|
1246
|
+
export declare interface TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam {
|
|
1133
1247
|
/** Request content type */
|
|
1134
1248
|
contentType?: "application/merge-patch+json";
|
|
1135
1249
|
}
|
|
1136
1250
|
|
|
1137
|
-
export declare type
|
|
1138
|
-
|
|
1139
|
-
export declare interface TestRunCreateOrUpdateTestRunQueryParam {
|
|
1140
|
-
queryParameters?: TestRunCreateOrUpdateTestRunQueryParamProperties;
|
|
1141
|
-
}
|
|
1251
|
+
export declare type TestRunCreateOrUpdateServerMetricsConfigParameters = TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam & TestRunCreateOrUpdateServerMetricsConfigBodyParam & RequestParameters;
|
|
1142
1252
|
|
|
1143
|
-
export declare
|
|
1144
|
-
/** Existing test run Id that should be rerun. */
|
|
1145
|
-
oldTestRunId?: string;
|
|
1146
|
-
}
|
|
1253
|
+
export declare type TestRunCreateOrUpdateSuccessResponse = TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response;
|
|
1147
1254
|
|
|
1148
|
-
export declare interface
|
|
1255
|
+
export declare interface TestRunDelete {
|
|
1149
1256
|
/** Delete a test run by its name. */
|
|
1150
|
-
delete(options?:
|
|
1257
|
+
delete(options?: TestRunDeleteParameters): StreamableMethod<TestRunDelete204Response | TestRunDeleteDefaultResponse>;
|
|
1151
1258
|
/** Create and start a new test run with the given name. */
|
|
1152
|
-
patch(options:
|
|
1259
|
+
patch(options: TestRunCreateOrUpdateParameters): StreamableMethod<TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response | TestRunCreateOrUpdateDefaultResponse>;
|
|
1153
1260
|
/** Get test run details by name. */
|
|
1154
|
-
get(options?:
|
|
1261
|
+
get(options?: TestRunGetParameters): StreamableMethod<TestRunGet200Response | TestRunGetDefaultResponse>;
|
|
1155
1262
|
}
|
|
1156
1263
|
|
|
1157
1264
|
/** Delete a test run by its name. */
|
|
1158
|
-
export declare interface
|
|
1265
|
+
export declare interface TestRunDelete204Response extends HttpResponse {
|
|
1159
1266
|
status: "204";
|
|
1160
1267
|
body: Record<string, unknown>;
|
|
1161
1268
|
}
|
|
1162
1269
|
|
|
1163
|
-
export declare interface
|
|
1270
|
+
export declare interface TestRunDeleteDefaultHeaders {
|
|
1164
1271
|
/** The error code for specific error that occurred. */
|
|
1165
1272
|
"x-ms-error-code"?: string;
|
|
1166
1273
|
}
|
|
1167
1274
|
|
|
1168
1275
|
/** Delete a test run by its name. */
|
|
1169
|
-
export declare interface
|
|
1276
|
+
export declare interface TestRunDeleteDefaultResponse extends HttpResponse {
|
|
1170
1277
|
status: string;
|
|
1171
1278
|
body: ErrorResponseBodyOutput;
|
|
1172
|
-
headers: RawHttpHeaders &
|
|
1279
|
+
headers: RawHttpHeaders & TestRunDeleteDefaultHeaders;
|
|
1173
1280
|
}
|
|
1174
1281
|
|
|
1175
|
-
export declare type
|
|
1282
|
+
export declare type TestRunDeleteParameters = RequestParameters;
|
|
1176
1283
|
|
|
1177
1284
|
/** Get test run details by name. */
|
|
1178
|
-
export declare interface
|
|
1285
|
+
export declare interface TestRunGet200Response extends HttpResponse {
|
|
1179
1286
|
status: "200";
|
|
1180
|
-
body:
|
|
1287
|
+
body: TestRunOutput;
|
|
1181
1288
|
}
|
|
1182
1289
|
|
|
1183
|
-
export declare interface
|
|
1184
|
-
/**
|
|
1185
|
-
|
|
1290
|
+
export declare interface TestRunGetDefaultHeaders {
|
|
1291
|
+
/** The error code for specific error that occurred. */
|
|
1292
|
+
"x-ms-error-code"?: string;
|
|
1186
1293
|
}
|
|
1187
1294
|
|
|
1188
|
-
/** Get
|
|
1189
|
-
export declare interface
|
|
1190
|
-
status:
|
|
1191
|
-
body:
|
|
1295
|
+
/** Get test run details by name. */
|
|
1296
|
+
export declare interface TestRunGetDefaultResponse extends HttpResponse {
|
|
1297
|
+
status: string;
|
|
1298
|
+
body: ErrorResponseBodyOutput;
|
|
1299
|
+
headers: RawHttpHeaders & TestRunGetDefaultHeaders;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
export declare interface TestRunGetFile {
|
|
1303
|
+
/** Get test run file by file name. */
|
|
1304
|
+
get(options?: TestRunGetFileParameters): StreamableMethod<TestRunGetFile200Response | TestRunGetFileDefaultResponse>;
|
|
1192
1305
|
}
|
|
1193
1306
|
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1307
|
+
/** Get test run file by file name. */
|
|
1308
|
+
export declare interface TestRunGetFile200Response extends HttpResponse {
|
|
1309
|
+
status: "200";
|
|
1310
|
+
body: FileInfoOutput;
|
|
1197
1311
|
}
|
|
1198
1312
|
|
|
1199
|
-
export declare interface
|
|
1313
|
+
export declare interface TestRunGetFileDefaultHeaders {
|
|
1200
1314
|
/** The error code for specific error that occurred. */
|
|
1201
1315
|
"x-ms-error-code"?: string;
|
|
1202
1316
|
}
|
|
1203
1317
|
|
|
1204
|
-
/** Get
|
|
1205
|
-
export declare interface
|
|
1318
|
+
/** Get test run file by file name. */
|
|
1319
|
+
export declare interface TestRunGetFileDefaultResponse extends HttpResponse {
|
|
1206
1320
|
status: string;
|
|
1207
1321
|
body: ErrorResponseBodyOutput;
|
|
1208
|
-
headers: RawHttpHeaders &
|
|
1322
|
+
headers: RawHttpHeaders & TestRunGetFileDefaultHeaders;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
export declare type TestRunGetFileParameters = RequestParameters;
|
|
1326
|
+
|
|
1327
|
+
export declare type TestRunGetParameters = RequestParameters;
|
|
1328
|
+
|
|
1329
|
+
/** The input artifacts for the test run. */
|
|
1330
|
+
export declare interface TestRunInputArtifacts {
|
|
1331
|
+
/** File info */
|
|
1332
|
+
configFileInfo?: FileInfo;
|
|
1333
|
+
/** File info */
|
|
1334
|
+
testScriptFileInfo?: FileInfo;
|
|
1335
|
+
/** File info */
|
|
1336
|
+
userPropFileInfo?: FileInfo;
|
|
1337
|
+
/** File info */
|
|
1338
|
+
inputArtifactsZipFileInfo?: FileInfo;
|
|
1339
|
+
/** Additional supported files for the test run */
|
|
1340
|
+
additionalFileInfo?: Array<FileInfo>;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/** The input artifacts for the test run. */
|
|
1344
|
+
export declare interface TestRunInputArtifactsOutput {
|
|
1345
|
+
/** File info */
|
|
1346
|
+
configFileInfo?: FileInfoOutput;
|
|
1347
|
+
/** File info */
|
|
1348
|
+
testScriptFileInfo?: FileInfoOutput;
|
|
1349
|
+
/** File info */
|
|
1350
|
+
userPropFileInfo?: FileInfoOutput;
|
|
1351
|
+
/** File info */
|
|
1352
|
+
inputArtifactsZipFileInfo?: FileInfoOutput;
|
|
1353
|
+
/** Additional supported files for the test run */
|
|
1354
|
+
additionalFileInfo?: Array<FileInfoOutput>;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
export declare interface TestRunList {
|
|
1358
|
+
/** Get all test runs with given filters */
|
|
1359
|
+
get(options?: TestRunListParameters): StreamableMethod<TestRunList200Response | TestRunListDefaultResponse>;
|
|
1209
1360
|
}
|
|
1210
1361
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1362
|
+
/** Get all test runs with given filters */
|
|
1363
|
+
export declare interface TestRunList200Response extends HttpResponse {
|
|
1364
|
+
status: "200";
|
|
1365
|
+
body: TestRunsListOutput;
|
|
1214
1366
|
}
|
|
1215
1367
|
|
|
1216
|
-
/** Get
|
|
1217
|
-
export declare interface
|
|
1368
|
+
/** Get associated app component (collection of azure resources) for the given test run. */
|
|
1369
|
+
export declare interface TestRunListAppComponents200Response extends HttpResponse {
|
|
1218
1370
|
status: "200";
|
|
1219
|
-
body:
|
|
1371
|
+
body: TestRunAppComponentsOutput;
|
|
1220
1372
|
}
|
|
1221
1373
|
|
|
1222
|
-
export declare interface
|
|
1374
|
+
export declare interface TestRunListAppComponentsDefaultHeaders {
|
|
1223
1375
|
/** The error code for specific error that occurred. */
|
|
1224
1376
|
"x-ms-error-code"?: string;
|
|
1225
1377
|
}
|
|
1226
1378
|
|
|
1227
|
-
/** Get
|
|
1228
|
-
export declare interface
|
|
1379
|
+
/** Get associated app component (collection of azure resources) for the given test run. */
|
|
1380
|
+
export declare interface TestRunListAppComponentsDefaultResponse extends HttpResponse {
|
|
1229
1381
|
status: string;
|
|
1230
1382
|
body: ErrorResponseBodyOutput;
|
|
1231
|
-
headers: RawHttpHeaders &
|
|
1383
|
+
headers: RawHttpHeaders & TestRunListAppComponentsDefaultHeaders;
|
|
1232
1384
|
}
|
|
1233
1385
|
|
|
1234
|
-
export declare type
|
|
1386
|
+
export declare type TestRunListAppComponentsParameters = RequestParameters;
|
|
1235
1387
|
|
|
1236
|
-
export declare interface
|
|
1237
|
-
/**
|
|
1238
|
-
|
|
1388
|
+
export declare interface TestRunListDefaultHeaders {
|
|
1389
|
+
/** The error code for specific error that occurred. */
|
|
1390
|
+
"x-ms-error-code"?: string;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/** Get all test runs with given filters */
|
|
1394
|
+
export declare interface TestRunListDefaultResponse extends HttpResponse {
|
|
1395
|
+
status: string;
|
|
1396
|
+
body: ErrorResponseBodyOutput;
|
|
1397
|
+
headers: RawHttpHeaders & TestRunListDefaultHeaders;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
export declare interface TestRunListMetricDefinitions {
|
|
1401
|
+
/** List the metric definitions for a load test run. */
|
|
1402
|
+
get(options: TestRunListMetricDefinitionsParameters): StreamableMethod<TestRunListMetricDefinitions200Response | TestRunListMetricDefinitionsDefaultResponse>;
|
|
1239
1403
|
}
|
|
1240
1404
|
|
|
1241
|
-
|
|
1405
|
+
/** List the metric definitions for a load test run. */
|
|
1406
|
+
export declare interface TestRunListMetricDefinitions200Response extends HttpResponse {
|
|
1407
|
+
status: "200";
|
|
1408
|
+
body: MetricDefinitionCollectionOutput;
|
|
1409
|
+
}
|
|
1242
1410
|
|
|
1243
|
-
export declare interface
|
|
1411
|
+
export declare interface TestRunListMetricDefinitionsDefaultHeaders {
|
|
1244
1412
|
/** The error code for specific error that occurred. */
|
|
1245
1413
|
"x-ms-error-code"?: string;
|
|
1246
1414
|
}
|
|
1247
1415
|
|
|
1248
|
-
/**
|
|
1249
|
-
export declare interface
|
|
1416
|
+
/** List the metric definitions for a load test run. */
|
|
1417
|
+
export declare interface TestRunListMetricDefinitionsDefaultResponse extends HttpResponse {
|
|
1250
1418
|
status: string;
|
|
1251
1419
|
body: ErrorResponseBodyOutput;
|
|
1252
|
-
headers: RawHttpHeaders &
|
|
1420
|
+
headers: RawHttpHeaders & TestRunListMetricDefinitionsDefaultHeaders;
|
|
1253
1421
|
}
|
|
1254
1422
|
|
|
1255
|
-
export declare
|
|
1256
|
-
|
|
1257
|
-
|
|
1423
|
+
export declare type TestRunListMetricDefinitionsParameters = TestRunListMetricDefinitionsQueryParam & RequestParameters;
|
|
1424
|
+
|
|
1425
|
+
export declare interface TestRunListMetricDefinitionsQueryParam {
|
|
1426
|
+
queryParameters: TestRunListMetricDefinitionsQueryParamProperties;
|
|
1258
1427
|
}
|
|
1259
1428
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1429
|
+
export declare interface TestRunListMetricDefinitionsQueryParamProperties {
|
|
1430
|
+
/** Metric namespace to query metric definitions for. */
|
|
1431
|
+
metricNamespace: string;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
export declare interface TestRunListMetricDimensionValues {
|
|
1435
|
+
/** List the dimension values for the given metric dimension name. */
|
|
1436
|
+
get(options: TestRunListMetricDimensionValuesParameters): StreamableMethod<TestRunListMetricDimensionValues200Response | TestRunListMetricDimensionValuesDefaultResponse>;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
/** List the dimension values for the given metric dimension name. */
|
|
1440
|
+
export declare interface TestRunListMetricDimensionValues200Response extends HttpResponse {
|
|
1262
1441
|
status: "200";
|
|
1263
|
-
body:
|
|
1442
|
+
body: DimensionValueListOutput;
|
|
1264
1443
|
}
|
|
1265
1444
|
|
|
1266
|
-
export declare interface
|
|
1445
|
+
export declare interface TestRunListMetricDimensionValuesDefaultHeaders {
|
|
1267
1446
|
/** The error code for specific error that occurred. */
|
|
1268
1447
|
"x-ms-error-code"?: string;
|
|
1269
1448
|
}
|
|
1270
1449
|
|
|
1271
|
-
/**
|
|
1272
|
-
export declare interface
|
|
1450
|
+
/** List the dimension values for the given metric dimension name. */
|
|
1451
|
+
export declare interface TestRunListMetricDimensionValuesDefaultResponse extends HttpResponse {
|
|
1273
1452
|
status: string;
|
|
1274
1453
|
body: ErrorResponseBodyOutput;
|
|
1275
|
-
headers: RawHttpHeaders &
|
|
1454
|
+
headers: RawHttpHeaders & TestRunListMetricDimensionValuesDefaultHeaders;
|
|
1276
1455
|
}
|
|
1277
1456
|
|
|
1278
|
-
export declare type
|
|
1457
|
+
export declare type TestRunListMetricDimensionValuesParameters = TestRunListMetricDimensionValuesQueryParam & RequestParameters;
|
|
1279
1458
|
|
|
1280
|
-
export declare
|
|
1459
|
+
export declare interface TestRunListMetricDimensionValuesQueryParam {
|
|
1460
|
+
queryParameters: TestRunListMetricDimensionValuesQueryParamProperties;
|
|
1461
|
+
}
|
|
1281
1462
|
|
|
1282
|
-
export declare interface
|
|
1283
|
-
/**
|
|
1284
|
-
|
|
1463
|
+
export declare interface TestRunListMetricDimensionValuesQueryParamProperties {
|
|
1464
|
+
/** The interval (i.e. timegrain) of the query. */
|
|
1465
|
+
interval?: "PT5S" | "PT10S" | "PT1M" | "PT5M" | "PT1H";
|
|
1466
|
+
/** Metric name */
|
|
1467
|
+
metricname: string;
|
|
1468
|
+
/** Metric namespace to query metric definitions for. */
|
|
1469
|
+
metricNamespace: string;
|
|
1470
|
+
/** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */
|
|
1471
|
+
timespan: string;
|
|
1285
1472
|
}
|
|
1286
1473
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1474
|
+
export declare interface TestRunListMetricNamespaces {
|
|
1475
|
+
/** List the metric namespaces for a load test run. */
|
|
1476
|
+
get(options?: TestRunListMetricNamespacesParameters): StreamableMethod<TestRunListMetricNamespaces200Response | TestRunListMetricNamespacesDefaultResponse>;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/** List the metric namespaces for a load test run. */
|
|
1480
|
+
export declare interface TestRunListMetricNamespaces200Response extends HttpResponse {
|
|
1289
1481
|
status: "200";
|
|
1290
|
-
body:
|
|
1482
|
+
body: MetricNamespaceCollectionOutput;
|
|
1291
1483
|
}
|
|
1292
1484
|
|
|
1293
|
-
export declare interface
|
|
1485
|
+
export declare interface TestRunListMetricNamespacesDefaultHeaders {
|
|
1294
1486
|
/** The error code for specific error that occurred. */
|
|
1295
1487
|
"x-ms-error-code"?: string;
|
|
1296
1488
|
}
|
|
1297
1489
|
|
|
1298
|
-
/**
|
|
1299
|
-
export declare interface
|
|
1490
|
+
/** List the metric namespaces for a load test run. */
|
|
1491
|
+
export declare interface TestRunListMetricNamespacesDefaultResponse extends HttpResponse {
|
|
1492
|
+
status: string;
|
|
1493
|
+
body: ErrorResponseBodyOutput;
|
|
1494
|
+
headers: RawHttpHeaders & TestRunListMetricNamespacesDefaultHeaders;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
export declare type TestRunListMetricNamespacesParameters = RequestParameters;
|
|
1498
|
+
|
|
1499
|
+
export declare interface TestRunListMetrics {
|
|
1500
|
+
/** List the metric values for a load test run. */
|
|
1501
|
+
post(options: TestRunListMetricsParameters): StreamableMethod<TestRunListMetrics200Response | TestRunListMetricsDefaultResponse>;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/** List the metric values for a load test run. */
|
|
1505
|
+
export declare interface TestRunListMetrics200Response extends HttpResponse {
|
|
1506
|
+
status: "200";
|
|
1507
|
+
body: MetricsOutput;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
export declare interface TestRunListMetricsBodyParam {
|
|
1511
|
+
/** Metric dimension filter */
|
|
1512
|
+
body?: MetricRequestPayload;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
export declare interface TestRunListMetricsDefaultHeaders {
|
|
1516
|
+
/** The error code for specific error that occurred. */
|
|
1517
|
+
"x-ms-error-code"?: string;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/** List the metric values for a load test run. */
|
|
1521
|
+
export declare interface TestRunListMetricsDefaultResponse extends HttpResponse {
|
|
1300
1522
|
status: string;
|
|
1301
1523
|
body: ErrorResponseBodyOutput;
|
|
1302
|
-
headers: RawHttpHeaders &
|
|
1524
|
+
headers: RawHttpHeaders & TestRunListMetricsDefaultHeaders;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
export declare interface TestRunListMetricsMediaTypesParam {
|
|
1528
|
+
/** Request content type */
|
|
1529
|
+
contentType?: "application/json";
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
export declare type TestRunListMetricsParameters = TestRunListMetricsQueryParam & TestRunListMetricsMediaTypesParam & TestRunListMetricsBodyParam & RequestParameters;
|
|
1533
|
+
|
|
1534
|
+
export declare interface TestRunListMetricsQueryParam {
|
|
1535
|
+
queryParameters: TestRunListMetricsQueryParamProperties;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
export declare interface TestRunListMetricsQueryParamProperties {
|
|
1539
|
+
/** The aggregation */
|
|
1540
|
+
aggregation?: string;
|
|
1541
|
+
/** The interval (i.e. timegrain) of the query. */
|
|
1542
|
+
interval?: "PT5S" | "PT10S" | "PT1M" | "PT5M" | "PT1H";
|
|
1543
|
+
/** Metric name */
|
|
1544
|
+
metricname: string;
|
|
1545
|
+
/** Metric namespace to query metric definitions for. */
|
|
1546
|
+
metricNamespace: string;
|
|
1547
|
+
/** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */
|
|
1548
|
+
timespan: string;
|
|
1303
1549
|
}
|
|
1304
1550
|
|
|
1305
|
-
export declare type
|
|
1551
|
+
export declare type TestRunListParameters = TestRunListQueryParam & RequestParameters;
|
|
1306
1552
|
|
|
1307
|
-
export declare interface
|
|
1308
|
-
queryParameters?:
|
|
1553
|
+
export declare interface TestRunListQueryParam {
|
|
1554
|
+
queryParameters?: TestRunListQueryParamProperties;
|
|
1309
1555
|
}
|
|
1310
1556
|
|
|
1311
|
-
export declare interface
|
|
1312
|
-
/** Sort on
|
|
1313
|
-
|
|
1314
|
-
/** Continuation token to get the next page of response
|
|
1557
|
+
export declare interface TestRunListQueryParamProperties {
|
|
1558
|
+
/** Sort on the supported fields in (field asc/desc) format. eg: executedDateTime asc. Supported fields - executedDateTime */
|
|
1559
|
+
orderby?: string;
|
|
1560
|
+
/** Continuation token to get the next page of response */
|
|
1315
1561
|
continuationToken?: string;
|
|
1316
|
-
/**
|
|
1562
|
+
/** Prefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500. */
|
|
1317
1563
|
search?: string;
|
|
1318
|
-
/**
|
|
1564
|
+
/** Unique name of an existing load test. */
|
|
1565
|
+
testId?: string;
|
|
1566
|
+
/** Start DateTime(ISO 8601 literal format) of test-run execution time filter range. */
|
|
1319
1567
|
executionFrom?: Date | string;
|
|
1320
|
-
/**
|
|
1568
|
+
/** End DateTime(ISO 8601 literal format) of test-run execution time filter range. */
|
|
1321
1569
|
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
|
-
*/
|
|
1570
|
+
/** Comma separated list of test run status. */
|
|
1326
1571
|
status?: string;
|
|
1327
1572
|
/** Number of results in response. */
|
|
1328
|
-
|
|
1329
|
-
/** Unique name for load test, must be a valid URL character ^[a-z0-9_-]*$. */
|
|
1330
|
-
testId?: string;
|
|
1573
|
+
maxpagesize?: number;
|
|
1331
1574
|
}
|
|
1332
1575
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
/**
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1576
|
+
/** List server metrics configuration for the given test run. */
|
|
1577
|
+
export declare interface TestRunListServerMetricsConfig200Response extends HttpResponse {
|
|
1578
|
+
status: "200";
|
|
1579
|
+
body: TestRunServerMetricConfigOutput;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
export declare interface TestRunListServerMetricsConfigDefaultHeaders {
|
|
1583
|
+
/** The error code for specific error that occurred. */
|
|
1584
|
+
"x-ms-error-code"?: string;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/** List server metrics configuration for the given test run. */
|
|
1588
|
+
export declare interface TestRunListServerMetricsConfigDefaultResponse extends HttpResponse {
|
|
1589
|
+
status: string;
|
|
1590
|
+
body: ErrorResponseBodyOutput;
|
|
1591
|
+
headers: RawHttpHeaders & TestRunListServerMetricsConfigDefaultHeaders;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
export declare type TestRunListServerMetricsConfigParameters = RequestParameters;
|
|
1595
|
+
|
|
1596
|
+
/** Load test run model */
|
|
1597
|
+
export declare interface TestRunOutput {
|
|
1354
1598
|
/** Pass fail criteria for a test. */
|
|
1355
|
-
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;
|
|
1599
|
+
passFailCriteria?: PassFailCriteriaOutput;
|
|
1373
1600
|
/** 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,
|
|
1601
|
+
secrets?: Record<string, SecretOutput>;
|
|
1602
|
+
/** Certificates metadata */
|
|
1603
|
+
certificate?: CertificateMetadataOutput;
|
|
1375
1604
|
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
1376
1605
|
environmentVariables?: Record<string, string>;
|
|
1377
|
-
/**
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1606
|
+
/** Error details if there is any failure in load test run */
|
|
1607
|
+
errorDetails?: Array<ErrorDetailsOutput>;
|
|
1608
|
+
/** Test run statistics. */
|
|
1609
|
+
testRunStatistics?: Record<string, TestRunStatisticsOutput>;
|
|
1610
|
+
/** The load test configuration. */
|
|
1611
|
+
loadTestConfiguration?: LoadTestConfigurationOutput;
|
|
1612
|
+
/** Collection of test run artifacts */
|
|
1613
|
+
testArtifacts?: TestRunArtifactsOutput;
|
|
1614
|
+
/** Test result for pass/Fail criteria used during the test run. */
|
|
1615
|
+
testResult?: "PASSED" | "NOT_APPLICABLE" | "FAILED";
|
|
1616
|
+
/** Number of virtual users, for which test has been run. */
|
|
1617
|
+
virtualUsers?: number;
|
|
1618
|
+
/** Unique test run name as identifier */
|
|
1385
1619
|
testRunId?: string;
|
|
1386
|
-
/** Display name of a
|
|
1620
|
+
/** Display name of a testRun. */
|
|
1387
1621
|
displayName?: string;
|
|
1388
1622
|
/** Associated test Id. */
|
|
1389
1623
|
testId?: string;
|
|
1390
|
-
/** Load test resource Id. */
|
|
1391
|
-
resourceId?: string;
|
|
1392
1624
|
/** The test run description. */
|
|
1393
1625
|
description?: string;
|
|
1394
1626
|
/** The test run status. */
|
|
1395
|
-
status?:
|
|
1627
|
+
status?: "ACCEPTED" | "NOTSTARTED" | "PROVISIONING" | "PROVISIONED" | "CONFIGURING" | "CONFIGURED" | "EXECUTING" | "EXECUTED" | "DEPROVISIONING" | "DEPROVISIONED" | "DONE" | "CANCELLING" | "CANCELLED" | "FAILED" | "VALIDATION_SUCCESS" | "VALIDATION_FAILURE";
|
|
1396
1628
|
/** The test run start DateTime(ISO 8601 literal format). */
|
|
1397
1629
|
startDateTime?: string;
|
|
1398
1630
|
/** The test run end DateTime(ISO 8601 literal format). */
|
|
1399
1631
|
endDateTime?: string;
|
|
1400
|
-
/**
|
|
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 */
|
|
1632
|
+
/** Test run initiated time. */
|
|
1408
1633
|
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
1634
|
/** Portal url. */
|
|
1422
1635
|
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
1636
|
/** Test run duration in milliseconds. */
|
|
1428
1637
|
duration?: number;
|
|
1429
1638
|
/** Subnet ID on which the load test instances should run. */
|
|
1430
1639
|
subnetId?: string;
|
|
1640
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1641
|
+
createdDateTime?: string;
|
|
1642
|
+
/** The user that created. */
|
|
1643
|
+
createdBy?: string;
|
|
1644
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1645
|
+
lastModifiedDateTime?: string;
|
|
1646
|
+
/** The user that last modified. */
|
|
1647
|
+
lastModifiedBy?: string;
|
|
1431
1648
|
}
|
|
1432
1649
|
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1650
|
+
/** The output artifacts for the test run. */
|
|
1651
|
+
export declare interface TestRunOutputArtifacts {
|
|
1652
|
+
/** File info */
|
|
1653
|
+
resultFileInfo?: FileInfo;
|
|
1654
|
+
/** File info */
|
|
1655
|
+
logsFileInfo?: FileInfo;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/** The output artifacts for the test run. */
|
|
1659
|
+
export declare interface TestRunOutputArtifactsOutput {
|
|
1660
|
+
/** File info */
|
|
1661
|
+
resultFileInfo?: FileInfoOutput;
|
|
1662
|
+
/** File info */
|
|
1663
|
+
logsFileInfo?: FileInfoOutput;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
/** Test run server metrics configuration */
|
|
1667
|
+
export declare interface TestRunServerMetricConfig {
|
|
1668
|
+
/** Test run identifier */
|
|
1669
|
+
testRunId?: string;
|
|
1670
|
+
/** Azure resource metrics collection {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
1671
|
+
metrics?: Record<string, ResourceMetric>;
|
|
1672
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1673
|
+
createdDateTime?: Date | string;
|
|
1674
|
+
/** The user that created. */
|
|
1675
|
+
createdBy?: string;
|
|
1676
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1677
|
+
lastModifiedDateTime?: Date | string;
|
|
1678
|
+
/** The user that last modified. */
|
|
1679
|
+
lastModifiedBy?: string;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
/** Test run server metrics configuration */
|
|
1683
|
+
export declare interface TestRunServerMetricConfigOutput {
|
|
1684
|
+
/** Test run identifier */
|
|
1685
|
+
testRunId?: string;
|
|
1686
|
+
/** Azure resource metrics collection {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
1687
|
+
metrics?: Record<string, ResourceMetricOutput>;
|
|
1688
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1689
|
+
createdDateTime?: string;
|
|
1690
|
+
/** The user that created. */
|
|
1691
|
+
createdBy?: string;
|
|
1692
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1693
|
+
lastModifiedDateTime?: string;
|
|
1694
|
+
/** The user that last modified. */
|
|
1695
|
+
lastModifiedBy?: string;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/** Collection of test runs */
|
|
1699
|
+
export declare interface TestRunsListOutput {
|
|
1700
|
+
/** List of test runs */
|
|
1701
|
+
value: Array<TestRunOutput>;
|
|
1702
|
+
/** Link for the next list of test runs in case of paginated results, if applicable */
|
|
1437
1703
|
nextLink?: string;
|
|
1438
1704
|
}
|
|
1439
1705
|
|
|
1440
|
-
|
|
1706
|
+
/** Test run statistics. */
|
|
1707
|
+
export declare interface TestRunStatistics {
|
|
1441
1708
|
/** Transaction name. */
|
|
1442
1709
|
transaction?: string;
|
|
1443
1710
|
/** Sampler count. */
|
|
@@ -1464,11 +1731,12 @@ export declare interface TestRunStatisticsModel {
|
|
|
1464
1731
|
throughput?: number;
|
|
1465
1732
|
/** Received network bytes. */
|
|
1466
1733
|
receivedKBytesPerSec?: number;
|
|
1467
|
-
/**
|
|
1734
|
+
/** Send network bytes. */
|
|
1468
1735
|
sentKBytesPerSec?: number;
|
|
1469
1736
|
}
|
|
1470
1737
|
|
|
1471
|
-
|
|
1738
|
+
/** Test run statistics. */
|
|
1739
|
+
export declare interface TestRunStatisticsOutput {
|
|
1472
1740
|
/** Transaction name. */
|
|
1473
1741
|
transaction?: string;
|
|
1474
1742
|
/** Sampler count. */
|
|
@@ -1495,103 +1763,135 @@ export declare interface TestRunStatisticsModelOutput {
|
|
|
1495
1763
|
throughput?: number;
|
|
1496
1764
|
/** Received network bytes. */
|
|
1497
1765
|
receivedKBytesPerSec?: number;
|
|
1498
|
-
/**
|
|
1766
|
+
/** Send network bytes. */
|
|
1499
1767
|
sentKBytesPerSec?: number;
|
|
1500
1768
|
}
|
|
1501
1769
|
|
|
1502
|
-
export declare interface
|
|
1770
|
+
export declare interface TestRunStop {
|
|
1503
1771
|
/** Stop test run by name. */
|
|
1504
|
-
post(options?:
|
|
1772
|
+
post(options?: TestRunStopParameters): StreamableMethod<TestRunStop200Response | TestRunStopDefaultResponse>;
|
|
1505
1773
|
}
|
|
1506
1774
|
|
|
1507
1775
|
/** Stop test run by name. */
|
|
1508
|
-
export declare interface
|
|
1776
|
+
export declare interface TestRunStop200Response extends HttpResponse {
|
|
1509
1777
|
status: "200";
|
|
1510
|
-
body:
|
|
1778
|
+
body: TestRunOutput;
|
|
1511
1779
|
}
|
|
1512
1780
|
|
|
1513
|
-
export declare interface
|
|
1781
|
+
export declare interface TestRunStopDefaultHeaders {
|
|
1514
1782
|
/** The error code for specific error that occurred. */
|
|
1515
1783
|
"x-ms-error-code"?: string;
|
|
1516
1784
|
}
|
|
1517
1785
|
|
|
1518
1786
|
/** Stop test run by name. */
|
|
1519
|
-
export declare interface
|
|
1787
|
+
export declare interface TestRunStopDefaultResponse extends HttpResponse {
|
|
1520
1788
|
status: string;
|
|
1521
1789
|
body: ErrorResponseBodyOutput;
|
|
1522
|
-
headers: RawHttpHeaders &
|
|
1790
|
+
headers: RawHttpHeaders & TestRunStopDefaultHeaders;
|
|
1523
1791
|
}
|
|
1524
1792
|
|
|
1525
|
-
export declare type
|
|
1793
|
+
export declare type TestRunStopParameters = RequestParameters;
|
|
1526
1794
|
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1795
|
+
/** Test server metrics configuration */
|
|
1796
|
+
export declare interface TestServerMetricConfig {
|
|
1797
|
+
/** Test identifier */
|
|
1798
|
+
testId?: string;
|
|
1799
|
+
/** Azure resource metrics collection {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
1800
|
+
metrics?: Record<string, ResourceMetric>;
|
|
1801
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1802
|
+
createdDateTime?: Date | string;
|
|
1803
|
+
/** The user that created. */
|
|
1804
|
+
createdBy?: string;
|
|
1805
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1806
|
+
lastModifiedDateTime?: Date | string;
|
|
1807
|
+
/** The user that last modified. */
|
|
1808
|
+
lastModifiedBy?: string;
|
|
1534
1809
|
}
|
|
1535
1810
|
|
|
1536
|
-
/**
|
|
1537
|
-
export declare interface
|
|
1538
|
-
|
|
1539
|
-
|
|
1811
|
+
/** Test server metrics configuration */
|
|
1812
|
+
export declare interface TestServerMetricConfigOutput {
|
|
1813
|
+
/** Test identifier */
|
|
1814
|
+
testId?: string;
|
|
1815
|
+
/** Azure resource metrics collection {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id). */
|
|
1816
|
+
metrics?: Record<string, ResourceMetricOutput>;
|
|
1817
|
+
/** The creation datetime(ISO 8601 literal format). */
|
|
1818
|
+
createdDateTime?: string;
|
|
1819
|
+
/** The user that created. */
|
|
1820
|
+
createdBy?: string;
|
|
1821
|
+
/** The last Modified datetime(ISO 8601 literal format). */
|
|
1822
|
+
lastModifiedDateTime?: string;
|
|
1823
|
+
/** The user that last modified. */
|
|
1824
|
+
lastModifiedBy?: string;
|
|
1540
1825
|
}
|
|
1541
1826
|
|
|
1542
|
-
|
|
1543
|
-
|
|
1827
|
+
/** Collection of tests */
|
|
1828
|
+
export declare interface TestsListOutput {
|
|
1829
|
+
/** List of tests */
|
|
1830
|
+
value: Array<TestOutput>;
|
|
1831
|
+
/** Link for the next list of tests in case of paginated results, if applicable */
|
|
1832
|
+
nextLink?: string;
|
|
1544
1833
|
}
|
|
1545
1834
|
|
|
1546
|
-
export declare interface
|
|
1547
|
-
/**
|
|
1548
|
-
|
|
1835
|
+
export declare interface TestUploadFile {
|
|
1836
|
+
/** 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 application/octet-stream. */
|
|
1837
|
+
put(options: TestUploadFileParameters): StreamableMethod<TestUploadFile201Response | TestUploadFileDefaultResponse>;
|
|
1838
|
+
/** Get test file by the file name. */
|
|
1839
|
+
get(options?: TestGetFileParameters): StreamableMethod<TestGetFile200Response | TestGetFileDefaultResponse>;
|
|
1840
|
+
/** Delete file by the file name for a test */
|
|
1841
|
+
delete(options?: TestDeleteFileParameters): StreamableMethod<TestDeleteFile204Response | TestDeleteFileDefaultResponse>;
|
|
1549
1842
|
}
|
|
1550
1843
|
|
|
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
|
|
1552
|
-
export declare interface
|
|
1553
|
-
status:
|
|
1554
|
-
body:
|
|
1555
|
-
headers: RawHttpHeaders & TestUploadTestFiledefaultHeaders;
|
|
1844
|
+
/** 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 application/octet-stream. */
|
|
1845
|
+
export declare interface TestUploadFile201Response extends HttpResponse {
|
|
1846
|
+
status: "201";
|
|
1847
|
+
body: FileInfoOutput;
|
|
1556
1848
|
}
|
|
1557
1849
|
|
|
1558
|
-
export declare interface
|
|
1850
|
+
export declare interface TestUploadFileBodyParam {
|
|
1559
1851
|
/**
|
|
1560
|
-
* The file
|
|
1852
|
+
* The file content as application/octet-stream.
|
|
1561
1853
|
*
|
|
1562
1854
|
* Value may contain any sequence of octets
|
|
1563
1855
|
*/
|
|
1564
|
-
|
|
1856
|
+
body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
|
|
1565
1857
|
}
|
|
1566
1858
|
|
|
1567
|
-
export declare interface
|
|
1568
|
-
/**
|
|
1569
|
-
|
|
1859
|
+
export declare interface TestUploadFileDefaultHeaders {
|
|
1860
|
+
/** The error code for specific error that occurred. */
|
|
1861
|
+
"x-ms-error-code"?: string;
|
|
1570
1862
|
}
|
|
1571
1863
|
|
|
1572
|
-
|
|
1864
|
+
/** 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 application/octet-stream. */
|
|
1865
|
+
export declare interface TestUploadFileDefaultResponse extends HttpResponse {
|
|
1866
|
+
status: string;
|
|
1867
|
+
body: ErrorResponseBodyOutput;
|
|
1868
|
+
headers: RawHttpHeaders & TestUploadFileDefaultHeaders;
|
|
1869
|
+
}
|
|
1573
1870
|
|
|
1574
|
-
export declare interface
|
|
1575
|
-
|
|
1871
|
+
export declare interface TestUploadFileMediaTypesParam {
|
|
1872
|
+
/** Request content type */
|
|
1873
|
+
contentType?: "application/octet-stream";
|
|
1576
1874
|
}
|
|
1577
1875
|
|
|
1578
|
-
export declare
|
|
1579
|
-
|
|
1580
|
-
|
|
1876
|
+
export declare type TestUploadFileParameters = TestUploadFileQueryParam & TestUploadFileMediaTypesParam & TestUploadFileBodyParam & RequestParameters;
|
|
1877
|
+
|
|
1878
|
+
export declare interface TestUploadFileQueryParam {
|
|
1879
|
+
queryParameters?: TestUploadFileQueryParamProperties;
|
|
1581
1880
|
}
|
|
1582
1881
|
|
|
1583
|
-
export declare interface
|
|
1584
|
-
/**
|
|
1585
|
-
|
|
1586
|
-
/** end DateTime(ISO 8601 literal format) for the requested client metrics filter. */
|
|
1587
|
-
endTime?: string;
|
|
1882
|
+
export declare interface TestUploadFileQueryParamProperties {
|
|
1883
|
+
/** File type */
|
|
1884
|
+
fileType?: "JMX_FILE" | "USER_PROPERTIES" | "ADDITIONAL_ARTIFACTS";
|
|
1588
1885
|
}
|
|
1589
1886
|
|
|
1590
|
-
export declare
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1887
|
+
export declare type TestUploadFileSuccessResponse = TestUploadFile201Response;
|
|
1888
|
+
|
|
1889
|
+
/** The time series returned when a data query is performed. */
|
|
1890
|
+
export declare interface TimeSeriesElementOutput {
|
|
1891
|
+
/** An array of data points representing the metric values. */
|
|
1892
|
+
data?: Array<MetricValueOutput>;
|
|
1893
|
+
/** The dimension values */
|
|
1894
|
+
dimensionValues?: Array<DimensionValueOutput>;
|
|
1595
1895
|
}
|
|
1596
1896
|
|
|
1597
1897
|
export { }
|