@azure-rest/load-testing 1.1.0-beta.1 → 1.2.0-beta.1

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.
Files changed (200) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +1 -1
  3. package/README.md +12 -13
  4. package/dist/browser/azureLoadTesting.js +14 -12
  5. package/dist/browser/azureLoadTesting.js.map +1 -1
  6. package/dist/browser/clientDefinitions.d.ts +66 -34
  7. package/dist/browser/clientDefinitions.js.map +1 -1
  8. package/dist/browser/getFileValidationPoller.js +16 -11
  9. package/dist/browser/getFileValidationPoller.js.map +1 -1
  10. package/dist/browser/getTestProfileRunCompletionPoller.js +16 -11
  11. package/dist/browser/getTestProfileRunCompletionPoller.js.map +1 -1
  12. package/dist/browser/getTestRunCompletionPoller.js +16 -11
  13. package/dist/browser/getTestRunCompletionPoller.js.map +1 -1
  14. package/dist/browser/index.d.ts +6 -6
  15. package/dist/browser/index.js +1 -7
  16. package/dist/browser/index.js.map +1 -1
  17. package/dist/browser/isUnexpected.d.ts +15 -9
  18. package/dist/browser/isUnexpected.js +21 -13
  19. package/dist/browser/isUnexpected.js.map +1 -1
  20. package/dist/browser/models.d.ts +205 -172
  21. package/dist/browser/models.js.map +1 -1
  22. package/dist/browser/outputModels.d.ts +290 -208
  23. package/dist/browser/outputModels.js.map +1 -1
  24. package/dist/browser/paginateHelper.js +43 -73
  25. package/dist/browser/paginateHelper.js.map +1 -1
  26. package/dist/browser/parameters.d.ts +107 -66
  27. package/dist/browser/parameters.js.map +1 -1
  28. package/dist/browser/pollingHelper.d.ts +82 -4
  29. package/dist/browser/pollingHelper.js +119 -15
  30. package/dist/browser/pollingHelper.js.map +1 -1
  31. package/dist/browser/responses.d.ts +234 -121
  32. package/dist/browser/responses.js.map +1 -1
  33. package/dist/commonjs/azureLoadTesting.js +53 -45
  34. package/dist/commonjs/azureLoadTesting.js.map +7 -1
  35. package/dist/commonjs/clientDefinitions.d.ts +66 -34
  36. package/dist/commonjs/clientDefinitions.js +15 -5
  37. package/dist/commonjs/clientDefinitions.js.map +7 -1
  38. package/dist/commonjs/getFileValidationPoller.js +151 -137
  39. package/dist/commonjs/getFileValidationPoller.js.map +7 -1
  40. package/dist/commonjs/getTestProfileRunCompletionPoller.js +139 -127
  41. package/dist/commonjs/getTestProfileRunCompletionPoller.js.map +7 -1
  42. package/dist/commonjs/getTestRunCompletionPoller.js +139 -125
  43. package/dist/commonjs/getTestRunCompletionPoller.js.map +7 -1
  44. package/dist/commonjs/index.d.ts +6 -6
  45. package/dist/commonjs/index.js +46 -20
  46. package/dist/commonjs/index.js.map +7 -1
  47. package/dist/commonjs/isUnexpected.d.ts +15 -9
  48. package/dist/commonjs/isUnexpected.js +118 -105
  49. package/dist/commonjs/isUnexpected.js.map +7 -1
  50. package/dist/commonjs/logger.js +28 -8
  51. package/dist/commonjs/logger.js.map +7 -1
  52. package/dist/commonjs/models.d.ts +205 -172
  53. package/dist/commonjs/models.js +15 -5
  54. package/dist/commonjs/models.js.map +7 -1
  55. package/dist/commonjs/outputModels.d.ts +290 -208
  56. package/dist/commonjs/outputModels.js +15 -5
  57. package/dist/commonjs/outputModels.js.map +7 -1
  58. package/dist/commonjs/paginateHelper.js +118 -158
  59. package/dist/commonjs/paginateHelper.js.map +7 -1
  60. package/dist/commonjs/parameters.d.ts +107 -66
  61. package/dist/commonjs/parameters.js +15 -5
  62. package/dist/commonjs/parameters.js.map +7 -1
  63. package/dist/commonjs/pollingHelper.d.ts +82 -4
  64. package/dist/commonjs/pollingHelper.js +143 -24
  65. package/dist/commonjs/pollingHelper.js.map +7 -1
  66. package/dist/commonjs/responses.d.ts +234 -121
  67. package/dist/commonjs/responses.js +15 -5
  68. package/dist/commonjs/responses.js.map +7 -1
  69. package/dist/commonjs/tsdoc-metadata.json +11 -11
  70. package/dist/commonjs/util/LROUtil.js +76 -54
  71. package/dist/commonjs/util/LROUtil.js.map +7 -1
  72. package/dist/esm/azureLoadTesting.js +32 -40
  73. package/dist/esm/azureLoadTesting.js.map +7 -1
  74. package/dist/esm/clientDefinitions.d.ts +66 -34
  75. package/dist/esm/clientDefinitions.js +0 -4
  76. package/dist/esm/clientDefinitions.js.map +7 -1
  77. package/dist/esm/getFileValidationPoller.js +126 -132
  78. package/dist/esm/getFileValidationPoller.js.map +7 -1
  79. package/dist/esm/getTestProfileRunCompletionPoller.js +114 -122
  80. package/dist/esm/getTestProfileRunCompletionPoller.js.map +7 -1
  81. package/dist/esm/getTestRunCompletionPoller.js +114 -120
  82. package/dist/esm/getTestRunCompletionPoller.js.map +7 -1
  83. package/dist/esm/index.d.ts +6 -6
  84. package/dist/esm/index.js +5 -11
  85. package/dist/esm/index.js.map +7 -1
  86. package/dist/esm/isUnexpected.d.ts +15 -9
  87. package/dist/esm/isUnexpected.js +96 -103
  88. package/dist/esm/isUnexpected.js.map +7 -1
  89. package/dist/esm/logger.js +4 -4
  90. package/dist/esm/logger.js.map +7 -1
  91. package/dist/esm/models.d.ts +205 -172
  92. package/dist/esm/models.js +0 -4
  93. package/dist/esm/models.js.map +7 -1
  94. package/dist/esm/outputModels.d.ts +290 -208
  95. package/dist/esm/outputModels.js +0 -4
  96. package/dist/esm/outputModels.js.map +7 -1
  97. package/dist/esm/paginateHelper.js +95 -155
  98. package/dist/esm/paginateHelper.js.map +7 -1
  99. package/dist/esm/parameters.d.ts +107 -66
  100. package/dist/esm/parameters.js +0 -4
  101. package/dist/esm/parameters.js.map +7 -1
  102. package/dist/esm/pollingHelper.d.ts +82 -4
  103. package/dist/esm/pollingHelper.js +117 -18
  104. package/dist/esm/pollingHelper.js.map +7 -1
  105. package/dist/esm/responses.d.ts +234 -121
  106. package/dist/esm/responses.js +0 -4
  107. package/dist/esm/responses.js.map +7 -1
  108. package/dist/esm/util/LROUtil.js +52 -50
  109. package/dist/esm/util/LROUtil.js.map +7 -1
  110. package/dist/react-native/azureLoadTesting.js +14 -12
  111. package/dist/react-native/azureLoadTesting.js.map +1 -1
  112. package/dist/react-native/clientDefinitions.d.ts +66 -34
  113. package/dist/react-native/clientDefinitions.js.map +1 -1
  114. package/dist/react-native/getFileValidationPoller.js +16 -11
  115. package/dist/react-native/getFileValidationPoller.js.map +1 -1
  116. package/dist/react-native/getTestProfileRunCompletionPoller.js +16 -11
  117. package/dist/react-native/getTestProfileRunCompletionPoller.js.map +1 -1
  118. package/dist/react-native/getTestRunCompletionPoller.js +16 -11
  119. package/dist/react-native/getTestRunCompletionPoller.js.map +1 -1
  120. package/dist/react-native/index.d.ts +6 -6
  121. package/dist/react-native/index.js +1 -7
  122. package/dist/react-native/index.js.map +1 -1
  123. package/dist/react-native/isUnexpected.d.ts +15 -9
  124. package/dist/react-native/isUnexpected.js +21 -13
  125. package/dist/react-native/isUnexpected.js.map +1 -1
  126. package/dist/react-native/models.d.ts +205 -172
  127. package/dist/react-native/models.js.map +1 -1
  128. package/dist/react-native/outputModels.d.ts +290 -208
  129. package/dist/react-native/outputModels.js.map +1 -1
  130. package/dist/react-native/paginateHelper.js +43 -73
  131. package/dist/react-native/paginateHelper.js.map +1 -1
  132. package/dist/react-native/parameters.d.ts +107 -66
  133. package/dist/react-native/parameters.js.map +1 -1
  134. package/dist/react-native/pollingHelper.d.ts +82 -4
  135. package/dist/react-native/pollingHelper.js +119 -15
  136. package/dist/react-native/pollingHelper.js.map +1 -1
  137. package/dist/react-native/responses.d.ts +234 -121
  138. package/dist/react-native/responses.js.map +1 -1
  139. package/package.json +69 -86
  140. package/review/{load-testing.api.md → load-testing-node.api.md} +420 -23
  141. package/dist/browser/azureLoadTesting.d.ts.map +0 -1
  142. package/dist/browser/clientDefinitions.d.ts.map +0 -1
  143. package/dist/browser/getFileValidationPoller.d.ts.map +0 -1
  144. package/dist/browser/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  145. package/dist/browser/getTestRunCompletionPoller.d.ts.map +0 -1
  146. package/dist/browser/index.d.ts.map +0 -1
  147. package/dist/browser/isUnexpected.d.ts.map +0 -1
  148. package/dist/browser/logger.d.ts.map +0 -1
  149. package/dist/browser/models.d.ts.map +0 -1
  150. package/dist/browser/outputModels.d.ts.map +0 -1
  151. package/dist/browser/paginateHelper.d.ts.map +0 -1
  152. package/dist/browser/parameters.d.ts.map +0 -1
  153. package/dist/browser/pollingHelper.d.ts.map +0 -1
  154. package/dist/browser/responses.d.ts.map +0 -1
  155. package/dist/browser/util/LROUtil.d.ts.map +0 -1
  156. package/dist/commonjs/azureLoadTesting.d.ts.map +0 -1
  157. package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
  158. package/dist/commonjs/getFileValidationPoller.d.ts.map +0 -1
  159. package/dist/commonjs/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  160. package/dist/commonjs/getTestRunCompletionPoller.d.ts.map +0 -1
  161. package/dist/commonjs/index.d.ts.map +0 -1
  162. package/dist/commonjs/isUnexpected.d.ts.map +0 -1
  163. package/dist/commonjs/logger.d.ts.map +0 -1
  164. package/dist/commonjs/models.d.ts.map +0 -1
  165. package/dist/commonjs/outputModels.d.ts.map +0 -1
  166. package/dist/commonjs/paginateHelper.d.ts.map +0 -1
  167. package/dist/commonjs/parameters.d.ts.map +0 -1
  168. package/dist/commonjs/pollingHelper.d.ts.map +0 -1
  169. package/dist/commonjs/responses.d.ts.map +0 -1
  170. package/dist/commonjs/util/LROUtil.d.ts.map +0 -1
  171. package/dist/esm/azureLoadTesting.d.ts.map +0 -1
  172. package/dist/esm/clientDefinitions.d.ts.map +0 -1
  173. package/dist/esm/getFileValidationPoller.d.ts.map +0 -1
  174. package/dist/esm/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  175. package/dist/esm/getTestRunCompletionPoller.d.ts.map +0 -1
  176. package/dist/esm/index.d.ts.map +0 -1
  177. package/dist/esm/isUnexpected.d.ts.map +0 -1
  178. package/dist/esm/logger.d.ts.map +0 -1
  179. package/dist/esm/models.d.ts.map +0 -1
  180. package/dist/esm/outputModels.d.ts.map +0 -1
  181. package/dist/esm/paginateHelper.d.ts.map +0 -1
  182. package/dist/esm/parameters.d.ts.map +0 -1
  183. package/dist/esm/pollingHelper.d.ts.map +0 -1
  184. package/dist/esm/responses.d.ts.map +0 -1
  185. package/dist/esm/util/LROUtil.d.ts.map +0 -1
  186. package/dist/react-native/azureLoadTesting.d.ts.map +0 -1
  187. package/dist/react-native/clientDefinitions.d.ts.map +0 -1
  188. package/dist/react-native/getFileValidationPoller.d.ts.map +0 -1
  189. package/dist/react-native/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  190. package/dist/react-native/getTestRunCompletionPoller.d.ts.map +0 -1
  191. package/dist/react-native/index.d.ts.map +0 -1
  192. package/dist/react-native/isUnexpected.d.ts.map +0 -1
  193. package/dist/react-native/logger.d.ts.map +0 -1
  194. package/dist/react-native/models.d.ts.map +0 -1
  195. package/dist/react-native/outputModels.d.ts.map +0 -1
  196. package/dist/react-native/paginateHelper.d.ts.map +0 -1
  197. package/dist/react-native/parameters.d.ts.map +0 -1
  198. package/dist/react-native/pollingHelper.d.ts.map +0 -1
  199. package/dist/react-native/responses.d.ts.map +0 -1
  200. package/dist/react-native/util/LROUtil.d.ts.map +0 -1
