@azure-rest/ai-anomaly-detector 1.0.0-alpha.20221107.2 → 1.0.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.
@@ -8,11 +8,8 @@ import { Client } from '@azure-rest/core-client';
8
8
  import { ClientOptions } from '@azure-rest/core-client';
9
9
  import { HttpResponse } from '@azure-rest/core-client';
10
10
  import { KeyCredential } from '@azure/core-auth';
11
- import { LroEngineOptions } from '@azure/core-lro';
12
11
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
13
12
  import { PathUncheckedResponse } from '@azure-rest/core-client';
14
- import { PollerLike } from '@azure/core-lro';
15
- import { PollOperationState } from '@azure/core-lro';
16
13
  import { RawHttpHeaders } from '@azure/core-rest-pipeline';
17
14
  import { RequestParameters } from '@azure-rest/core-client';
18
15
  import { StreamableMethod } from '@azure-rest/core-client';
@@ -20,20 +17,28 @@ import { StreamableMethod } from '@azure-rest/core-client';
20
17
  // @public
21
18
  export interface AlignPolicy {
22
19
  alignMode?: "Inner" | "Outer";
23
- fillNAMethod?: "Previous" | "Subsequent" | "Linear" | "Zero" | "Fixed";
20
+ fillNAMethod?: string;
24
21
  paddingValue?: number;
25
22
  }
26
23
 
27
24
  // @public
28
25
  export interface AlignPolicyOutput {
29
26
  alignMode?: "Inner" | "Outer";
30
- fillNAMethod?: "Previous" | "Subsequent" | "Linear" | "Zero" | "Fixed";
27
+ fillNAMethod?: string;
31
28
  paddingValue?: number;
32
29
  }
33
30
 
31
+ // @public
32
+ export interface AnomalyDetectionModelOutput {
33
+ createdTime: string;
34
+ lastUpdatedTime: string;
35
+ modelId: string;
36
+ modelInfo?: ModelInfoOutput;
37
+ }
38
+
34
39
  // @public
35
40
  export interface AnomalyDetectorErrorOutput {
36
- code?: "InvalidCustomInterval" | "BadArgument" | "InvalidGranularity" | "InvalidPeriod" | "InvalidModelArgument" | "InvalidSeries" | "InvalidJsonFormat" | "RequiredGranularity" | "RequiredSeries" | "InvalidImputeMode" | "InvalidImputeFixedValue";
41
+ code?: string;
37
42
  message?: string;
38
43
  }
39
44
 
@@ -43,109 +48,40 @@ export type AnomalyDetectorRestClient = Client & {
43
48
  };
44
49
 
45
50
  // @public (undocumented)
51
+ export interface AnomalyDetectorRestClientOptions extends ClientOptions {
52
+ // (undocumented)
53
+ ApiVersion?: string;
54
+ }
55
+
56
+ // @public
46
57
  export interface AnomalyInterpretationOutput {
47
58
  contributionScore?: number;
48
- // (undocumented)
49
59
  correlationChanges?: CorrelationChangesOutput;
50
60
  variable?: string;
51
61
  }
52
62
 
53
- // @public (undocumented)
63
+ // @public
54
64
  export interface AnomalyStateOutput {
55
65
  errors?: Array<ErrorResponseOutput>;
56
66
  timestamp: string;
57
- // (undocumented)
58
67
  value?: AnomalyValueOutput;
59
68
  }
60
69
 
61
70
  // @public
62
- export interface AnomalyValueInterpretationItemOutput extends AnomalyInterpretationOutput {
63
- }
64
-
65
- // @public (undocumented)
66
71
  export interface AnomalyValueOutput {
67
- // (undocumented)
68
- interpretation?: Array<AnomalyValueInterpretationItemOutput>;
72
+ interpretation?: Array<AnomalyInterpretationOutput>;
69
73
  isAnomaly: boolean;
70
74
  score: number;
71
75
  severity: number;
72
76
  }
73
77
 
74
78
  // @public
75
- export interface ChangePointDetectRequest {
76
- customInterval?: number;
77
- granularity: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
78
- period?: number;
79
- series: Array<TimeSeriesPoint>;
80
- stableTrendWindow?: number;
81
- threshold?: number;
82
- }
83
-
84
- // @public
85
- export interface ChangePointDetectResponseOutput {
86
- confidenceScores?: Array<number>;
87
- isChangePoint?: Array<boolean>;
88
- period?: number;
89
- }
90
-
91
- // @public (undocumented)
92
79
  export interface CorrelationChangesOutput {
93
- changedVariables?: Array<string>;
80
+ changedVariables?: string[];
94
81
  }
