@azure-rest/ai-anomaly-detector 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +4 -4
  3. package/README.md +272 -17
  4. package/dist/browser/anomalyDetectorRest.d.ts +13 -0
  5. package/dist/browser/anomalyDetectorRest.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/anomalyDetectorRest.js +13 -8
  7. package/dist/browser/anomalyDetectorRest.js.map +1 -0
  8. package/dist/browser/clientDefinitions.d.ts +95 -0
  9. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  10. package/dist/browser/clientDefinitions.js +4 -0
  11. package/dist/browser/clientDefinitions.js.map +1 -0
  12. package/dist/browser/index.d.ts +11 -0
  13. package/dist/browser/index.d.ts.map +1 -0
  14. package/dist/browser/index.js +13 -0
  15. package/dist/browser/index.js.map +1 -0
  16. package/dist/browser/isUnexpected.d.ts +12 -0
  17. package/dist/browser/isUnexpected.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/isUnexpected.js +5 -6
  19. package/dist/browser/isUnexpected.js.map +1 -0
  20. package/dist/browser/models.d.ts +252 -0
  21. package/dist/browser/models.d.ts.map +1 -0
  22. package/dist/browser/models.js +4 -0
  23. package/{dist-esm/src → dist/browser}/models.js.map +1 -1
  24. package/dist/browser/outputModels.d.ts +367 -0
  25. package/dist/browser/outputModels.d.ts.map +1 -0
  26. package/dist/browser/outputModels.js +4 -0
  27. package/{dist-esm/src → dist/browser}/outputModels.js.map +1 -1
  28. package/dist/browser/package.json +3 -0
  29. package/dist/browser/paginateHelper.d.ts +47 -0
  30. package/dist/browser/paginateHelper.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/paginateHelper.js +2 -2
  32. package/dist/browser/paginateHelper.js.map +1 -0
  33. package/dist/browser/parameters.d.ts +46 -0
  34. package/dist/browser/parameters.d.ts.map +1 -0
  35. package/dist/browser/parameters.js +4 -0
  36. package/dist/browser/parameters.js.map +1 -0
  37. package/dist/browser/responses.d.ts +155 -0
  38. package/dist/browser/responses.d.ts.map +1 -0
  39. package/dist/browser/responses.js +4 -0
  40. package/dist/browser/responses.js.map +1 -0
  41. package/dist/commonjs/anomalyDetectorRest.d.ts +13 -0
  42. package/dist/commonjs/anomalyDetectorRest.d.ts.map +1 -0
  43. package/dist/commonjs/anomalyDetectorRest.js +34 -0
  44. package/dist/commonjs/anomalyDetectorRest.js.map +1 -0
  45. package/dist/commonjs/clientDefinitions.d.ts +95 -0
  46. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  47. package/dist/commonjs/clientDefinitions.js +5 -0
  48. package/dist/commonjs/clientDefinitions.js.map +1 -0
  49. package/dist/commonjs/index.d.ts +11 -0
  50. package/dist/commonjs/index.d.ts.map +1 -0
  51. package/dist/commonjs/index.js +16 -0
  52. package/dist/commonjs/index.js.map +1 -0
  53. package/dist/commonjs/isUnexpected.d.ts +12 -0
  54. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  55. package/dist/commonjs/isUnexpected.js +81 -0
  56. package/dist/commonjs/isUnexpected.js.map +1 -0
  57. package/dist/commonjs/models.d.ts +252 -0
  58. package/dist/commonjs/models.d.ts.map +1 -0
  59. package/dist/commonjs/models.js +5 -0
  60. package/dist/commonjs/models.js.map +1 -0
  61. package/dist/commonjs/outputModels.d.ts +367 -0
  62. package/dist/commonjs/outputModels.d.ts.map +1 -0
  63. package/dist/commonjs/outputModels.js +5 -0
  64. package/dist/commonjs/outputModels.js.map +1 -0
  65. package/dist/commonjs/package.json +3 -0
  66. package/dist/commonjs/paginateHelper.d.ts +47 -0
  67. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  68. package/dist/commonjs/paginateHelper.js +106 -0
  69. package/dist/commonjs/paginateHelper.js.map +1 -0
  70. package/dist/commonjs/parameters.d.ts +46 -0
  71. package/dist/commonjs/parameters.d.ts.map +1 -0
  72. package/dist/commonjs/parameters.js +5 -0
  73. package/dist/commonjs/parameters.js.map +1 -0
  74. package/dist/commonjs/responses.d.ts +155 -0
  75. package/dist/commonjs/responses.d.ts.map +1 -0
  76. package/dist/commonjs/responses.js +5 -0
  77. package/dist/commonjs/responses.js.map +1 -0
  78. package/dist/commonjs/tsdoc-metadata.json +11 -0
  79. package/dist/esm/anomalyDetectorRest.d.ts +13 -0
  80. package/dist/esm/anomalyDetectorRest.d.ts.map +1 -0
  81. package/dist/esm/anomalyDetectorRest.js +31 -0
  82. package/dist/esm/anomalyDetectorRest.js.map +1 -0
  83. package/dist/esm/clientDefinitions.d.ts +95 -0
  84. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  85. package/dist/esm/clientDefinitions.js +4 -0
  86. package/dist/esm/clientDefinitions.js.map +1 -0
  87. package/dist/esm/index.d.ts +11 -0
  88. package/dist/esm/index.d.ts.map +1 -0
  89. package/dist/esm/index.js +13 -0
  90. package/dist/esm/index.js.map +1 -0
  91. package/dist/esm/isUnexpected.d.ts +12 -0
  92. package/dist/esm/isUnexpected.d.ts.map +1 -0
  93. package/dist/esm/isUnexpected.js +78 -0
  94. package/dist/esm/isUnexpected.js.map +1 -0
  95. package/dist/esm/models.d.ts +252 -0
  96. package/dist/esm/models.d.ts.map +1 -0
  97. package/dist/esm/models.js +4 -0
  98. package/dist/esm/models.js.map +1 -0
  99. package/dist/esm/outputModels.d.ts +367 -0
  100. package/dist/esm/outputModels.d.ts.map +1 -0
  101. package/dist/esm/outputModels.js +4 -0
  102. package/dist/esm/outputModels.js.map +1 -0
  103. package/dist/esm/package.json +3 -0
  104. package/dist/esm/paginateHelper.d.ts +47 -0
  105. package/dist/esm/paginateHelper.d.ts.map +1 -0
  106. package/dist/esm/paginateHelper.js +103 -0
  107. package/dist/esm/paginateHelper.js.map +1 -0
  108. package/dist/esm/parameters.d.ts +46 -0
  109. package/dist/esm/parameters.d.ts.map +1 -0
  110. package/dist/esm/parameters.js +4 -0
  111. package/dist/esm/parameters.js.map +1 -0
  112. package/dist/esm/responses.d.ts +155 -0
  113. package/dist/esm/responses.d.ts.map +1 -0
  114. package/dist/esm/responses.js +4 -0
  115. package/dist/esm/responses.js.map +1 -0
  116. package/dist/react-native/anomalyDetectorRest.d.ts +13 -0
  117. package/dist/react-native/anomalyDetectorRest.d.ts.map +1 -0
  118. package/dist/react-native/anomalyDetectorRest.js +31 -0
  119. package/dist/react-native/anomalyDetectorRest.js.map +1 -0
  120. package/dist/react-native/clientDefinitions.d.ts +95 -0
  121. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  122. package/dist/react-native/clientDefinitions.js +4 -0
  123. package/dist/react-native/clientDefinitions.js.map +1 -0
  124. package/dist/react-native/index.d.ts +11 -0
  125. package/dist/react-native/index.d.ts.map +1 -0
  126. package/dist/react-native/index.js +13 -0
  127. package/dist/react-native/index.js.map +1 -0
  128. package/dist/react-native/isUnexpected.d.ts +12 -0
  129. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  130. package/dist/react-native/isUnexpected.js +78 -0
  131. package/dist/react-native/isUnexpected.js.map +1 -0
  132. package/dist/react-native/models.d.ts +252 -0
  133. package/dist/react-native/models.d.ts.map +1 -0
  134. package/dist/react-native/models.js +4 -0
  135. package/dist/react-native/models.js.map +1 -0
  136. package/dist/react-native/outputModels.d.ts +367 -0
  137. package/dist/react-native/outputModels.d.ts.map +1 -0
  138. package/dist/react-native/outputModels.js +4 -0
  139. package/dist/react-native/outputModels.js.map +1 -0
  140. package/dist/react-native/package.json +3 -0
  141. package/dist/react-native/paginateHelper.d.ts +47 -0
  142. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  143. package/dist/react-native/paginateHelper.js +103 -0
  144. package/dist/react-native/paginateHelper.js.map +1 -0
  145. package/dist/react-native/parameters.d.ts +46 -0
  146. package/dist/react-native/parameters.d.ts.map +1 -0
  147. package/dist/react-native/parameters.js +4 -0
  148. package/dist/react-native/parameters.js.map +1 -0
  149. package/dist/react-native/responses.d.ts +155 -0
  150. package/dist/react-native/responses.d.ts.map +1 -0
  151. package/dist/react-native/responses.js +4 -0
  152. package/dist/react-native/responses.js.map +1 -0
  153. package/package.json +86 -80
  154. package/review/{ai-anomaly-detector.api.md → ai-anomaly-detector-node.api.md} +9 -9
  155. package/dist/index.js +0 -216
  156. package/dist/index.js.map +0 -1
  157. package/dist-esm/src/anomalyDetectorRest.js.map +0 -1
  158. package/dist-esm/src/clientDefinitions.js +0 -4
  159. package/dist-esm/src/clientDefinitions.js.map +0 -1
  160. package/dist-esm/src/index.js +0 -13
  161. package/dist-esm/src/index.js.map +0 -1
  162. package/dist-esm/src/isUnexpected.js.map +0 -1
  163. package/dist-esm/src/models.js +0 -4
  164. package/dist-esm/src/outputModels.js +0 -4
  165. package/dist-esm/src/paginateHelper.js.map +0 -1
  166. package/dist-esm/src/parameters.js +0 -4
  167. package/dist-esm/src/parameters.js.map +0 -1
  168. package/dist-esm/src/responses.js +0 -4
  169. package/dist-esm/src/responses.js.map +0 -1
  170. package/types/ai-anomaly-detector.d.ts +0 -1086