@@ -1,3 +1,23 @@
1
+ import type { ErrorModel } from "@azure-rest/core-client";
2
+ /** Status of a long running operation. */
3
+ export interface OperationStatusOutput {
4
+ /** The unique ID of the operation. */
5
+ readonly id: string;
6
+ /**
7
+ * The state of the operation.
8
+ *
9
+ * Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
10
+ */
11
+ status: OperationStateOutput;
12
+ /**
13
+ * The kind of the operation.
14
+ *
15
+ * Possible values: "CloneTest", "GenerateTestRunInsights", "TestPlanRecommendations"
16
+ */
17
+ kind: OperationKindOutput;
18
+ /** Error object that describes the error when status is "Failed". */
19
+ error?: ErrorModel;
20
+ }
1
21
  /** Load test model. */
2
22
  export interface TestOutput {
3
23
  /** Pass fail criteria for a test. */
@@ -58,6 +78,10 @@ export interface TestOutput {
58
78
  engineBuiltInIdentityType?: ManagedIdentityTypeOutput;
59
79
  /** Resource Ids of the managed identity built in to load test engines. Required if engineBuiltInIdentityType is UserAssigned. */
60
80
  engineBuiltInIdentityIds?: string[];
81
+ /** Estimated virtual user hours for the test. */
82
+ readonly estimatedVirtualUserHours?: number;
83
+ /** Preferences for the test. */
84
+ preferences?: TestPreferencesOutput;
61
85
  /** The creation datetime(RFC 3339 literal format). */
62
86
  readonly createdDateTime?: string;
63
87
  /** The user that created. */
@@ -152,6 +176,8 @@ export interface AutoStopCriteriaOutput {
152
176
  errorRate?: number;
153
177
  /** Time window during which the error percentage should be evaluated in seconds. */
154
178
  errorRateTimeWindowInSeconds?: number;
179
+ /** Maximum number of virtual users per load testing engine, at which the test run should be automatically stopped. */
180
+ maximumVirtualUsersPerEngine?: number;
155
181
  }
156
182
  /** Secret */
157
183
  export interface SecretOutput {
@@ -248,7 +274,7 @@ export interface TestFileInfoOutput {
248
274
  /**
249
275
  * File type
250
276
  *
251
- * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT"
277
+ * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", "TEST_PLAN_RECOMMENDATIONS"
252
278
  */
253
279
  readonly fileType?: FileTypeOutput;
254
280
  /** Expiry time of the file (RFC 3339 literal format) */
@@ -262,6 +288,11 @@ export interface TestFileInfoOutput {
262
288
  /** Validation failure error details */
263
289
  readonly validationFailureDetails?: string;
264
290
  }
291
+ /** Preferences for the test. */
292
+ export interface TestPreferencesOutput {
293
+ /** Enable or disable AI based insights on Test Run Errors. */
294
+ enableAIErrorInsights?: boolean;
295
+ }
265
296
  /** Paged collection of Test items */
266
297
  export interface PagedTestOutput {
267
298
  /** The Test items on this page */
@@ -269,6 +300,19 @@ export interface PagedTestOutput {
269
300
  /** The link to the next page of items */
270
301
  nextLink?: string;
271
302
  }
303
+ /** Provides status details for long running operations. */
304
+ export interface ResourceOperationStatusTestErrorOutput {
305
+ /** The unique ID of the operation. */
306
+ id: string;
307
+ /**
308
+ * The status of the operation
309
+ *
310
+ * Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
311
+ */
312
+ status: OperationStateOutput;
313
+ /** Error object that describes the error when status is "Failed". */
314
+ error?: ErrorModel;
315
+ }
272
316
  /** Paged collection of TestFileInfo items */
273
317
  export interface PagedTestFileInfoOutput {
274
318
  /** The TestFileInfo items on this page */
@@ -405,6 +449,196 @@ export interface PagedTestProfileOutput {
405
449
  /** The link to the next page of items */
406
450
  nextLink?: string;
407
451
  }
452
+ /** Trigger model. */
453
+ export interface TriggerOutputParent {
454
+ /** The unique identifier of the trigger. */
455
+ readonly triggerId: string;
456
+ /** The name of the trigger. */
457
+ displayName: string;
458
+ /** The description of the trigger. */
459
+ description?: string;
460
+ /**
461
+ * The current state of the trigger.
462
+ *
463
+ * Possible values: "Active", "Paused", "Completed", "Disabled"
464
+ */
465
+ state?: TriggerStateOutput;
466
+ /** Details of current state of the trigger. */
467
+ readonly stateDetails?: StateDetailsOutput;
468
+ /** The creation datetime(RFC 3339 literal format). */
469
+ readonly createdDateTime?: string;
470
+ /** The user that created. */
471
+ readonly createdBy?: string;
472
+ /** The last Modified datetime(RFC 3339 literal format). */
473
+ readonly lastModifiedDateTime?: string;
474
+ /** The user that last modified. */
475
+ readonly lastModifiedBy?: string;
476
+ kind: TriggerTypeOutput;
477
+ }
478
+ /** State details of the trigger. */
479
+ export interface StateDetailsOutput {
480
+ /** The error message if the trigger is in disabled state. */
481
+ message?: string;
482
+ }
483
+ /** ScheduleTestsTrigger model. */
484
+ export interface ScheduleTestsTriggerOutput extends TriggerOutputParent {
485
+ /** The type of the trigger is ScheduleTestsTrigger. */
486
+ kind: "ScheduleTestsTrigger";
487
+ /** The test id of test to be triggered by this schedule trigger. Currently only one test is supported for a trigger. */
488
+ testIds: string[];
489
+ /** Start date time of the trigger in UTC timezone. (RFC 3339 literal format) */
490
+ startDateTime?: string;
491
+ readonly recurrenceStatus?: RecurrenceStatusOutput;
492
+ /** Recurrence details of the trigger. Null if schedule is not recurring. */
493
+ recurrence?: RecurrenceOutput;
494
+ }
495
+ /** Actual state of the recurrence for the trigger. */
496
+ export interface RecurrenceStatusOutput {
497
+ /** The number of occurrences remaining for the trigger. Null if recurrence end has end date instead of number of occurrences. */
498
+ remainingOccurrences?: number;
499
+ /** The next three execution times of the trigger. (RFC 3339 literal format) */
500
+ nextScheduledDateTimes?: string[];
501
+ }
502
+ /** Recurrence model. */
503
+ export interface RecurrenceOutputParent {
504
+ /** Recurrence end model. You can specify the end either by providing a numberOfOccurrences (which will end the recurrence after the specified number of occurrences) or by providing an endDateTime (which will end the recurrence after the specified date). If neither value is provided, the recurrence will continue until it is manually ended. However, if both values are provided, an error will be thrown. */
505
+ recurrenceEnd?: RecurrenceEndOutput;
506
+ frequency: FrequencyOutput;
507
+ }
508
+ /** Recurrence end model. Either provide numberOfOccurrences if you want recurrence to end after a specified number of occurrences or provide endDate if you want recurrence to end after a specified end date. If both values are provided, a validation error will be thrown indicating that only one field should be provided. If neither value is provided, the recurrence will end when manually ended. */
509
+ export interface RecurrenceEndOutput {
510
+ /** Number of occurrences after which the recurrence will end. */
511
+ numberOfOccurrences?: number;
512
+ /** The date after which the recurrence will end. (RFC 3339 literal format) */
513
+ endDateTime?: string;
514
+ }
515
+ /** Recurrence model when frequency is set as Daily. */
516
+ export interface DailyRecurrenceOutput extends RecurrenceOutputParent {
517
+ /** Frequency of the day recurrence. */
518
+ frequency: "Daily";
519
+ /** The interval at which the recurrence should repeat. It signifies the number of days between each recurrence. */
520
+ interval: number;
521
+ }
522
+ /** Recurrence model when frequency is set as Hourly. */
523
+ export interface HourlyRecurrenceOutput extends RecurrenceOutputParent {
524
+ /** Frequency of the hour recurrence. */
525
+ frequency: "Hourly";
526
+ /** The interval at which the recurrence should repeat. It signifies the number of hours between each recurrence. */
527
+ interval: number;
528
+ }
529
+ /** Recurrence model when frequency is set as MonthlyByDays . */
530
+ export interface MonthlyRecurrenceByWeekDaysOutput extends RecurrenceOutputParent {
531
+ /** Frequency of the month recurrence. */
532
+ frequency: "MonthlyByDays";
533
+ /** Specific days of the week when the recurrence should repeat. */
534
+ weekDaysInMonth?: WeekDaysOutput[];
535
+ /** Index of the week in a month at which the recurrence should repeat. For example, if the index is '2', weekDay is 'Monday', interval is 3 and frequency is 'Month', the recurrence will run every second Monday of the month and repeat every 3 months. Value of index can be 1 to 5. */
536
+ index: number;
537
+ /** The interval at which the recurrence should repeat. It signifies the number of months between each recurrence. */
538
+ interval: number;
539
+ }
540
+ /** Recurrence model when frequency is set as MonthlyByDates. */
541
+ export interface MonthlyRecurrenceByDatesOutput extends RecurrenceOutputParent {
542
+ /** Frequency of the month recurrence. */
543
+ frequency: "MonthlyByDates";
544
+ /** Recurrence set to repeat on the specified dates of the month. Value of dates can be 1 to 31 and -1. -1 represents the last day of the month. */
545
+ datesInMonth?: number[];
546
+ /** The interval at which the recurrence should repeat. It signifies the number of months between each recurrence. */
547
+ interval?: number;
548
+ }
549
+ /** Recurrence is set based on cron expression. */
550
+ export interface RecurrenceWithCronOutput extends RecurrenceOutputParent {
551
+ /** Specify frequency using a cron expression. */
552
+ frequency: "Cron";
553
+ /** Cron expression for the recurrence. */
554
+ cronExpression: string;
555
+ }
556
+ /** Recurrence model when frequency is set as weekly. */
557
+ export interface WeeklyRecurrenceOutput extends RecurrenceOutputParent {
558
+ /** Frequency of the week recurrence. */
559
+ frequency: "Weekly";
560
+ /** Recurrence set to repeat on the specified days of the week. */
561
+ daysOfWeek?: WeekDaysOutput[];
562
+ /** The interval at which the recurrence should repeat. It signifies the number of weeks between each recurrence. */
563
+ interval?: number;
564
+ }
565
+ /** Paged collection of Trigger items */
566
+ export interface PagedTriggerOutput {
567
+ /** The Trigger items on this page */
568
+ value: Array<TriggerOutput>;
569
+ /** The link to the next page of items */
570
+ nextLink?: string;
571
+ }
572
+ /** Notification rule model. */
573
+ export interface NotificationRuleOutputParent {
574
+ /** The unique identifier of the notification rule. */
575
+ readonly notificationRuleId: string;
576
+ /** The name of the notification rule. */
577
+ displayName: string;
578
+ /** The action groups to notify. */
579
+ actionGroupIds: string[];
580
+ /** The creation datetime(RFC 3339 literal format). */
581
+ readonly createdDateTime?: string;
582
+ /** The user that created. */
583
+ readonly createdBy?: string;
584
+ /** The last Modified datetime(RFC 3339 literal format). */
585
+ readonly lastModifiedDateTime?: string;
586
+ /** The user that last modified. */
587
+ readonly lastModifiedBy?: string;
588
+ scope: NotificationScopeTypeOutput;
589
+ }
590
+ /** Tests Notification rule model. */
591
+ export interface TestsNotificationRuleOutput extends NotificationRuleOutputParent {
592
+ /** Scope of type Tests. */
593
+ scope: "Tests";
594
+ /** The test ids to include. If not provided, notification will be sent for all testIds. */
595
+ testIds?: string[];
596
+ /**
597
+ * The event to receive notifications for along with filtering conditions.
598
+ * Key is a user-assigned identifier for the event filter.
599
+ */
600
+ eventFilters: Record<string, TestsNotificationEventFilterOutput>;
601
+ }
602
+ /** The notification event filter for Tests scope. */
603
+ export interface TestsNotificationEventFilterOutputParent {
604
+ kind: NotificationEventTypeOutput;
605
+ }
606
+ /** The notification event filter when the event type is TestRunEnded and scope is Tests. */
607
+ export interface TestRunEndedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
608
+ /** Event type for test run ended event. */
609
+ kind: "TestRunEnded";
610
+ /** Event filtering condition. */
611
+ condition?: TestRunEndedEventConditionOutput;
612
+ }
613
+ /** TestRunEnded Event condition. */
614
+ export interface TestRunEndedEventConditionOutput {
615
+ /** The test run statuses to send notification for. */
616
+ testRunStatuses?: TestRunStatusOutput[];
617
+ /** The test run results to send notification for. */
618
+ testRunResults?: PassFailTestResultOutput[];
619
+ }
620
+ /** The notification event filter when the event type is TestRunStarted and scope is Tests. */
621
+ export interface TestRunStartedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
622
+ /** Event type for test run started event. */
623
+ kind: "TestRunStarted";
624
+ }
625
+ /** The notification event filter when the event type is TriggerCompleted. */
626
+ export interface TriggerCompletedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
627
+ /** Event type for trigger ended event. */
628
+ kind: "TriggerCompleted";
629
+ }
630
+ /** The notification event filter when the event type is TriggerDisabled. */
631
+ export interface TriggerDisabledNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
632
+ /** Event type for trigger disabled event. */
633
+ kind: "TriggerDisabled";
634
+ }
635
+ /** Paged collection of NotificationRule items */
636
+ export interface PagedNotificationRuleOutput {
637
+ /** The NotificationRule items on this page */
638
+ value: Array<NotificationRuleOutput>;
639
+ /** The link to the next page of items */
640
+ nextLink?: string;
641
+ }
408
642
  /** Load test run model */
409
643
  export interface TestRunOutput {
410
644
  /** Unique test run identifier for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. */
@@ -467,7 +701,7 @@ export interface TestRunOutput {
467
701
  readonly startDateTime?: string;
468
702
  /** The test run end DateTime(RFC 3339 literal format). */
469
703
  readonly endDateTime?: string;
470
- /** Test run initiated time. */
704
+ /** Test run initiated time. This is legacy, new developments should use createdDateTime. */
471
705
  readonly executedDateTime?: string;
472
706
  /** Portal url. */
473
707
  readonly portalUrl?: string;
@@ -496,9 +730,17 @@ export interface TestRunOutput {
496
730
  /**
497
731
  * The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).
498
732
  *
499
- * Possible values: "User", "ScheduledTrigger"
733
+ * Possible values: "User", "ScheduledTrigger", "AzurePipelines", "GitHubWorkflows"
500
734
  */
501
735
  createdByType?: CreatedByTypeOutput;
736
+ /** The URI pointing to the entity that created the test run. */
737
+ readonly createdByUri?: string;
738
+ /** Estimated virtual user hours for the test run. */
739
+ readonly estimatedVirtualUserHours?: number;
740
+ /** The test run execution start DateTime(RFC 3339 literal format). */
741
+ readonly executionStartDateTime?: string;
742
+ /** The test run execution end DateTime(RFC 3339 literal format). */
743
+ readonly executionEndDateTime?: string;
502
744
  /** The creation datetime(RFC 3339 literal format). */
503
745
  readonly createdDateTime?: string;
504
746
  /** The user that created. */
@@ -510,8 +752,12 @@ export interface TestRunOutput {
510
752
  }
511
753
  /** Error details if there is any failure in load test run */
512
754
  export interface ErrorDetailsOutput {
755
+ /** Error code if there is any failure in load test run. */
756
+ readonly code?: string;
513
757
  /** Error details in case test run was not successfully run. */
514
758
  readonly message?: string;
759
+ /** A dictionary for storing additional error information for better context. Each key is a property name (e.g., "Description", "Resolution", "Category", "Region"), and its value is an array of strings with relevant details. */
760
+ readonly properties?: Record<string, string[]>;
515
761
  }
516
762
  /** Test run statistics. */
517
763
  export interface TestRunStatisticsOutput {
@@ -587,7 +833,7 @@ export interface TestRunFileInfoOutput {
587
833
  /**
588
834
  * File type
589
835
  *
590
- * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT"
836
+ * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", "TEST_PLAN_RECOMMENDATIONS"
591
837
  */
592
838
  readonly fileType?: FileTypeOutput;
593
839
  /** Expiry time of the file (RFC 3339 literal format) */
@@ -626,6 +872,28 @@ export interface PagedTestRunOutput {
626
872
  /** The link to the next page of items */
627
873
  nextLink?: string;
628
874
  }
875
+ /** Represents insights for the test run. */
876
+ export interface TestRunInsightsOutput {
877
+ /** The columns of the insights. */
878
+ readonly columns?: Array<TestRunInsightColumnOutput>;
879
+ /** The rows of the insights. */
880
+ rows?: Record<string, Record<string, string>>;
881
+ /** The version of the insights. */
882
+ readonly version?: number;
883
+ /**
884
+ * The status of the insights.
885
+ *
886
+ * Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
887
+ */
888
+ readonly status?: OperationStateOutput;
889
+ }
890
+ /** Represents a column of the test run insight */
891
+ export interface TestRunInsightColumnOutput {
892
+ /** Name of the column. */
893
+ name: string;
894
+ /** The data type of the column. */
895
+ dataType: string;
896
+ }
629
897
  /** Represents collection of metric namespaces. */
630
898
  export interface MetricNamespaceCollectionOutput {
631
899
  /** The values for the metric namespaces. */
@@ -840,196 +1108,6 @@ export interface PagedTestProfileRunOutput {
840
1108
  /** The link to the next page of items */
841
1109
  nextLink?: string;
842
1110
  }
843
- /** Trigger model. */
844
- export interface TriggerOutputParent {
845
- /** The unique identifier of the trigger. */
846
- readonly triggerId: string;
847
- /** The name of the trigger. */
848
- displayName: string;
849
- /** The description of the trigger. */
850
- description?: string;
851
- /**
852
- * The current state of the trigger.
853
- *
854
- * Possible values: "Active", "Paused", "Completed", "Disabled"
855
- */
856
- state?: TriggerStateOutput;
857
- /** Details of current state of the trigger. */
858
- readonly stateDetails?: StateDetailsOutput;
859
- /** The creation datetime(RFC 3339 literal format). */
860
- readonly createdDateTime?: string;
861
- /** The user that created. */
862
- readonly createdBy?: string;
863
- /** The last Modified datetime(RFC 3339 literal format). */
864
- readonly lastModifiedDateTime?: string;
865
- /** The user that last modified. */
866
- readonly lastModifiedBy?: string;
867
- kind: TriggerTypeOutput;
868
- }
869
- /** State details of the trigger. */
870
- export interface StateDetailsOutput {
871
- /** The error message if the trigger is in disabled state. */
872
- message?: string;
873
- }
874
- /** ScheduleTestsTrigger model. */
875
- export interface ScheduleTestsTriggerOutput extends TriggerOutputParent {
876
- /** The type of the trigger is ScheduleTestsTrigger. */
877
- kind: "ScheduleTestsTrigger";
878
- /** The test id of test to be triggered by this schedule trigger. Currently only one test is supported for a trigger. */
879
- testIds: string[];
880
- /** Start date time of the trigger in UTC timezone. (RFC 3339 literal format) */
881
- startDateTime?: string;
882
- readonly recurrenceStatus?: RecurrenceStatusOutput;
883
- /** Recurrence details of the trigger. Null if schedule is not recurring. */
884
- recurrence?: RecurrenceOutput;
885
- }
886
- /** Actual state of the recurrence for the trigger. */
887
- export interface RecurrenceStatusOutput {
888
- /** The number of occurrences remaining for the trigger. Null if recurrence end has end date instead of number of occurrences. */
889
- remainingOccurrences?: number;
890
- /** The next three execution times of the trigger. (RFC 3339 literal format) */
891
- nextScheduledDateTimes?: string[];
892
- }
893
- /** Recurrence model. */
894
- export interface RecurrenceOutputParent {
895
- /** Recurrence end model. You can specify the end either by providing a numberOfOccurrences (which will end the recurrence after the specified number of occurrences) or by providing an endDateTime (which will end the recurrence after the specified date). If neither value is provided, the recurrence will continue until it is manually ended. However, if both values are provided, an error will be thrown. */
896
- recurrenceEnd?: RecurrenceEndOutput;
897
- frequency: FrequencyOutput;
898
- }
899
- /** Recurrence end model. Either provide numberOfOccurrences if you want recurrence to end after a specified number of occurrences or provide endDate if you want recurrence to end after a specified end date. If both values are provided, a validation error will be thrown indicating that only one field should be provided. If neither value is provided, the recurrence will end when manually ended. */
900
- export interface RecurrenceEndOutput {
901
- /** Number of occurrences after which the recurrence will end. */
902
- numberOfOccurrences?: number;
903
- /** The date after which the recurrence will end. (RFC 3339 literal format) */
904
- endDateTime?: string;
905
- }
906
- /** Recurrence model when frequency is set as Daily. */
907
- export interface DailyRecurrenceOutput extends RecurrenceOutputParent {
908
- /** Frequency of the day recurrence. */
909
- frequency: "Daily";
910
- /** The interval at which the recurrence should repeat. It signifies the number of days between each recurrence. */
911
- interval: number;
912
- }
913
- /** Recurrence model when frequency is set as Hourly. */
914
- export interface HourlyRecurrenceOutput extends RecurrenceOutputParent {
915
- /** Frequency of the hour recurrence. */
916
- frequency: "Hourly";
917
- /** The interval at which the recurrence should repeat. It signifies the number of hours between each recurrence. */
918
- interval: number;
919
- }
920
- /** Recurrence model when frequency is set as MonthlyByDays . */
921
- export interface MonthlyRecurrenceByWeekDaysOutput extends RecurrenceOutputParent {
922
- /** Frequency of the month recurrence. */
923
- frequency: "MonthlyByDays";
924
- /** Specific days of the week when the recurrence should repeat. */
925
- weekDaysInMonth?: WeekDaysOutput[];
926
- /** Index of the week in a month at which the recurrence should repeat. For example, if the index is '2', weekDay is 'Monday', interval is 3 and frequency is 'Month', the recurrence will run every second Monday of the month and repeat every 3 months. Value of index can be 1 to 5. */
927
- index: number;
928
- /** The interval at which the recurrence should repeat. It signifies the number of months between each recurrence. */
929
- interval: number;
930
- }
931
- /** Recurrence model when frequency is set as MonthlyByDates. */
932
- export interface MonthlyRecurrenceByDatesOutput extends RecurrenceOutputParent {
933
- /** Frequency of the month recurrence. */
934
- frequency: "MonthlyByDates";
935
- /** Recurrence set to repeat on the specified dates of the month. Value of dates can be 1 to 31 and -1. -1 represents the last day of the month. */
936
- datesInMonth?: number[];
937
- /** The interval at which the recurrence should repeat. It signifies the number of months between each recurrence. */
938
- interval?: number;
939
- }
940
- /** Recurrence is set based on cron expression. */
941
- export interface RecurrenceWithCronOutput extends RecurrenceOutputParent {
942
- /** Specify frequency using a cron expression. */
943
- frequency: "Cron";
944
- /** Cron expression for the recurrence. */
945
- cronExpression: string;
946
- }
947
- /** Recurrence model when frequency is set as weekly. */
948
- export interface WeeklyRecurrenceOutput extends RecurrenceOutputParent {
949
- /** Frequency of the week recurrence. */
950
- frequency: "Weekly";
951
- /** Recurrence set to repeat on the specified days of the week. */
952
- daysOfWeek?: WeekDaysOutput[];
953
- /** The interval at which the recurrence should repeat. It signifies the number of weeks between each recurrence. */
954
- interval?: number;
955
- }
956
- /** Paged collection of Trigger items */
957
- export interface PagedTriggerOutput {
958
- /** The Trigger items on this page */
959
- value: Array<TriggerOutput>;
960
- /** The link to the next page of items */
961
- nextLink?: string;
962
- }
963
- /** Notification rule model. */
964
- export interface NotificationRuleOutputParent {
965
- /** The unique identifier of the notification rule. */
966
- readonly notificationRuleId: string;
967
- /** The name of the notification rule. */
968
- displayName: string;
969
- /** The action groups to notify. */
970
- actionGroupIds: string[];
971
- /** The creation datetime(RFC 3339 literal format). */
972
- readonly createdDateTime?: string;
973
- /** The user that created. */
974
- readonly createdBy?: string;
975
- /** The last Modified datetime(RFC 3339 literal format). */
976
- readonly lastModifiedDateTime?: string;
977
- /** The user that last modified. */
978
- readonly lastModifiedBy?: string;
979
- scope: NotificationScopeTypeOutput;
980
- }
981
- /** Tests Notification rule model. */
982
- export interface TestsNotificationRuleOutput extends NotificationRuleOutputParent {
983
- /** Scope of type Tests. */
984
- scope: "Tests";
985
- /** The test ids to include. If not provided, notification will be sent for all testIds. */
986
- testIds?: string[];
987
- /**
988
- * The event to receive notifications for along with filtering conditions.
989
- * Key is a user-assigned identifier for the event filter.
990
- */
991
- eventFilters: Record<string, TestsNotificationEventFilterOutput>;
992
- }
993
- /** The notification event filter for Tests scope. */
994
- export interface TestsNotificationEventFilterOutputParent {
995
- kind: NotificationEventTypeOutput;
996
- }
997
- /** The notification event filter when the event type is TestRunEnded and scope is Tests. */
998
- export interface TestRunEndedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
999
- /** Event type for test run ended event. */
1000
- kind: "TestRunEnded";
1001
- /** Event filtering condition. */
1002
- condition?: TestRunEndedEventConditionOutput;
1003
- }
1004
- /** TestRunEnded Event condition. */
1005
- export interface TestRunEndedEventConditionOutput {
1006
- /** The test run statuses to send notification for. */
1007
- testRunStatuses?: TestRunStatusOutput[];
1008
- /** The test run results to send notification for. */
1009
- testRunResults?: PassFailTestResultOutput[];
1010
- }
1011
- /** The notification event filter when the event type is TestRunStarted and scope is Tests. */
1012
- export interface TestRunStartedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
1013
- /** Event type for test run started event. */
1014
- kind: "TestRunStarted";
1015
- }
1016
- /** The notification event filter when the event type is TriggerCompleted. */
1017
- export interface TriggerCompletedNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
1018
- /** Event type for trigger ended event. */
1019
- kind: "TriggerCompleted";
1020
- }
1021
- /** The notification event filter when the event type is TriggerDisabled. */
1022
- export interface TriggerDisabledNotificationEventFilterOutput extends TestsNotificationEventFilterOutputParent {
1023
- /** Event type for trigger disabled event. */
1024
- kind: "TriggerDisabled";
1025
- }
1026
- /** Paged collection of NotificationRule items */
1027
- export interface PagedNotificationRuleOutput {
1028
- /** The NotificationRule items on this page */
1029
- value: Array<NotificationRuleOutput>;
1030
- /** The link to the next page of items */
1031
- nextLink?: string;
1032
- }
1033
1111
  /** Configurations of a target resource. This varies with the kind of resource. */
1034
1112
  export type TargetResourceConfigurationsOutput = TargetResourceConfigurationsOutputParent | FunctionFlexConsumptionTargetResourceConfigurationsOutput;
1035
1113
  /** Trigger model. */
@@ -1040,6 +1118,10 @@ export type RecurrenceOutput = RecurrenceOutputParent | DailyRecurrenceOutput |
1040
1118
  export type NotificationRuleOutput = NotificationRuleOutputParent | TestsNotificationRuleOutput;
1041
1119
  /** The notification event filter for Tests scope. */
1042
1120
  export type TestsNotificationEventFilterOutput = TestsNotificationEventFilterOutputParent | TestRunEndedNotificationEventFilterOutput | TestRunStartedNotificationEventFilterOutput | TriggerCompletedNotificationEventFilterOutput | TriggerDisabledNotificationEventFilterOutput;
1121
+ /** Alias for OperationStateOutput */
1122
+ export type OperationStateOutput = string;
1123
+ /** Alias for OperationKindOutput */
1124
+ export type OperationKindOutput = string;
1043
1125
  /** Alias for PFMetricsOutput */
1044
1126
  export type PFMetricsOutput = string;
1045
1127
  /** Alias for PassFailAggregationFunctionOutput */
@@ -1062,10 +1144,22 @@ export type TestKindOutput = string;
1062
1144
  export type ManagedIdentityTypeOutput = string;
1063
1145
  /** Alias for ResourceKindOutput */
1064
1146
  export type ResourceKindOutput = string;
1065
- /** Alias for PassFailTestResultOutput */
1066
- export type PassFailTestResultOutput = string;
1147
+ /** Alias for TriggerTypeOutput */
1148
+ export type TriggerTypeOutput = string;
1149
+ /** Alias for TriggerStateOutput */
1150
+ export type TriggerStateOutput = string;
1151
+ /** Alias for FrequencyOutput */
1152
+ export type FrequencyOutput = string;
1153
+ /** Alias for WeekDaysOutput */
1154
+ export type WeekDaysOutput = string;
1155
+ /** Alias for NotificationScopeTypeOutput */
1156
+ export type NotificationScopeTypeOutput = string;
1157
+ /** Alias for NotificationEventTypeOutput */
1158
+ export type NotificationEventTypeOutput = string;
1067
1159
  /** Alias for TestRunStatusOutput */
1068
1160
  export type TestRunStatusOutput = string;
1161
+ /** Alias for PassFailTestResultOutput */
1162
+ export type PassFailTestResultOutput = string;
1069
1163
  /** Alias for RequestDataLevelOutput */
1070
1164
  export type RequestDataLevelOutput = string;
1071
1165
  /** Alias for CreatedByTypeOutput */
@@ -1080,16 +1174,4 @@ export type TimeGrainOutput = string;
1080
1174
  export type TestProfileRunStatusOutput = string;
1081
1175
  /** Alias for RecommendationCategoryOutput */
1082
1176
  export type RecommendationCategoryOutput = string;
1083
- /** Alias for TriggerTypeOutput */
1084
- export type TriggerTypeOutput = string;
1085
- /** Alias for TriggerStateOutput */
1086
- export type TriggerStateOutput = string;
1087
- /** Alias for FrequencyOutput */
1088
- export type FrequencyOutput = string;
1089
- /** Alias for WeekDaysOutput */
1090
- export type WeekDaysOutput = string;
1091
- /** Alias for NotificationScopeTypeOutput */
1092
- export type NotificationScopeTypeOutput = string;
1093
- /** Alias for NotificationEventTypeOutput */
1094
- export type NotificationEventTypeOutput = string;
1095
1177
  //# sourceMappingURL=outputModels.d.ts.map
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- export {};
4
- //# sourceMappingURL=outputModels.js.map