95
82
 
96
- // @public (undocumented)
97
- export interface CreateAndTrainMultivariateModel {
98
- get(options?: ListMultivariateModelsParameters): StreamableMethod<ListMultivariateModels200Response | ListMultivariateModelsDefaultResponse>;
99
- post(options: CreateAndTrainMultivariateModelParameters): StreamableMethod<CreateAndTrainMultivariateModel201Response | CreateAndTrainMultivariateModelDefaultResponse>;
100
- }
101
-
102
- // @public (undocumented)
103
- export interface CreateAndTrainMultivariateModel201Headers {
104
- location?: string;
105
- }
106
-
107
- // @public
108
- export interface CreateAndTrainMultivariateModel201Response extends HttpResponse {
109
- // (undocumented)
110
- body: ModelOutput;
111
- // (undocumented)
112
- headers: RawHttpHeaders & CreateAndTrainMultivariateModel201Headers;
113
- // (undocumented)
114
- status: "201";
115
- }
116
-
117
- // @public (undocumented)
118
- export interface CreateAndTrainMultivariateModelBodyParam {
119
- body: ModelInfo;
120
- }
121
-
122
- // @public (undocumented)
123
- export interface CreateAndTrainMultivariateModelDefaultHeaders {
124
- "x-ms-error-code"?: string;
125
- }
126
-
127
- // @public
128
- export interface CreateAndTrainMultivariateModelDefaultResponse extends HttpResponse {
129
- // (undocumented)
130
- body: ErrorResponseOutput;
131
- // (undocumented)
132
- headers: RawHttpHeaders & CreateAndTrainMultivariateModelDefaultHeaders;
133
- // (undocumented)
134
- status: string;
135
- }
136
-
137
- // @public (undocumented)
138
- export interface CreateAndTrainMultivariateModelMediaTypesParam {
139
- contentType?: "application/json";
140
- }
141
-
142
- // @public (undocumented)
143
- export type CreateAndTrainMultivariateModelParameters = CreateAndTrainMultivariateModelMediaTypesParam & CreateAndTrainMultivariateModelBodyParam & RequestParameters;
144
-
145
83
  // @public
146
- function createClient(Endpoint: string, credentials: KeyCredential, options?: ClientOptions & {
147
- apiVersion?: string;
148
- }): AnomalyDetectorRestClient;
84
+ function createClient(Endpoint: string, credentials: KeyCredential, options?: AnomalyDetectorRestClientOptions): AnomalyDetectorRestClient;
149
85
  export default createClient;
150
86
 
151
87
  // @public (undocumented)