@@ -0,0 +1,367 @@
1
+ /** The response of entire anomaly detection. */
2
+ export interface UnivariateEntireDetectionResultOutput {
3
+ /**
4
+ * Frequency extracted from the series, zero means no recurrent pattern has been
5
+ * found.
6
+ */
7
+ period: number;
8
+ /**
9
+ * ExpectedValues contain expected value for each input point. The index of the
10
+ * array is consistent with the input series.
11
+ */
12
+ expectedValues: number[];
13
+ /**
14
+ * UpperMargins contain upper margin of each input point. UpperMargin is used to
15
+ * calculate upperBoundary, which equals to expectedValue + (100 -
16
+ * marginScale)*upperMargin. Anomalies in response can be filtered by
17
+ * upperBoundary and lowerBoundary. By adjusting marginScale value, less
18
+ * significant anomalies can be filtered in client side. The index of the array is
19
+ * consistent with the input series.
20
+ */
21
+ upperMargins: number[];
22
+ /**
23
+ * LowerMargins contain lower margin of each input point. LowerMargin is used to
24
+ * calculate lowerBoundary, which equals to expectedValue - (100 -
25
+ * marginScale)*lowerMargin. Points between the boundary can be marked as normal
26
+ * ones in client side. The index of the array is consistent with the input
27
+ * series.
28
+ */
29
+ lowerMargins: number[];
30
+ /**
31
+ * IsAnomaly contains anomaly properties for each input point. True means an
32
+ * anomaly either negative or positive has been detected. The index of the array
33
+ * is consistent with the input series.
34
+ */
35
+ isAnomaly: boolean[];
36
+ /**
37
+ * IsNegativeAnomaly contains anomaly status in negative direction for each input
38
+ * point. True means a negative anomaly has been detected. A negative anomaly
39
+ * means the point is detected as an anomaly and its real value is smaller than
40
+ * the expected one. The index of the array is consistent with the input series.
41
+ */
42
+ isNegativeAnomaly: boolean[];
43
+ /**
44
+ * IsPositiveAnomaly contain anomaly status in positive direction for each input
45
+ * point. True means a positive anomaly has been detected. A positive anomaly
46
+ * means the point is detected as an anomaly and its real value is larger than the
47
+ * expected one. The index of the array is consistent with the input series.
48
+ */
49
+ isPositiveAnomaly: boolean[];
50
+ /**
51
+ * The severity score for each input point. The larger the value is, the more
52
+ * sever the anomaly is. For normal points, the "severity" is always 0.
53
+ */
54
+ severity?: number[];
55
+ }
56
+ /** Error information returned by the API. */
57
+ export interface AnomalyDetectorErrorOutput {
58
+ /**
59
+ * The error code.
60
+ *
61
+ * Possible values: InvalidCustomInterval, BadArgument, InvalidGranularity, InvalidPeriod, InvalidModelArgument, InvalidSeries, InvalidJsonFormat, RequiredGranularity, RequiredSeries, InvalidImputeMode, InvalidImputeFixedValue
62
+ */
63
+ code?: string;
64
+ /** A message explaining the error reported by the service. */
65
+ message?: string;
66
+ }
67
+ /** The response of last anomaly detection. */
68
+ export interface UnivariateLastDetectionResultOutput {
69
+ /**
70
+ * Frequency extracted from the series, zero means no recurrent pattern has been
71
+ * found.
72
+ */
73
+ period: number;
74
+ /** Suggested input series points needed for detecting the latest point. */
75
+ suggestedWindow: number;
76
+ /** Expected value of the latest point. */
77
+ expectedValue: number;
78
+ /**
79
+ * Upper margin of the latest point. UpperMargin is used to calculate
80
+ * upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin.
81
+ * If the value of latest point is between upperBoundary and lowerBoundary, it
82
+ * should be treated as normal value. By adjusting marginScale value, anomaly
83
+ * status of latest point can be changed.
84
+ */
85
+ upperMargin: number;
86
+ /**
87
+ * Lower margin of the latest point. LowerMargin is used to calculate
88
+ * lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin.
89
+ *
90
+ */
91
+ lowerMargin: number;
92
+ /**
93
+ * Anomaly status of the latest point, true means the latest point is an anomaly
94
+ * either in negative direction or positive direction.
95
+ */
96
+ isAnomaly: boolean;
97
+ /**
98
+ * Anomaly status in negative direction of the latest point. True means the latest
99
+ * point is an anomaly and its real value is smaller than the expected one.
100
+ */
101
+ isNegativeAnomaly: boolean;
102
+ /**
103
+ * Anomaly status in positive direction of the latest point. True means the latest
104
+ * point is an anomaly and its real value is larger than the expected one.
105
+ */
106
+ isPositiveAnomaly: boolean;
107
+ /**
108
+ * The severity score for the last input point. The larger the value is, the more
109
+ * sever the anomaly is. For normal points, the "severity" is always 0.
110
+ */
111
+ severity?: number;
112
+ }
113
+ /** The response of change point detection. */
114
+ export interface UnivariateChangePointDetectionResultOutput {
115
+ /**
116
+ * Frequency extracted from the series, zero means no recurrent pattern has been
117
+ * found.
118
+ */
119
+ readonly period?: number;
120
+ /**
121
+ * isChangePoint contains change point properties for each input point. True means
122
+ * an anomaly either negative or positive has been detected. The index of the
123
+ * array is consistent with the input series.
124
+ */
125
+ isChangePoint?: boolean[];
126
+ /** the change point confidence of each point */
127
+ confidenceScores?: number[];
128
+ }
129
+ /** Detection results for the given resultId. */
130
+ export interface MultivariateDetectionResultOutput {
131
+ /** Result identifier, which is used to fetch the results of an inference call. */
132
+ resultId: string;
133
+ /** Multivariate anomaly detection status. */
134
+ summary: MultivariateBatchDetectionResultSummaryOutput;
135
+ /** Detection result for each timestamp. */
136
+ results: Array<AnomalyStateOutput>;
137
+ }
138
+ /** Multivariate anomaly detection status. */
139
+ export interface MultivariateBatchDetectionResultSummaryOutput {
140
+ /** Status of detection results. One of CREATED, RUNNING, READY, and FAILED. */
141
+ status: "CREATED" | "RUNNING" | "READY" | "FAILED";
142
+ /** Error message when detection is failed. */
143
+ errors?: Array<ErrorResponseOutput>;
144
+ /** Variable Status. */
145
+ variableStates?: Array<VariableStateOutput>;
146
+ /**
147
+ * Detection request for batch inference. This is an asynchronous inference which
148
+ * will need another API to get detection results.
149
+ */
150
+ setupInfo: MultivariateBatchDetectionOptionsOutput;
151
+ }
152
+ /** ErrorResponse contains code and message that shows the error information. */
153
+ export interface ErrorResponseOutput {
154
+ /** The error code. */
155
+ code: string;
156
+ /** The message explaining the error reported by the service. */
157
+ message: string;
158
+ }
159
+ /** Variable Status. */
160
+ export interface VariableStateOutput {
161
+ /** Variable name in variable states. */
162
+ variable?: string;
163
+ /** Proportion of missing values that need to be filled by fillNAMethod. */
164
+ filledNARatio?: number;
165
+ /** Number of effective data points before applying fillNAMethod. */
166
+ effectiveCount?: number;
167
+ /** First valid timestamp with value of input data. */
168
+ firstTimestamp?: string;
169
+ /** Last valid timestamp with value of input data. */
170
+ lastTimestamp?: string;
171
+ }
172
+ /**
173
+ * Detection request for batch inference. This is an asynchronous inference which
174
+ * will need another API to get detection results.
175
+ */
176
+ export interface MultivariateBatchDetectionOptionsOutput {
177
+ /**
178
+ * Source link to the input data to indicate an accessible Azure storage Uri,
179
+ * either pointed to an Azure blob storage folder, or pointed to a CSV file in
180
+ * Azure blob storage based on you data schema selection. The data schema should
181
+ * be exactly the same with those used in the training phase.
182
+ */
183
+ dataSource: string;
184
+ /**
185
+ * An optional field, which is used to specify the number of top contributed
186
+ * variables for one anomalous timestamp in the response. The default number is
187
+ * 10.
188
+ */
189
+ topContributorCount: number;
190
+ /**
191
+ * A required field, indicating the start time of data for detection, which should
192
+ * be date-time of ISO 8601 format.
193
+ */
194
+ startTime: string;
195
+ /**
196
+ * A required field, indicating the end time of data for detection, which should
197
+ * be date-time of ISO 8601 format.
198
+ */
199
+ endTime: string;
200
+ }
201
+ /** Anomaly status and information. */
202
+ export interface AnomalyStateOutput {
203
+ /** The timestamp for this anomaly. */
204
+ timestamp: string;
205
+ /** The detailed value of this anomalous timestamp. */
206
+ value?: AnomalyValueOutput;
207
+ /** Error message for the current timestamp. */
208
+ errors?: Array<ErrorResponseOutput>;
209
+ }
210
+ /** Detailed information of the anomalous timestamp. */
211
+ export interface AnomalyValueOutput {
212
+ /** True if an anomaly is detected at the current timestamp. */
213
+ isAnomaly: boolean;
214
+ /**
215
+ * Indicates the significance of the anomaly. The higher the severity, the more
216
+ * significant the anomaly is.
217
+ */
218
+ severity: number;
219
+ /**
220
+ * Raw anomaly score of severity, will help indicate the degree of abnormality as
221
+ * well.
222
+ */
223
+ score: number;
224
+ /** Interpretation of this anomalous timestamp. */
225
+ interpretation?: Array<AnomalyInterpretationOutput>;
226
+ }
227
+ /** Interpretation of the anomalous timestamp. */
228
+ export interface AnomalyInterpretationOutput {
229
+ /** Variable. */
230
+ variable?: string;
231
+ /**
232
+ * This score shows the percentage contributing to the anomalous timestamp. A
233
+ * number between 0 and 1.
234
+ */
235
+ contributionScore?: number;
236
+ /** Correlation changes among the anomalous variables */
237
+ correlationChanges?: CorrelationChangesOutput;
238
+ }
239
+ /** Correlation changes among the anomalous variables */
240
+ export interface CorrelationChangesOutput {
241
+ /** The correlated variables that have correlation changes under an anomaly. */
242
+ changedVariables?: string[];
243
+ }
244
+ /**
245
+ * Training result of a model including its status, errors and diagnostics
246
+ * information.
247
+ */
248
+ export interface ModelInfoOutput {
249
+ /**
250
+ * Source link to the input data to indicate an accessible Azure storage Uri,
251
+ * either pointed to an Azure blob storage folder, or pointed to a CSV file in
252
+ * Azure blob storage based on you data schema selection.
253
+ */
254
+ dataSource: string;
255
+ /**
256
+ * Data schema of input data source: OneTable or MultiTable. The default
257
+ * DataSchema is OneTable.
258
+ *
259
+ * Possible values: OneTable, MultiTable
260
+ */
261
+ dataSchema?: string;
262
+ /**
263
+ * A required field, indicating the start time of training data, which should be
264
+ * date-time of ISO 8601 format.
265
+ */
266
+ startTime: string;
267
+ /**
268
+ * A required field, indicating the end time of training data, which should be
269
+ * date-time of ISO 8601 format.
270
+ */
271
+ endTime: string;
272
+ /**
273
+ * An optional field. The display name of the model whose maximum length is 24
274
+ * characters.
275
+ */
276
+ displayName?: string;
277
+ /**
278
+ * An optional field, indicating how many previous timestamps will be used to
279
+ * detect whether the timestamp is anomaly or not.
280
+ */
281
+ slidingWindow?: number;
282
+ /** An optional field, indicating the manner to align multiple variables. */
283
+ alignPolicy?: AlignPolicyOutput;
284
+ /** Model status. One of CREATED, RUNNING, READY, and FAILED. */
285
+ status?: "CREATED" | "RUNNING" | "READY" | "FAILED";
286
+ /** Error messages when failed to create a model. */
287
+ readonly errors?: Array<ErrorResponseOutput>;
288
+ /** Diagnostics information to help inspect the states of model or variable. */
289
+ diagnosticsInfo?: DiagnosticsInfoOutput;
290
+ }
291
+ /** An optional field, indicating the manner to align multiple variables. */
292
+ export interface AlignPolicyOutput {
293
+ /**
294
+ * An optional field, indicating how to align different variables to the same
295
+ * time-range. Either Inner or Outer.
296
+ */
297
+ alignMode?: "Inner" | "Outer";
298
+ /**
299
+ * An optional field, indicating how missing values will be filled. One of
300
+ * Previous, Subsequent, Linear, Zero, Fixed.
301
+ *
302
+ * Possible values: Previous, Subsequent, Linear, Zero, Fixed
303
+ */
304
+ fillNAMethod?: string;
305
+ /** An optional field. Required when fillNAMethod is Fixed. */
306
+ paddingValue?: number;
307
+ }
308
+ /** Diagnostics information to help inspect the states of model or variable. */
309
+ export interface DiagnosticsInfoOutput {
310
+ /** Model status. */
311
+ modelState?: ModelStateOutput;
312
+ /** Variable Status. */
313
+ variableStates?: Array<VariableStateOutput>;
314
+ }
315
+ /** Model status. */
316
+ export interface ModelStateOutput {
317
+ /**
318
+ * This indicates the number of passes of the entire training dataset the
319
+ * algorithm has completed.
320
+ */
321
+ epochIds?: number[];
322
+ /**
323
+ * List of metrics used to assess how the model fits the training data for each
324
+ * epoch.
325
+ */
326
+ trainLosses?: number[];
327
+ /**
328
+ * List of metrics used to assess how the model fits the validation set for each
329
+ * epoch.
330
+ */
331
+ validationLosses?: number[];
332
+ /** Latency for each epoch. */
333
+ latenciesInSeconds?: number[];
334
+ }
335
+ /** Response of getting a model. */
336
+ export interface AnomalyDetectionModelOutput {
337
+ /** Model identifier. */
338
+ modelId: string;
339
+ /** Date and time (UTC) when the model was created. */
340
+ createdTime: string;
341
+ /** Date and time (UTC) when the model was last updated. */
342
+ lastUpdatedTime: string;
343
+ /**
344
+ * Training result of a model including its status, errors and diagnostics
345
+ * information.
346
+ */
347
+ modelInfo?: ModelInfoOutput;
348
+ }
349
+ /** Response of listing models. */
350
+ export interface ModelListOutput {
351
+ /** List of models. */
352
+ models: Array<AnomalyDetectionModelOutput>;
353
+ /** Number of trained multivariate models. */
354
+ currentCount: number;
355
+ /** Maximum number of models that can be trained for this Anomaly Detector resource. */
356
+ maxCount: number;
357
+ /** The link to fetch more models. */
358
+ nextLink?: string;
359
+ }
360
+ /** Results of last detection. */
361
+ export interface MultivariateLastDetectionResultOutput {
362
+ /** Variable Status. */
363
+ variableStates?: Array<VariableStateOutput>;
364
+ /** Anomaly status and information. */
365
+ results?: Array<AnomalyStateOutput>;
366
+ }
367
+ //# sourceMappingURL=outputModels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAGA,gDAAgD;AAChD,MAAM,WAAW,qCAAqC;IACpD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB;;;;;OAKG;IACH,iBAAiB,EAAE,OAAO,EAAE,CAAC;IAC7B;;;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3
+ export {};
4
+ //# sourceMappingURL=outputModels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The response of entire anomaly detection. */\nexport interface UnivariateEntireDetectionResultOutput {\n /**\n * Frequency extracted from the series, zero means no recurrent pattern has been\n * found.\n */\n period: number;\n /**\n * ExpectedValues contain expected value for each input point. The index of the\n * array is consistent with the input series.\n */\n expectedValues: number[];\n /**\n * UpperMargins contain upper margin of each input point. UpperMargin is used to\n * calculate upperBoundary, which equals to expectedValue + (100 -\n * marginScale)*upperMargin. Anomalies in response can be filtered by\n * upperBoundary and lowerBoundary. By adjusting marginScale value, less\n * significant anomalies can be filtered in client side. The index of the array is\n * consistent with the input series.\n */\n upperMargins: number[];\n /**\n * LowerMargins contain lower margin of each input point. LowerMargin is used to\n * calculate lowerBoundary, which equals to expectedValue - (100 -\n * marginScale)*lowerMargin. Points between the boundary can be marked as normal\n * ones in client side. The index of the array is consistent with the input\n * series.\n */\n lowerMargins: number[];\n /**\n * IsAnomaly contains anomaly properties for each input point. True means an\n * anomaly either negative or positive has been detected. The index of the array\n * is consistent with the input series.\n */\n isAnomaly: boolean[];\n /**\n * IsNegativeAnomaly contains anomaly status in negative direction for each input\n * point. True means a negative anomaly has been detected. A negative anomaly\n * means the point is detected as an anomaly and its real value is smaller than\n * the expected one. The index of the array is consistent with the input series.\n */\n isNegativeAnomaly: boolean[];\n /**\n * IsPositiveAnomaly contain anomaly status in positive direction for each input\n * point. True means a positive anomaly has been detected. A positive anomaly\n * means the point is detected as an anomaly and its real value is larger than the\n * expected one. The index of the array is consistent with the input series.\n */\n isPositiveAnomaly: boolean[];\n /**\n * The severity score for each input point. The larger the value is, the more\n * sever the anomaly is. For normal points, the \"severity\" is always 0.\n */\n severity?: number[];\n}\n\n/** Error information returned by the API. */\nexport interface AnomalyDetectorErrorOutput {\n /**\n * The error code.\n *\n * Possible values: InvalidCustomInterval, BadArgument, InvalidGranularity, InvalidPeriod, InvalidModelArgument, InvalidSeries, InvalidJsonFormat, RequiredGranularity, RequiredSeries, InvalidImputeMode, InvalidImputeFixedValue\n */\n code?: string;\n /** A message explaining the error reported by the service. */\n message?: string;\n}\n\n/** The response of last anomaly detection. */\nexport interface UnivariateLastDetectionResultOutput {\n /**\n * Frequency extracted from the series, zero means no recurrent pattern has been\n * found.\n */\n period: number;\n /** Suggested input series points needed for detecting the latest point. */\n suggestedWindow: number;\n /** Expected value of the latest point. */\n expectedValue: number;\n /**\n * Upper margin of the latest point. UpperMargin is used to calculate\n * upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin.\n * If the value of latest point is between upperBoundary and lowerBoundary, it\n * should be treated as normal value. By adjusting marginScale value, anomaly\n * status of latest point can be changed.\n */\n upperMargin: number;\n /**\n * Lower margin of the latest point. LowerMargin is used to calculate\n * lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin.\n *\n */\n lowerMargin: number;\n /**\n * Anomaly status of the latest point, true means the latest point is an anomaly\n * either in negative direction or positive direction.\n */\n isAnomaly: boolean;\n /**\n * Anomaly status in negative direction of the latest point. True means the latest\n * point is an anomaly and its real value is smaller than the expected one.\n */\n isNegativeAnomaly: boolean;\n /**\n * Anomaly status in positive direction of the latest point. True means the latest\n * point is an anomaly and its real value is larger than the expected one.\n */\n isPositiveAnomaly: boolean;\n /**\n * The severity score for the last input point. The larger the value is, the more\n * sever the anomaly is. For normal points, the \"severity\" is always 0.\n */\n severity?: number;\n}\n\n/** The response of change point detection. */\nexport interface UnivariateChangePointDetectionResultOutput {\n /**\n * Frequency extracted from the series, zero means no recurrent pattern has been\n * found.\n */\n readonly period?: number;\n /**\n * isChangePoint contains change point properties for each input point. True means\n * an anomaly either negative or positive has been detected. The index of the\n * array is consistent with the input series.\n */\n isChangePoint?: boolean[];\n /** the change point confidence of each point */\n confidenceScores?: number[];\n}\n\n/** Detection results for the given resultId. */\nexport interface MultivariateDetectionResultOutput {\n /** Result identifier, which is used to fetch the results of an inference call. */\n resultId: string;\n /** Multivariate anomaly detection status. */\n summary: MultivariateBatchDetectionResultSummaryOutput;\n /** Detection result for each timestamp. */\n results: Array<AnomalyStateOutput>;\n}\n\n/** Multivariate anomaly detection status. */\nexport interface MultivariateBatchDetectionResultSummaryOutput {\n /** Status of detection results. One of CREATED, RUNNING, READY, and FAILED. */\n status: \"CREATED\" | \"RUNNING\" | \"READY\" | \"FAILED\";\n /** Error message when detection is failed. */\n errors?: Array<ErrorResponseOutput>;\n /** Variable Status. */\n variableStates?: Array<VariableStateOutput>;\n /**\n * Detection request for batch inference. This is an asynchronous inference which\n * will need another API to get detection results.\n */\n setupInfo: MultivariateBatchDetectionOptionsOutput;\n}\n\n/** ErrorResponse contains code and message that shows the error information. */\nexport interface ErrorResponseOutput {\n /** The error code. */\n code: string;\n /** The message explaining the error reported by the service. */\n message: string;\n}\n\n/** Variable Status. */\nexport interface VariableStateOutput {\n /** Variable name in variable states. */\n variable?: string;\n /** Proportion of missing values that need to be filled by fillNAMethod. */\n filledNARatio?: number;\n /** Number of effective data points before applying fillNAMethod. */\n effectiveCount?: number;\n /** First valid timestamp with value of input data. */\n firstTimestamp?: string;\n /** Last valid timestamp with value of input data. */\n lastTimestamp?: string;\n}\n\n/**\n * Detection request for batch inference. This is an asynchronous inference which\n * will need another API to get detection results.\n */\nexport interface MultivariateBatchDetectionOptionsOutput {\n /**\n * Source link to the input data to indicate an accessible Azure storage Uri,\n * either pointed to an Azure blob storage folder, or pointed to a CSV file in\n * Azure blob storage based on you data schema selection. The data schema should\n * be exactly the same with those used in the training phase.\n */\n dataSource: string;\n /**\n * An optional field, which is used to specify the number of top contributed\n * variables for one anomalous timestamp in the response. The default number is\n * 10.\n */\n topContributorCount: number;\n /**\n * A required field, indicating the start time of data for detection, which should\n * be date-time of ISO 8601 format.\n */\n startTime: string;\n /**\n * A required field, indicating the end time of data for detection, which should\n * be date-time of ISO 8601 format.\n */\n endTime: string;\n}\n\n/** Anomaly status and information. */\nexport interface AnomalyStateOutput {\n /** The timestamp for this anomaly. */\n timestamp: string;\n /** The detailed value of this anomalous timestamp. */\n value?: AnomalyValueOutput;\n /** Error message for the current timestamp. */\n errors?: Array<ErrorResponseOutput>;\n}\n\n/** Detailed information of the anomalous timestamp. */\nexport interface AnomalyValueOutput {\n /** True if an anomaly is detected at the current timestamp. */\n isAnomaly: boolean;\n /**\n * Indicates the significance of the anomaly. The higher the severity, the more\n * significant the anomaly is.\n */\n severity: number;\n /**\n * Raw anomaly score of severity, will help indicate the degree of abnormality as\n * well.\n */\n score: number;\n /** Interpretation of this anomalous timestamp. */\n interpretation?: Array<AnomalyInterpretationOutput>;\n}\n\n/** Interpretation of the anomalous timestamp. */\nexport interface AnomalyInterpretationOutput {\n /** Variable. */\n variable?: string;\n /**\n * This score shows the percentage contributing to the anomalous timestamp. A\n * number between 0 and 1.\n */\n contributionScore?: number;\n /** Correlation changes among the anomalous variables */\n correlationChanges?: CorrelationChangesOutput;\n}\n\n/** Correlation changes among the anomalous variables */\nexport interface CorrelationChangesOutput {\n /** The correlated variables that have correlation changes under an anomaly. */\n changedVariables?: string[];\n}\n\n/**\n * Training result of a model including its status, errors and diagnostics\n * information.\n */\nexport interface ModelInfoOutput {\n /**\n * Source link to the input data to indicate an accessible Azure storage Uri,\n * either pointed to an Azure blob storage folder, or pointed to a CSV file in\n * Azure blob storage based on you data schema selection.\n */\n dataSource: string;\n /**\n * Data schema of input data source: OneTable or MultiTable. The default\n * DataSchema is OneTable.\n *\n * Possible values: OneTable, MultiTable\n */\n dataSchema?: string;\n /**\n * A required field, indicating the start time of training data, which should be\n * date-time of ISO 8601 format.\n */\n startTime: string;\n /**\n * A required field, indicating the end time of training data, which should be\n * date-time of ISO 8601 format.\n */\n endTime: string;\n /**\n * An optional field. The display name of the model whose maximum length is 24\n * characters.\n */\n displayName?: string;\n /**\n * An optional field, indicating how many previous timestamps will be used to\n * detect whether the timestamp is anomaly or not.\n */\n slidingWindow?: number;\n /** An optional field, indicating the manner to align multiple variables. */\n alignPolicy?: AlignPolicyOutput;\n /** Model status. One of CREATED, RUNNING, READY, and FAILED. */\n status?: \"CREATED\" | \"RUNNING\" | \"READY\" | \"FAILED\";\n /** Error messages when failed to create a model. */\n readonly errors?: Array<ErrorResponseOutput>;\n /** Diagnostics information to help inspect the states of model or variable. */\n diagnosticsInfo?: DiagnosticsInfoOutput;\n}\n\n/** An optional field, indicating the manner to align multiple variables. */\nexport interface AlignPolicyOutput {\n /**\n * An optional field, indicating how to align different variables to the same\n * time-range. Either Inner or Outer.\n */\n alignMode?: \"Inner\" | \"Outer\";\n /**\n * An optional field, indicating how missing values will be filled. One of\n * Previous, Subsequent, Linear, Zero, Fixed.\n *\n * Possible values: Previous, Subsequent, Linear, Zero, Fixed\n */\n fillNAMethod?: string;\n /** An optional field. Required when fillNAMethod is Fixed. */\n paddingValue?: number;\n}\n\n/** Diagnostics information to help inspect the states of model or variable. */\nexport interface DiagnosticsInfoOutput {\n /** Model status. */\n modelState?: ModelStateOutput;\n /** Variable Status. */\n variableStates?: Array<VariableStateOutput>;\n}\n\n/** Model status. */\nexport interface ModelStateOutput {\n /**\n * This indicates the number of passes of the entire training dataset the\n * algorithm has completed.\n */\n epochIds?: number[];\n /**\n * List of metrics used to assess how the model fits the training data for each\n * epoch.\n */\n trainLosses?: number[];\n /**\n * List of metrics used to assess how the model fits the validation set for each\n * epoch.\n */\n validationLosses?: number[];\n /** Latency for each epoch. */\n latenciesInSeconds?: number[];\n}\n\n/** Response of getting a model. */\nexport interface AnomalyDetectionModelOutput {\n /** Model identifier. */\n modelId: string;\n /** Date and time (UTC) when the model was created. */\n createdTime: string;\n /** Date and time (UTC) when the model was last updated. */\n lastUpdatedTime: string;\n /**\n * Training result of a model including its status, errors and diagnostics\n * information.\n */\n modelInfo?: ModelInfoOutput;\n}\n\n/** Response of listing models. */\nexport interface ModelListOutput {\n /** List of models. */\n models: Array<AnomalyDetectionModelOutput>;\n /** Number of trained multivariate models. */\n currentCount: number;\n /** Maximum number of models that can be trained for this Anomaly Detector resource. */\n maxCount: number;\n /** The link to fetch more models. */\n nextLink?: string;\n}\n\n/** Results of last detection. */\nexport interface MultivariateLastDetectionResultOutput {\n /** Variable Status. */\n variableStates?: Array<VariableStateOutput>;\n /** Anomaly status and information. */\n results?: Array<AnomalyStateOutput>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,47 @@
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ /**
4
+ * Helper type to extract the type of an array
5
+ */
6
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
7
+ /**
8
+ * The type of a custom function that defines how to get a page and a link to the next one if any.
9
+ */
10
+ export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
11
+ page: TPage;
12
+ nextPageLink?: string;
13
+ }>;
14
+ /**
15
+ * Options for the paging helper
16
+ */
17
+ export interface PagingOptions<TResponse> {
18
+ /**
19
+ * Custom function to extract pagination details for crating the PagedAsyncIterableIterator
20
+ */
21
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
22
+ }
23
+ /**
24
+ * Helper type to infer the Type of the paged elements from the response type
25
+ * This type is generated based on the swagger information for x-ms-pageable
26
+ * specifically on the itemName property which indicates the property of the response
27
+ * where the page items are found. The default value is `value`.
28
+ * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
29
+ */
30
+ export type PaginateReturn<TResult> = TResult extends {
31
+ body: {
32
+ value?: infer TPage;
33
+ };
34
+ } | {
35
+ body: {
36
+ models?: infer TPage;
37
+ };
38
+ } ? GetArrayType<TPage> : Array<unknown>;
39
+ /**
40
+ * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
41
+ * @param client - Client to use for sending the next page requests
42
+ * @param initialResponse - Initial response containing the nextLink and current page of elements
43
+ * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
44
+ * @returns - PagedAsyncIterableIterator to iterate the elements
45
+ */
46
+ export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
47
+ //# sourceMappingURL=paginateHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AAElF,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAG7E;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SACzC;IACE,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACD;IACE,IAAI,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAChC,GACD,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA4BvD"}
@@ -0,0 +1,103 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { getPagedAsyncIterator } from "@azure/core-paging";
4
+ import { createRestError } from "@azure-rest/core-client";
5
+ /**
6
+ * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
7
+ * @param client - Client to use for sending the next page requests
8
+ * @param initialResponse - Initial response containing the nextLink and current page of elements
9
+ * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
10
+ * @returns - PagedAsyncIterableIterator to iterate the elements
11
+ */
12
+ export function paginate(client, initialResponse, options = {}) {
13
+ let firstRun = true;
14
+ // We need to check the response for success before trying to inspect it looking for
15
+ // the properties to use for nextLink and itemName
16
+ checkPagingRequest(initialResponse);
17
+ const { itemName, nextLinkName } = getPaginationProperties(initialResponse);
18
+ const { customGetPage } = options;
19
+ const pagedResult = {
20
+ firstPageLink: "",
21
+ getPage: typeof customGetPage === "function"
22
+ ? customGetPage
23
+ : async (pageLink) => {
24
+ const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
25
+ firstRun = false;
26
+ checkPagingRequest(result);
27
+ const nextLink = getNextLink(result.body, nextLinkName);
28
+ const values = getElements(result.body, itemName);
29
+ return {
30
+ page: values,
31
+ nextPageLink: nextLink,
32
+ };
33
+ },
34
+ };
35
+ return getPagedAsyncIterator(pagedResult);
36
+ }
37
+ /**
38
+ * Gets for the value of nextLink in the body
39
+ */
40
+ function getNextLink(body, nextLinkName) {
41
+ if (!nextLinkName) {
42
+ return undefined;
43
+ }
44
+ const nextLink = body[nextLinkName];
45
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
46
+ throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
47
+ }
48
+ return nextLink;
49
+ }
50
+ /**
51
+ * Gets the elements of the current request in the body.
52
+ */
53
+ function getElements(body, itemName) {
54
+ const value = body[itemName];
55
+ // value has to be an array according to the x-ms-pageable extension.
56
+ // The fact that this must be an array is used above to calculate the
57
+ // type of elements in the page in PaginateReturn
58
+ if (!Array.isArray(value)) {
59
+ throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
60
+ }
61
+ return value ?? [];
62
+ }
63
+ /**
64
+ * Checks if a request failed
65
+ */
66
+ function checkPagingRequest(response) {
67
+ const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
68
+ if (!Http2xxStatusCodes.includes(response.status)) {
69
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
70
+ }
71
+ }
72
+ /**
73
+ * Extracts the itemName and nextLinkName from the initial response to use them for pagination
74
+ */
75
+ function getPaginationProperties(initialResponse) {
76
+ // Build a set with the passed custom nextLinkNames
77
+ const nextLinkNames = new Set(["nextLink"]);
78
+ // Build a set with the passed custom set of itemNames
79
+ const itemNames = new Set(["value", "models"]);
80
+ let nextLinkName;
81
+ let itemName;
82
+ for (const name of nextLinkNames) {
83
+ const nextLink = initialResponse.body[name];
84
+ if (nextLink) {
85
+ nextLinkName = name;
86
+ break;
87
+ }
88
+ }
89
+ for (const name of itemNames) {
90
+ const item = initialResponse.body[name];
91
+ if (item) {
92
+ itemName = name;
93
+ break;
94
+ }
95
+ }
96
+ if (!itemName) {
97
+ throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${[
98
+ ...itemNames,
99
+ ].join(" OR ")}`);
100
+ }
101
+ return { itemName, nextLinkName };
102
+ }
103
+ //# sourceMappingURL=paginateHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginateHelper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sDAAsD;IACtD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE/C,IAAI,YAAgC,CAAC;IACrC,IAAI,QAA4B,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAI,eAAe,CAAC,IAAgC,CAAC,IAAI,CAAW,CAAC;QACnF,IAAI,QAAQ,EAAE,CAAC;YACb,YAAY,GAAG,IAAI,CAAC;YACpB,MAAM;QACR,CAAC;IACH,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAI,eAAe,CAAC,IAAgC,CAAC,IAAI,CAAW,CAAC;QAC/E,IAAI,IAAI,EAAE,CAAC;YACT,QAAQ,GAAG,IAAI,CAAC;YAChB,MAAM;QACR,CAAC;IACH,CAAC;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,kFAAkF;YAChF,GAAG,SAAS;SACb,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CACjB,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AACpC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { getPagedAsyncIterator } from \"@azure/core-paging\";\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends\n | {\n body: { value?: infer TPage };\n }\n | {\n body: { models?: infer TPage };\n }\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n // We need to check the response for success before trying to inspect it looking for\n // the properties to use for nextLink and itemName\n checkPagingRequest(initialResponse);\n const { itemName, nextLinkName } = getPaginationProperties(initialResponse);\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n\n/**\n * Extracts the itemName and nextLinkName from the initial response to use them for pagination\n */\nfunction getPaginationProperties(initialResponse: PathUncheckedResponse) {\n // Build a set with the passed custom nextLinkNames\n const nextLinkNames = new Set([\"nextLink\"]);\n\n // Build a set with the passed custom set of itemNames\n const itemNames = new Set([\"value\", \"models\"]);\n\n let nextLinkName: string | undefined;\n let itemName: string | undefined;\n\n for (const name of nextLinkNames) {\n const nextLink = (initialResponse.body as Record<string, unknown>)[name] as string;\n if (nextLink) {\n nextLinkName = name;\n break;\n }\n }\n\n for (const name of itemNames) {\n const item = (initialResponse.body as Record<string, unknown>)[name] as string;\n if (item) {\n itemName = name;\n break;\n }\n }\n\n if (!itemName) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${[\n ...itemNames,\n ].join(\" OR \")}`,\n );\n }\n\n return { itemName, nextLinkName };\n}\n"]}
@@ -0,0 +1,46 @@
1
+ import type { RequestParameters } from "@azure-rest/core-client";
2
+ import type { UnivariateDetectionOptions, UnivariateChangePointDetectionOptions, ModelInfo, MultivariateBatchDetectionOptions, MultivariateLastDetectionOptions } from "./models.js";
3
+ export interface DetectUnivariateEntireSeriesBodyParam {
4
+ /** Method of univariate anomaly detection. */
5
+ body: UnivariateDetectionOptions;
6
+ }
7
+ export type DetectUnivariateEntireSeriesParameters = DetectUnivariateEntireSeriesBodyParam & RequestParameters;
8
+ export interface DetectUnivariateLastPointBodyParam {
9
+ /** Method of univariate anomaly detection. */
10
+ body: UnivariateDetectionOptions;
11
+ }
12
+ export type DetectUnivariateLastPointParameters = DetectUnivariateLastPointBodyParam & RequestParameters;
13
+ export interface DetectUnivariateChangePointBodyParam {
14
+ /** Method of univariate anomaly detection. */
15
+ body: UnivariateChangePointDetectionOptions;
16
+ }
17
+ export type DetectUnivariateChangePointParameters = DetectUnivariateChangePointBodyParam & RequestParameters;
18
+ export type GetMultivariateBatchDetectionResultParameters = RequestParameters;
19
+ export interface TrainMultivariateModelBodyParam {
20
+ /** Model information. */
21
+ body: ModelInfo;
22
+ }
23
+ export type TrainMultivariateModelParameters = TrainMultivariateModelBodyParam & RequestParameters;
24
+ export interface ListMultivariateModelsQueryParamProperties {
25
+ /** Skip indicates how many models will be skipped. */
26
+ skip?: number;
27
+ /** Top indicates how many models will be fetched. */
28
+ top?: number;
29
+ }
30
+ export interface ListMultivariateModelsQueryParam {
31
+ queryParameters?: ListMultivariateModelsQueryParamProperties;
32
+ }
33
+ export type ListMultivariateModelsParameters = ListMultivariateModelsQueryParam & RequestParameters;
34
+ export type DeleteMultivariateModelParameters = RequestParameters;
35
+ export type GetMultivariateModelParameters = RequestParameters;
36
+ export interface DetectMultivariateBatchAnomalyBodyParam {
37
+ /** Request of multivariate anomaly detection. */
38
+ body: MultivariateBatchDetectionOptions;
39
+ }
40
+ export type DetectMultivariateBatchAnomalyParameters = DetectMultivariateBatchAnomalyBodyParam & RequestParameters;
41
+ export interface DetectMultivariateLastAnomalyBodyParam {
42
+ /** Request of last detection. */
43
+ body: MultivariateLastDetectionOptions;
44
+ }
45
+ export type DetectMultivariateLastAnomalyParameters = DetectMultivariateLastAnomalyBodyParam & RequestParameters;
46
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,0BAA0B,EAC1B,qCAAqC,EACrC,SAAS,EACT,iCAAiC,EACjC,gCAAgC,EACjC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,qCAAqC;IACpD,8CAA8C;IAC9C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,MAAM,sCAAsC,GAAG,qCAAqC,GACxF,iBAAiB,CAAC;AAEpB,MAAM,WAAW,kCAAkC;IACjD,8CAA8C;IAC9C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,MAAM,mCAAmC,GAAG,kCAAkC,GAClF,iBAAiB,CAAC;AAEpB,MAAM,WAAW,oCAAoC;IACnD,8CAA8C;IAC9C,IAAI,EAAE,qCAAqC,CAAC;CAC7C;AAED,MAAM,MAAM,qCAAqC,GAAG,oCAAoC,GACtF,iBAAiB,CAAC;AACpB,MAAM,MAAM,6CAA6C,GAAG,iBAAiB,CAAC;AAE9E,MAAM,WAAW,+BAA+B;IAC9C,yBAAyB;IACzB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,MAAM,gCAAgC,GAAG,+BAA+B,GAAG,iBAAiB,CAAC;AAEnG,MAAM,WAAW,0CAA0C;IACzD,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gCAAgC;IAC/C,eAAe,CAAC,EAAE,0CAA0C,CAAC;CAC9D;AAED,MAAM,MA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