@@ -156,8 +92,6 @@ export interface DeleteMultivariateModel {
156
92
 
157
93
  // @public
158
94
  export interface DeleteMultivariateModel204Response extends HttpResponse {
159
- // (undocumented)
160
- body: Record<string, unknown>;
161
95
  // (undocumented)
162
96
  status: "204";
163
97
  }
@@ -167,7 +101,7 @@ export interface DeleteMultivariateModelDefaultHeaders {
167
101
  "x-ms-error-code"?: string;
168
102
  }
169
103
 
170
- // @public
104
+ // @public (undocumented)
171
105
  export interface DeleteMultivariateModelDefaultResponse extends HttpResponse {
172
106
  // (undocumented)
173
107
  body: ErrorResponseOutput;
@@ -180,38 +114,6 @@ export interface DeleteMultivariateModelDefaultResponse extends HttpResponse {
180
114
  // @public (undocumented)
181
115
  export type DeleteMultivariateModelParameters = RequestParameters;
182
116
 
183
- // @public
184
- export interface DetectionRequest {
185
- dataSource: string;
186
- endTime: Date | string;
187
- startTime: Date | string;
188
- topContributorCount: number;
189
- }
190
-
191
- // @public
192
- export interface DetectionRequestOutput {
193
- dataSource: string;
194
- endTime: string;
195
- startTime: string;
196
- topContributorCount: number;
197
- }
198
-
199
- // @public
200
- export interface DetectionResultOutput {
201
- resultId: string;
202
- results: Array<AnomalyStateOutput>;
203
- summary: DetectionResultSummaryOutput;
204
- }
205
-
206
- // @public
207
- export interface DetectionResultSummaryOutput {
208
- errors?: Array<ErrorResponseOutput>;
209
- setupInfo: DetectionRequestOutput;
210
- status: "CREATED" | "RUNNING" | "READY" | "FAILED";
211
- // (undocumented)
212
- variableStates?: Array<VariableStateOutput>;
213
- }
214
-
215
117
  // @public (undocumented)
216
118
  export interface DetectMultivariateBatchAnomaly {
217
119
  post(options: DetectMultivariateBatchAnomalyParameters): StreamableMethod<DetectMultivariateBatchAnomaly202Response | DetectMultivariateBatchAnomalyDefaultResponse>;
@@ -219,14 +121,14 @@ export interface DetectMultivariateBatchAnomaly {
219
121
 
220
122
  // @public (undocumented)
221
123
  export interface DetectMultivariateBatchAnomaly202Headers {
222
- "operation-id"?: string;
223
- "operation-location"?: string;
124
+ "operation-id": string;
125
+ "operation-location": string;
224
126
  }
225
127
 
226
128
  // @public
227
129
  export interface DetectMultivariateBatchAnomaly202Response extends HttpResponse {
228
130
  // (undocumented)
229
- body: DetectionResultOutput;
131
+ body: MultivariateDetectionResultOutput;
230
132
  // (undocumented)
231
133
  headers: RawHttpHeaders & DetectMultivariateBatchAnomaly202Headers;
232
134
  // (undocumented)
@@ -235,7 +137,7 @@ export interface DetectMultivariateBatchAnomaly202Response extends HttpResponse
235
137
 
236
138
  // @public (undocumented)
237
139
  export interface DetectMultivariateBatchAnomalyBodyParam {
238
- body: DetectionRequest;
140
+ body: MultivariateBatchDetectionOptions;
239
141
  }
240
142
 
241
143
  // @public (undocumented)
@@ -243,7 +145,7 @@ export interface DetectMultivariateBatchAnomalyDefaultHeaders {
243
145
  "x-ms-error-code"?: string;
244
146
  }
245
147
 
246
- // @public
148
+ // @public (undocumented)
247
149
  export interface DetectMultivariateBatchAnomalyDefaultResponse extends HttpResponse {
248
150
  // (undocumented)
249
151
  body: ErrorResponseOutput;
@@ -254,12 +156,7 @@ export interface DetectMultivariateBatchAnomalyDefaultResponse extends HttpRespo
254
156
  }
255
157
 
256
158
  // @public (undocumented)
257
- export interface DetectMultivariateBatchAnomalyMediaTypesParam {
258
- contentType?: "application/json";
259
- }
260
-
261
- // @public (undocumented)
262
- export type DetectMultivariateBatchAnomalyParameters = DetectMultivariateBatchAnomalyMediaTypesParam & DetectMultivariateBatchAnomalyBodyParam & RequestParameters;
159
+ export type DetectMultivariateBatchAnomalyParameters = DetectMultivariateBatchAnomalyBodyParam & RequestParameters;
263
160
 
264
161
  // @public (undocumented)
265
162
  export interface DetectMultivariateLastAnomaly {
@@ -269,14 +166,14 @@ export interface DetectMultivariateLastAnomaly {
269
166
  // @public
270
167
  export interface DetectMultivariateLastAnomaly200Response extends HttpResponse {
271
168
  // (undocumented)
272
- body: LastDetectionResultOutput;
169
+ body: MultivariateLastDetectionResultOutput;
273
170
  // (undocumented)
274
171
  status: "200";
275
172
  }
276
173
 
277
174
  // @public (undocumented)
278
175
  export interface DetectMultivariateLastAnomalyBodyParam {
279
- body: LastDetectionRequest;
176
+ body: MultivariateLastDetectionOptions;
280
177
  }
281
178
 
282
179
  // @public (undocumented)
@@ -284,7 +181,7 @@ export interface DetectMultivariateLastAnomalyDefaultHeaders {
284
181
  "x-ms-error-code"?: string;
285
182
  }
286
183
 
287
- // @public
184
+ // @public (undocumented)
288
185
  export interface DetectMultivariateLastAnomalyDefaultResponse extends HttpResponse {
289
186
  // (undocumented)
290
187
  body: ErrorResponseOutput;
@@ -295,24 +192,7 @@ export interface DetectMultivariateLastAnomalyDefaultResponse extends HttpRespon
295
192
  }
296
193
 
297
194
  // @public (undocumented)
298
- export interface DetectMultivariateLastAnomalyMediaTypesParam {
299
- contentType?: "application/json";
300
- }
301
-
302
- // @public (undocumented)
303
- export type DetectMultivariateLastAnomalyParameters = DetectMultivariateLastAnomalyMediaTypesParam & DetectMultivariateLastAnomalyBodyParam & RequestParameters;
304
-
305
- // @public
306
- export interface DetectRequest {
307
- customInterval?: number;
308
- granularity?: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
309
- imputeFixedValue?: number;
310
- imputeMode?: "auto" | "previous" | "linear" | "fixed" | "zero" | "notFill";
311
- maxAnomalyRatio?: number;
312
- period?: number;
313
- sensitivity?: number;
314
- series: Array<TimeSeriesPoint>;
315
- }
195
+ export type DetectMultivariateLastAnomalyParameters = DetectMultivariateLastAnomalyBodyParam & RequestParameters;
316
196
 
317
197
  // @public (undocumented)
318
198
  export interface DetectUnivariateChangePoint {
@@ -322,14 +202,14 @@ export interface DetectUnivariateChangePoint {
322
202
  // @public
323
203
  export interface DetectUnivariateChangePoint200Response extends HttpResponse {
324
204
  // (undocumented)
325
- body: ChangePointDetectResponseOutput;
205
+ body: UnivariateChangePointDetectionResultOutput;
326
206
  // (undocumented)
327
207
  status: "200";
328
208
  }
329
209
 
330
210
  // @public (undocumented)
331
211
  export interface DetectUnivariateChangePointBodyParam {
332
- body: ChangePointDetectRequest;
212
+ body: UnivariateChangePointDetectionOptions;
333
213
  }
334
214
 
335
215
  // @public (undocumented)
@@ -337,7 +217,7 @@ export interface DetectUnivariateChangePointDefaultHeaders {
337
217
  "x-ms-error-code"?: string;
338
218
  }
339
219
 
340
- // @public
220
+ // @public (undocumented)
341
221
  export interface DetectUnivariateChangePointDefaultResponse extends HttpResponse {
342
222
  // (undocumented)
343
223
  body: AnomalyDetectorErrorOutput;
@@ -348,12 +228,7 @@ export interface DetectUnivariateChangePointDefaultResponse extends HttpResponse
348
228
  }
349
229
 
350
230
  // @public (undocumented)
351
- export interface DetectUnivariateChangePointMediaTypesParam {
352
- contentType?: "application/json";
353
- }
354
-
355
- // @public (undocumented)
356
- export type DetectUnivariateChangePointParameters = DetectUnivariateChangePointMediaTypesParam & DetectUnivariateChangePointBodyParam & RequestParameters;
231
+ export type DetectUnivariateChangePointParameters = DetectUnivariateChangePointBodyParam & RequestParameters;
357
232
 
358
233
  // @public (undocumented)
359
234
  export interface DetectUnivariateEntireSeries {
@@ -363,14 +238,14 @@ export interface DetectUnivariateEntireSeries {
363
238
  // @public
364
239
  export interface DetectUnivariateEntireSeries200Response extends HttpResponse {
365
240
  // (undocumented)
366
- body: EntireDetectResponseOutput;
241
+ body: UnivariateEntireDetectionResultOutput;
367
242
  // (undocumented)
368
243
  status: "200";
369
244
  }
370
245
 
371
246
  // @public (undocumented)
372
247
  export interface DetectUnivariateEntireSeriesBodyParam {
373
- body: DetectRequest;
248
+ body: UnivariateDetectionOptions;
374
249
  }
375
250
 
376
251
  // @public (undocumented)
@@ -378,7 +253,7 @@ export interface DetectUnivariateEntireSeriesDefaultHeaders {
378
253
  "x-ms-error-code"?: string;
379
254
  }
380
255
 
381
- // @public
256
+ // @public (undocumented)
382
257
  export interface DetectUnivariateEntireSeriesDefaultResponse extends HttpResponse {
383
258
  // (undocumented)
384
259
  body: AnomalyDetectorErrorOutput;
@@ -389,12 +264,7 @@ export interface DetectUnivariateEntireSeriesDefaultResponse extends HttpRespons
389
264
  }
390
265
 
391
266
  // @public (undocumented)
392
- export interface DetectUnivariateEntireSeriesMediaTypesParam {
393
- contentType?: "application/json";
394
- }
395
-
396
- // @public (undocumented)
397
- export type DetectUnivariateEntireSeriesParameters = DetectUnivariateEntireSeriesMediaTypesParam & DetectUnivariateEntireSeriesBodyParam & RequestParameters;
267
+ export type DetectUnivariateEntireSeriesParameters = DetectUnivariateEntireSeriesBodyParam & RequestParameters;
398
268
 
399
269
  // @public (undocumented)
400
270
  export interface DetectUnivariateLastPoint {
@@ -404,14 +274,14 @@ export interface DetectUnivariateLastPoint {
404
274
  // @public
405
275
  export interface DetectUnivariateLastPoint200Response extends HttpResponse {
406
276
  // (undocumented)
407
- body: LastDetectResponseOutput;
277
+ body: UnivariateLastDetectionResultOutput;
408
278
  // (undocumented)
409
279
  status: "200";
410
280
  }
411
281
 
412
282
  // @public (undocumented)
413
283
  export interface DetectUnivariateLastPointBodyParam {
414
- body: DetectRequest;
284
+ body: UnivariateDetectionOptions;
415
285
  }
416
286
 
417
287
  // @public (undocumented)
@@ -419,7 +289,7 @@ export interface DetectUnivariateLastPointDefaultHeaders {
419
289
  "x-ms-error-code"?: string;
420
290
  }
421
291
 
422
- // @public
292
+ // @public (undocumented)
423
293
  export interface DetectUnivariateLastPointDefaultResponse extends HttpResponse {
424
294
  // (undocumented)
425
295
  body: AnomalyDetectorErrorOutput;
@@ -430,48 +300,27 @@ export interface DetectUnivariateLastPointDefaultResponse extends HttpResponse {
430
300
  }
431
301
 
432
302
  // @public (undocumented)
433
- export interface DetectUnivariateLastPointMediaTypesParam {
434
- contentType?: "application/json";
435
- }
436
-
437
- // @public (undocumented)
438
- export type DetectUnivariateLastPointParameters = DetectUnivariateLastPointMediaTypesParam & DetectUnivariateLastPointBodyParam & RequestParameters;
303
+ export type DetectUnivariateLastPointParameters = DetectUnivariateLastPointBodyParam & RequestParameters;
439
304
 
440
305
  // @public
441
306
  export interface DiagnosticsInfo {
442
- // (undocumented)
443
307
  modelState?: ModelState;
444
- // (undocumented)
445
308
  variableStates?: Array<VariableState>;
446
309
  }
447
310
 
448
311
  // @public
449
312
  export interface DiagnosticsInfoOutput {
450
- // (undocumented)
451
313
  modelState?: ModelStateOutput;
452
- // (undocumented)
453
314
  variableStates?: Array<VariableStateOutput>;
454
315
  }
455
316
 
456
317
  // @public
457
- export interface EntireDetectResponseOutput {
458
- expectedValues: Array<number>;
459
- isAnomaly: Array<boolean>;
460
- isNegativeAnomaly: Array<boolean>;
461
- isPositiveAnomaly: Array<boolean>;
462
- lowerMargins: Array<number>;
463
- period: number;
464
- severity?: Array<number>;
465
- upperMargins: Array<number>;
466
- }
467
-
468
- // @public (undocumented)
469
318
  export interface ErrorResponse {
470
319
  code: string;
471
320
  message: string;
472
321
  }
473
322
 
474
- // @public (undocumented)
323
+ // @public
475
324
  export interface ErrorResponseOutput {
476
325
  code: string;
477
326
  message: string;
@@ -480,9 +329,6 @@ export interface ErrorResponseOutput {
480
329
  // @public
481
330
  export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
482
331
 
483
- // @public
484
- export function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: LroEngineOptions<TResult, PollOperationState<TResult>>): PollerLike<PollOperationState<TResult>, TResult>;
485
-
486
332
  // @public (undocumented)
487
333
  export interface GetMultivariateBatchDetectionResult {
488
334
  get(options?: GetMultivariateBatchDetectionResultParameters): StreamableMethod<GetMultivariateBatchDetectionResult200Response | GetMultivariateBatchDetectionResultDefaultResponse>;
@@ -491,7 +337,7 @@ export interface GetMultivariateBatchDetectionResult {
491
337
  // @public
492
338
  export interface GetMultivariateBatchDetectionResult200Response extends HttpResponse {
493
339
  // (undocumented)
494
- body: DetectionResultOutput;
340
+ body: MultivariateDetectionResultOutput;
495
341
  // (undocumented)
496
342
  status: "200";
497
343
  }
@@ -501,7 +347,7 @@ export interface GetMultivariateBatchDetectionResultDefaultHeaders {
501
347
  "x-ms-error-code"?: string;
502
348
  }
503
349
 
504
- // @public
350
+ // @public (undocumented)
505
351
  export interface GetMultivariateBatchDetectionResultDefaultResponse extends HttpResponse {
506
352
  // (undocumented)
507
353
  body: ErrorResponseOutput;
@@ -517,7 +363,7 @@ export type GetMultivariateBatchDetectionResultParameters = RequestParameters;
517
363
  // @public
518
364
  export interface GetMultivariateModel200Response extends HttpResponse {
519
365
  // (undocumented)
520
- body: ModelOutput;
366
+ body: AnomalyDetectionModelOutput;
521
367
  // (undocumented)
522
368
  status: "200";
523
369
  }
@@ -527,7 +373,7 @@ export interface GetMultivariateModelDefaultHeaders {
527
373
  "x-ms-error-code"?: string;
528
374
  }
529
375
 
530
- // @public
376
+ // @public (undocumented)
531
377
  export interface GetMultivariateModelDefaultResponse extends HttpResponse {
532
378
  // (undocumented)
533
379
  body: ErrorResponseOutput;
@@ -559,7 +405,7 @@ export function isUnexpected(response: DetectUnivariateChangePoint200Response |
559
405
  export function isUnexpected(response: GetMultivariateBatchDetectionResult200Response | GetMultivariateBatchDetectionResultDefaultResponse): response is GetMultivariateBatchDetectionResultDefaultResponse;
560
406
 
561
407
  // @public (undocumented)
562
- export function isUnexpected(response: CreateAndTrainMultivariateModel201Response | CreateAndTrainMultivariateModelDefaultResponse): response is CreateAndTrainMultivariateModelDefaultResponse;
408
+ export function isUnexpected(response: TrainMultivariateModel201Response | TrainMultivariateModelDefaultResponse): response is TrainMultivariateModelDefaultResponse;
563
409
 
564
410
  // @public (undocumented)
565
411
  export function isUnexpected(response: ListMultivariateModels200Response | ListMultivariateModelsDefaultResponse): response is ListMultivariateModelsDefaultResponse;
@@ -576,33 +422,6 @@ export function isUnexpected(response: DetectMultivariateBatchAnomaly202Response
576
422
  // @public (undocumented)
577
423
  export function isUnexpected(response: DetectMultivariateLastAnomaly200Response | DetectMultivariateLastAnomalyDefaultResponse): response is DetectMultivariateLastAnomalyDefaultResponse;
578
424
 
579
- // @public (undocumented)
580
- export interface LastDetectionRequest {
581
- topContributorCount: number;
582
- variables: Array<VariableValues>;
583
- }
584
-
585
- // @public (undocumented)
586
- export interface LastDetectionResultOutput {
587
- // (undocumented)
588
- results?: Array<AnomalyStateOutput>;
589
- // (undocumented)
590
- variableStates?: Array<VariableStateOutput>;
591
- }
592
-
593
- // @public
594
- export interface LastDetectResponseOutput {
595
- expectedValue: number;
596
- isAnomaly: boolean;
597
- isNegativeAnomaly: boolean;
598
- isPositiveAnomaly: boolean;
599
- lowerMargin: number;
600
- period: number;
601
- severity?: number;
602
- suggestedWindow: number;
603
- upperMargin: number;
604
- }
605
-
606
425
  // @public
607
426
  export interface ListMultivariateModels200Response extends HttpResponse {
608
427
  // (undocumented)
@@ -616,7 +435,7 @@ export interface ListMultivariateModelsDefaultHeaders {
616
435
  "x-ms-error-code"?: string;
617
436
  }
618
437
 
619
- // @public
438
+ // @public (undocumented)
620
439
  export interface ListMultivariateModelsDefaultResponse extends HttpResponse {
621
440
  // (undocumented)
622
441
  body: ErrorResponseOutput;
@@ -644,12 +463,11 @@ export interface ListMultivariateModelsQueryParamProperties {
644
463
  // @public
645
464
  export interface ModelInfo {
646
465
  alignPolicy?: AlignPolicy;
647
- dataSchema?: "OneTable" | "MultiTable";
466
+ dataSchema?: string;
648
467
  dataSource: string;
649
468
  diagnosticsInfo?: DiagnosticsInfo;
650
469
  displayName?: string;
651
470
  endTime: Date | string;
652
- errors?: Array<ErrorResponse>;
653
471
  slidingWindow?: number;
654
472
  startTime: Date | string;
655
473
  status?: "CREATED" | "RUNNING" | "READY" | "FAILED";
@@ -658,12 +476,12 @@ export interface ModelInfo {
658
476
  // @public
659
477
  export interface ModelInfoOutput {
660
478
  alignPolicy?: AlignPolicyOutput;
661
- dataSchema?: "OneTable" | "MultiTable";
479
+ dataSchema?: string;
662
480
  dataSource: string;
663
481
  diagnosticsInfo?: DiagnosticsInfoOutput;
664
482
  displayName?: string;
665
483
  endTime: string;
666
- errors?: Array<ErrorResponseOutput>;
484
+ readonly errors?: Array<ErrorResponseOutput>;
667
485
  slidingWindow?: number;
668
486
  startTime: string;
669
487
  status?: "CREATED" | "RUNNING" | "READY" | "FAILED";
@@ -673,32 +491,67 @@ export interface ModelInfoOutput {
673
491
  export interface ModelListOutput {
674
492
  currentCount: number;
675
493
  maxCount: number;
676
- models: Array<ModelOutput>;
494
+ models: Array<AnomalyDetectionModelOutput>;
677
495
  nextLink?: string;
678
496
  }
679
497
 
680
498
  // @public
681
- export interface ModelOutput {
682
- createdTime: string;
683
- lastUpdatedTime: string;
684
- modelId: string;
685
- modelInfo?: ModelInfoOutput;
686
- }
687
-
688
- // @public (undocumented)
689
499
  export interface ModelState {
690
- epochIds?: Array<number>;
691
- latenciesInSeconds?: Array<number>;
692
- trainLosses?: Array<number>;
693
- validationLosses?: Array<number>;
500
+ epochIds?: number[];
501
+ latenciesInSeconds?: number[];
502
+ trainLosses?: number[];
503
+ validationLosses?: number[];
694
504
  }
695
505
 
696
- // @public (undocumented)
506
+ // @public
697
507
  export interface ModelStateOutput {
698
- epochIds?: Array<number>;
699
- latenciesInSeconds?: Array<number>;
700
- trainLosses?: Array<number>;
701
- validationLosses?: Array<number>;
508
+ epochIds?: number[];
509
+ latenciesInSeconds?: number[];
510
+ trainLosses?: number[];
511
+ validationLosses?: number[];
512
+ }
513
+
514
+ // @public
515
+ export interface MultivariateBatchDetectionOptions {
516
+ dataSource: string;
517
+ endTime: Date | string;
518
+ startTime: Date | string;
519
+ topContributorCount: number;
520
+ }
521
+
522
+ // @public
523
+ export interface MultivariateBatchDetectionOptionsOutput {
524
+ dataSource: string;
525
+ endTime: string;
526
+ startTime: string;
527
+ topContributorCount: number;
528
+ }
529
+
530
+ // @public
531
+ export interface MultivariateBatchDetectionResultSummaryOutput {
532
+ errors?: Array<ErrorResponseOutput>;
533
+ setupInfo: MultivariateBatchDetectionOptionsOutput;
534
+ status: "CREATED" | "RUNNING" | "READY" | "FAILED";
535
+ variableStates?: Array<VariableStateOutput>;
536
+ }
537
+
538
+ // @public
539
+ export interface MultivariateDetectionResultOutput {
540
+ resultId: string;
541
+ results: Array<AnomalyStateOutput>;
542
+ summary: MultivariateBatchDetectionResultSummaryOutput;
543
+ }
544
+
545
+ // @public
546
+ export interface MultivariateLastDetectionOptions {
547
+ topContributorCount: number;
548
+ variables: Array<VariableValues>;
549
+ }
550
+
551
+ // @public
552
+ export interface MultivariateLastDetectionResultOutput {
553
+ results?: Array<AnomalyStateOutput>;
554
+ variableStates?: Array<VariableStateOutput>;
702
555
  }
703
556
 
704
557
  // @public
@@ -726,7 +579,7 @@ export interface Routes {
726
579
  (path: "/timeseries/last/detect"): DetectUnivariateLastPoint;
727
580
  (path: "/timeseries/changepoint/detect"): DetectUnivariateChangePoint;
728
581
  (path: "/multivariate/detect-batch/{resultId}", resultId: string): GetMultivariateBatchDetectionResult;
729
- (path: "/multivariate/models"): CreateAndTrainMultivariateModel;
582
+ (path: "/multivariate/models"): TrainMultivariateModel;
730
583
  (path: "/multivariate/models/{modelId}", modelId: string): DeleteMultivariateModel;
731
584
  (path: "/multivariate/models/{modelId}:detect-batch", modelId: string): DetectMultivariateBatchAnomaly;
732
585
  (path: "/multivariate/models/{modelId}:detect-last", modelId: string): DetectMultivariateLastAnomaly;
@@ -739,6 +592,104 @@ export interface TimeSeriesPoint {
739
592
  }
740
593
 
741
594
  // @public (undocumented)
595
+ export interface TrainMultivariateModel {
596
+ get(options?: ListMultivariateModelsParameters): StreamableMethod<ListMultivariateModels200Response | ListMultivariateModelsDefaultResponse>;
597
+ post(options: TrainMultivariateModelParameters): StreamableMethod<TrainMultivariateModel201Response | TrainMultivariateModelDefaultResponse>;
598
+ }
599
+
600
+ // @public (undocumented)
601
+ export interface TrainMultivariateModel201Headers {
602
+ location: string;
603
+ }
604
+
605
+ // @public
606
+ export interface TrainMultivariateModel201Response extends HttpResponse {
607
+ // (undocumented)
608
+ body: AnomalyDetectionModelOutput;
609
+ // (undocumented)
610
+ headers: RawHttpHeaders & TrainMultivariateModel201Headers;
611
+ // (undocumented)
612
+ status: "201";
613
+ }
614
+
615
+ // @public (undocumented)
616
+ export interface TrainMultivariateModelBodyParam {
617
+ body: ModelInfo;
618
+ }
619
+
620
+ // @public (undocumented)
621
+ export interface TrainMultivariateModelDefaultHeaders {
622
+ "x-ms-error-code"?: string;
623
+ }
624
+
625
+ // @public (undocumented)
626
+ export interface TrainMultivariateModelDefaultResponse extends HttpResponse {
627
+ // (undocumented)
628
+ body: ErrorResponseOutput;
629
+ // (undocumented)
630
+ headers: RawHttpHeaders & TrainMultivariateModelDefaultHeaders;
631
+ // (undocumented)
632
+ status: string;
633
+ }
634
+
635
+ // @public (undocumented)
636
+ export type TrainMultivariateModelParameters = TrainMultivariateModelBodyParam & RequestParameters;
637
+
638
+ // @public
639
+ export interface UnivariateChangePointDetectionOptions {
640
+ customInterval?: number;
641
+ granularity: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
642
+ period?: number;
643
+ series: Array<TimeSeriesPoint>;
644
+ stableTrendWindow?: number;
645
+ threshold?: number;
646
+ }
647
+
648
+ // @public
649
+ export interface UnivariateChangePointDetectionResultOutput {
650
+ confidenceScores?: number[];
651
+ isChangePoint?: boolean[];
652
+ readonly period?: number;
653
+ }
654
+
655
+ // @public
656
+ export interface UnivariateDetectionOptions {
657
+ customInterval?: number;
658
+ granularity?: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
659
+ imputeFixedValue?: number;
660
+ imputeMode?: string;
661
+ maxAnomalyRatio?: number;
662
+ period?: number;
663
+ sensitivity?: number;
664
+ series: Array<TimeSeriesPoint>;
665
+ }
666
+
667
+ // @public
668
+ export interface UnivariateEntireDetectionResultOutput {
669
+ expectedValues: number[];
670
+ isAnomaly: boolean[];
671
+ isNegativeAnomaly: boolean[];
672
+ isPositiveAnomaly: boolean[];
673
+ lowerMargins: number[];
674
+ period: number;
675
+ severity?: number[];
676
+ upperMargins: number[];
677
+ }
678
+
679
+ // @public
680
+ export interface UnivariateLastDetectionResultOutput {
681
+ expectedValue: number;
682
+ isAnomaly: boolean;
683
+ isNegativeAnomaly: boolean;
684
+ isPositiveAnomaly: boolean;
685
+ lowerMargin: number;
686
+ period: number;
687
+ severity?: number;
688
+ suggestedWindow: number;
689
+ upperMargin: number;
690
+ }
691
+
692
+ // @public
742
693
  export interface VariableState {
743
694
  effectiveCount?: number;
744
695
  filledNARatio?: number;
@@ -747,7 +698,7 @@ export interface VariableState {
747
698
  variable?: string;
748
699
  }
749
700
 
750
- // @public (undocumented)
701
+ // @public
751
702
  export interface VariableStateOutput {
752
703
  effectiveCount?: number;
753
704
  filledNARatio?: number;
@@ -756,10 +707,10 @@ export interface VariableStateOutput {
756
707
  variable?: string;
757
708
  }
758
709
 
759
- // @public (undocumented)
710
+ // @public
760
711
  export interface VariableValues {
761
- timestamps: Array<string>;
762
- values: Array<number>;
712
+ timestamps: string[];
713
+ values: number[];
763
714
  variable: string;
764
715
  }
765
716