@azure-rest/onlineexperimentation 1.0.0-alpha.20250613.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/browser/clientDefinitions.d.ts +30 -0
- package/dist/browser/clientDefinitions.js +3 -0
- package/dist/browser/extensibleEnums.d.ts +99 -0
- package/dist/browser/extensibleEnums.js +106 -0
- package/dist/browser/index.d.ts +11 -0
- package/dist/browser/index.js +13 -0
- package/dist/browser/isUnexpected.d.ts +6 -0
- package/dist/browser/isUnexpected.js +72 -0
- package/dist/browser/logger.d.ts +1 -0
- package/dist/browser/logger.js +4 -0
- package/dist/browser/models.d.ts +104 -0
- package/dist/browser/models.js +3 -0
- package/dist/browser/onlineExperimentationClient.d.ts +15 -0
- package/dist/browser/onlineExperimentationClient.js +45 -0
- package/dist/browser/outputModels.d.ts +137 -0
- package/dist/browser/outputModels.js +3 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +67 -0
- package/dist/browser/paginateHelper.js +136 -0
- package/dist/browser/parameters.d.ts +92 -0
- package/dist/browser/parameters.js +3 -0
- package/dist/browser/responses.d.ts +113 -0
- package/dist/browser/responses.js +3 -0
- package/dist/commonjs/clientDefinitions.d.ts +30 -0
- package/dist/commonjs/clientDefinitions.js +4 -0
- package/dist/commonjs/extensibleEnums.d.ts +99 -0
- package/dist/commonjs/extensibleEnums.js +109 -0
- package/dist/commonjs/index.d.ts +11 -0
- package/dist/commonjs/index.js +33 -0
- package/dist/commonjs/isUnexpected.d.ts +6 -0
- package/dist/commonjs/isUnexpected.js +75 -0
- package/dist/commonjs/logger.d.ts +1 -0
- package/dist/commonjs/logger.js +7 -0
- package/dist/commonjs/models.d.ts +104 -0
- package/dist/commonjs/models.js +4 -0
- package/dist/commonjs/onlineExperimentationClient.d.ts +15 -0
- package/dist/commonjs/onlineExperimentationClient.js +48 -0
- package/dist/commonjs/outputModels.d.ts +137 -0
- package/dist/commonjs/outputModels.js +4 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +67 -0
- package/dist/commonjs/paginateHelper.js +139 -0
- package/dist/commonjs/parameters.d.ts +92 -0
- package/dist/commonjs/parameters.js +4 -0
- package/dist/commonjs/responses.d.ts +113 -0
- package/dist/commonjs/responses.js +4 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/clientDefinitions.d.ts +30 -0
- package/dist/esm/clientDefinitions.js +3 -0
- package/dist/esm/extensibleEnums.d.ts +99 -0
- package/dist/esm/extensibleEnums.js +106 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/isUnexpected.d.ts +6 -0
- package/dist/esm/isUnexpected.js +72 -0
- package/dist/esm/logger.d.ts +1 -0
- package/dist/esm/logger.js +4 -0
- package/dist/esm/models.d.ts +104 -0
- package/dist/esm/models.js +3 -0
- package/dist/esm/onlineExperimentationClient.d.ts +15 -0
- package/dist/esm/onlineExperimentationClient.js +45 -0
- package/dist/esm/outputModels.d.ts +137 -0
- package/dist/esm/outputModels.js +3 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +67 -0
- package/dist/esm/paginateHelper.js +136 -0
- package/dist/esm/parameters.d.ts +92 -0
- package/dist/esm/parameters.js +3 -0
- package/dist/esm/responses.d.ts +113 -0
- package/dist/esm/responses.js +3 -0
- package/dist/react-native/clientDefinitions.d.ts +30 -0
- package/dist/react-native/clientDefinitions.js +3 -0
- package/dist/react-native/extensibleEnums.d.ts +99 -0
- package/dist/react-native/extensibleEnums.js +106 -0
- package/dist/react-native/index.d.ts +11 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/isUnexpected.d.ts +6 -0
- package/dist/react-native/isUnexpected.js +72 -0
- package/dist/react-native/logger.d.ts +1 -0
- package/dist/react-native/logger.js +4 -0
- package/dist/react-native/models.d.ts +104 -0
- package/dist/react-native/models.js +3 -0
- package/dist/react-native/onlineExperimentationClient.d.ts +15 -0
- package/dist/react-native/onlineExperimentationClient.js +45 -0
- package/dist/react-native/outputModels.d.ts +137 -0
- package/dist/react-native/outputModels.js +3 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +67 -0
- package/dist/react-native/paginateHelper.js +136 -0
- package/dist/react-native/parameters.d.ts +92 -0
- package/dist/react-native/parameters.js +3 -0
- package/dist/react-native/responses.d.ts +113 -0
- package/dist/react-native/responses.js +3 -0
- package/package.json +138 -0
- package/review/onlineexperimentation.api.md +612 -0
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
## API Report File for "@azure-rest/onlineexperimentation"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import type { Client } from '@azure-rest/core-client';
|
|
8
|
+
import type { ClientOptions } from '@azure-rest/core-client';
|
|
9
|
+
import type { ErrorResponse } from '@azure-rest/core-client';
|
|
10
|
+
import type { HttpResponse } from '@azure-rest/core-client';
|
|
11
|
+
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
12
|
+
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
13
|
+
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
14
|
+
import type { RequestParameters } from '@azure-rest/core-client';
|
|
15
|
+
import type { StreamableMethod } from '@azure-rest/core-client';
|
|
16
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
17
|
+
|
|
18
|
+
// @public
|
|
19
|
+
export interface AggregatedValue {
|
|
20
|
+
eventName: string;
|
|
21
|
+
eventProperty: string;
|
|
22
|
+
filter?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export interface AggregatedValueOutput {
|
|
27
|
+
eventName: string;
|
|
28
|
+
eventProperty: string;
|
|
29
|
+
filter?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @public
|
|
33
|
+
export interface AverageMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
34
|
+
type: "Average";
|
|
35
|
+
value: AggregatedValue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export interface AverageMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
40
|
+
type: "Average";
|
|
41
|
+
value: AggregatedValueOutput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export interface CreateOrUpdateMetric200Headers {
|
|
46
|
+
"x-ms-client-request-id"?: string;
|
|
47
|
+
etag?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// @public
|
|
51
|
+
export interface CreateOrUpdateMetric200Response extends HttpResponse {
|
|
52
|
+
// (undocumented)
|
|
53
|
+
body: ExperimentMetricOutput;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
headers: RawHttpHeaders & CreateOrUpdateMetric200Headers;
|
|
56
|
+
// (undocumented)
|
|
57
|
+
status: "200";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export interface CreateOrUpdateMetric201Headers {
|
|
62
|
+
"x-ms-client-request-id"?: string;
|
|
63
|
+
etag?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export interface CreateOrUpdateMetric201Response extends HttpResponse {
|
|
68
|
+
// (undocumented)
|
|
69
|
+
body: ExperimentMetricOutput;
|
|
70
|
+
// (undocumented)
|
|
71
|
+
headers: RawHttpHeaders & CreateOrUpdateMetric201Headers;
|
|
72
|
+
// (undocumented)
|
|
73
|
+
status: "201";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @public (undocumented)
|
|
77
|
+
export interface CreateOrUpdateMetricBodyParam {
|
|
78
|
+
body: ExperimentMetricResourceMergeAndPatch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// @public (undocumented)
|
|
82
|
+
export interface CreateOrUpdateMetricDefaultHeaders {
|
|
83
|
+
"x-ms-error-code"?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// @public (undocumented)
|
|
87
|
+
export interface CreateOrUpdateMetricDefaultResponse extends HttpResponse {
|
|
88
|
+
// (undocumented)
|
|
89
|
+
body: ErrorResponse;
|
|
90
|
+
// (undocumented)
|
|
91
|
+
headers: RawHttpHeaders & CreateOrUpdateMetricDefaultHeaders;
|
|
92
|
+
// (undocumented)
|
|
93
|
+
status: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// @public (undocumented)
|
|
97
|
+
export interface CreateOrUpdateMetricHeaderParam {
|
|
98
|
+
// (undocumented)
|
|
99
|
+
headers?: RawHttpHeadersInput & CreateOrUpdateMetricHeaders;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// @public (undocumented)
|
|
103
|
+
export interface CreateOrUpdateMetricHeaders {
|
|
104
|
+
"If-Match"?: string;
|
|
105
|
+
"If-Modified-Since"?: string;
|
|
106
|
+
"If-None-Match"?: string;
|
|
107
|
+
"If-Unmodified-Since"?: string;
|
|
108
|
+
"x-ms-client-request-id"?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// @public (undocumented)
|
|
112
|
+
export interface CreateOrUpdateMetricMediaTypesParam {
|
|
113
|
+
contentType: "application/merge-patch+json";
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// @public (undocumented)
|
|
117
|
+
export type CreateOrUpdateMetricParameters = CreateOrUpdateMetricHeaderParam & CreateOrUpdateMetricMediaTypesParam & CreateOrUpdateMetricBodyParam & RequestParameters;
|
|
118
|
+
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export interface DeleteMetric204Headers {
|
|
121
|
+
"x-ms-client-request-id"?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export interface DeleteMetric204Response extends HttpResponse {
|
|
126
|
+
// (undocumented)
|
|
127
|
+
headers: RawHttpHeaders & DeleteMetric204Headers;
|
|
128
|
+
// (undocumented)
|
|
129
|
+
status: "204";
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// @public (undocumented)
|
|
133
|
+
export interface DeleteMetricDefaultHeaders {
|
|
134
|
+
"x-ms-error-code"?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// @public (undocumented)
|
|
138
|
+
export interface DeleteMetricDefaultResponse extends HttpResponse {
|
|
139
|
+
// (undocumented)
|
|
140
|
+
body: ErrorResponse;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
headers: RawHttpHeaders & DeleteMetricDefaultHeaders;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
status: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// @public (undocumented)
|
|
148
|
+
export interface DeleteMetricHeaderParam {
|
|
149
|
+
// (undocumented)
|
|
150
|
+
headers?: RawHttpHeadersInput & DeleteMetricHeaders;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
export interface DeleteMetricHeaders {
|
|
155
|
+
"If-Match"?: string;
|
|
156
|
+
"If-Modified-Since"?: string;
|
|
157
|
+
"If-None-Match"?: string;
|
|
158
|
+
"If-Unmodified-Since"?: string;
|
|
159
|
+
"x-ms-client-request-id"?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// @public (undocumented)
|
|
163
|
+
export type DeleteMetricParameters = DeleteMetricHeaderParam & RequestParameters;
|
|
164
|
+
|
|
165
|
+
// @public
|
|
166
|
+
export type DesiredDirection = string;
|
|
167
|
+
|
|
168
|
+
// @public
|
|
169
|
+
export type DesiredDirectionOutput = string;
|
|
170
|
+
|
|
171
|
+
// @public
|
|
172
|
+
export type DiagnosticCodeOutput = string;
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export interface DiagnosticDetailOutput {
|
|
176
|
+
readonly code: DiagnosticCodeOutput;
|
|
177
|
+
readonly message: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export interface EventCountMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
182
|
+
event: ObservedEvent;
|
|
183
|
+
type: "EventCount";
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// @public
|
|
187
|
+
export interface EventCountMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
188
|
+
event: ObservedEventOutput;
|
|
189
|
+
type: "EventCount";
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// @public
|
|
193
|
+
export interface EventRateMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
194
|
+
event: ObservedEvent;
|
|
195
|
+
rateCondition: string;
|
|
196
|
+
type: "EventRate";
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @public
|
|
200
|
+
export interface EventRateMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
201
|
+
event: ObservedEventOutput;
|
|
202
|
+
rateCondition: string;
|
|
203
|
+
type: "EventRate";
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// @public
|
|
207
|
+
export interface ExperimentMetric {
|
|
208
|
+
categories: string[];
|
|
209
|
+
definition: ExperimentMetricDefinition;
|
|
210
|
+
description: string;
|
|
211
|
+
desiredDirection: DesiredDirection;
|
|
212
|
+
displayName: string;
|
|
213
|
+
lifecycle: LifecycleStage;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// @public
|
|
217
|
+
export type ExperimentMetricDefinition = ExperimentMetricDefinitionParent | EventCountMetricDefinition | UserCountMetricDefinition | EventRateMetricDefinition | UserRateMetricDefinition | SumMetricDefinition | AverageMetricDefinition | PercentileMetricDefinition;
|
|
218
|
+
|
|
219
|
+
// @public
|
|
220
|
+
export type ExperimentMetricDefinitionOutput = ExperimentMetricDefinitionOutputParent | EventCountMetricDefinitionOutput | UserCountMetricDefinitionOutput | EventRateMetricDefinitionOutput | UserRateMetricDefinitionOutput | SumMetricDefinitionOutput | AverageMetricDefinitionOutput | PercentileMetricDefinitionOutput;
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export interface ExperimentMetricDefinitionOutputParent {
|
|
224
|
+
// (undocumented)
|
|
225
|
+
type: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export interface ExperimentMetricDefinitionParent {
|
|
230
|
+
// (undocumented)
|
|
231
|
+
type: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// @public
|
|
235
|
+
export interface ExperimentMetricOutput {
|
|
236
|
+
categories: string[];
|
|
237
|
+
definition: ExperimentMetricDefinitionOutput;
|
|
238
|
+
description: string;
|
|
239
|
+
desiredDirection: DesiredDirectionOutput;
|
|
240
|
+
displayName: string;
|
|
241
|
+
readonly eTag: string;
|
|
242
|
+
readonly id: string;
|
|
243
|
+
readonly lastModifiedAt: string;
|
|
244
|
+
lifecycle: LifecycleStageOutput;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// @public
|
|
248
|
+
export type ExperimentMetricResourceMergeAndPatch = Partial<ExperimentMetric>;
|
|
249
|
+
|
|
250
|
+
// @public
|
|
251
|
+
export interface ExperimentMetricValidationResultOutput {
|
|
252
|
+
readonly diagnostics: Array<DiagnosticDetailOutput>;
|
|
253
|
+
isValid: boolean;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
258
|
+
|
|
259
|
+
// @public (undocumented)
|
|
260
|
+
export interface GetMetric {
|
|
261
|
+
delete(options?: DeleteMetricParameters): StreamableMethod<DeleteMetric204Response | DeleteMetricDefaultResponse>;
|
|
262
|
+
get(options?: GetMetricParameters): StreamableMethod<GetMetric200Response | GetMetricDefaultResponse>;
|
|
263
|
+
patch(options: CreateOrUpdateMetricParameters): StreamableMethod<CreateOrUpdateMetric200Response | CreateOrUpdateMetric201Response | CreateOrUpdateMetricDefaultResponse>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// @public (undocumented)
|
|
267
|
+
export interface GetMetric200Headers {
|
|
268
|
+
"x-ms-client-request-id"?: string;
|
|
269
|
+
etag?: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// @public
|
|
273
|
+
export interface GetMetric200Response extends HttpResponse {
|
|
274
|
+
// (undocumented)
|
|
275
|
+
body: ExperimentMetricOutput;
|
|
276
|
+
// (undocumented)
|
|
277
|
+
headers: RawHttpHeaders & GetMetric200Headers;
|
|
278
|
+
// (undocumented)
|
|
279
|
+
status: "200";
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// @public (undocumented)
|
|
283
|
+
export interface GetMetricDefaultHeaders {
|
|
284
|
+
"x-ms-error-code"?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// @public (undocumented)
|
|
288
|
+
export interface GetMetricDefaultResponse extends HttpResponse {
|
|
289
|
+
// (undocumented)
|
|
290
|
+
body: ErrorResponse;
|
|
291
|
+
// (undocumented)
|
|
292
|
+
headers: RawHttpHeaders & GetMetricDefaultHeaders;
|
|
293
|
+
// (undocumented)
|
|
294
|
+
status: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// @public (undocumented)
|
|
298
|
+
export interface GetMetricHeaderParam {
|
|
299
|
+
// (undocumented)
|
|
300
|
+
headers?: RawHttpHeadersInput & GetMetricHeaders;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// @public (undocumented)
|
|
304
|
+
export interface GetMetricHeaders {
|
|
305
|
+
"If-Match"?: string;
|
|
306
|
+
"If-Modified-Since"?: string;
|
|
307
|
+
"If-None-Match"?: string;
|
|
308
|
+
"If-Unmodified-Since"?: string;
|
|
309
|
+
"x-ms-client-request-id"?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// @public (undocumented)
|
|
313
|
+
export type GetMetricParameters = GetMetricHeaderParam & RequestParameters;
|
|
314
|
+
|
|
315
|
+
// @public
|
|
316
|
+
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
317
|
+
page: TPage;
|
|
318
|
+
nextPageLink?: string;
|
|
319
|
+
}>;
|
|
320
|
+
|
|
321
|
+
// @public (undocumented)
|
|
322
|
+
export function isUnexpected(response: GetMetric200Response | GetMetricDefaultResponse): response is GetMetricDefaultResponse;
|
|
323
|
+
|
|
324
|
+
// @public (undocumented)
|
|
325
|
+
export function isUnexpected(response: CreateOrUpdateMetric200Response | CreateOrUpdateMetric201Response | CreateOrUpdateMetricDefaultResponse): response is CreateOrUpdateMetricDefaultResponse;
|
|
326
|
+
|
|
327
|
+
// @public (undocumented)
|
|
328
|
+
export function isUnexpected(response: DeleteMetric204Response | DeleteMetricDefaultResponse): response is DeleteMetricDefaultResponse;
|
|
329
|
+
|
|
330
|
+
// @public (undocumented)
|
|
331
|
+
export function isUnexpected(response: ValidateMetric200Response | ValidateMetricDefaultResponse): response is ValidateMetricDefaultResponse;
|
|
332
|
+
|
|
333
|
+
// @public (undocumented)
|
|
334
|
+
export function isUnexpected(response: ListMetrics200Response | ListMetricsDefaultResponse): response is ListMetricsDefaultResponse;
|
|
335
|
+
|
|
336
|
+
// @public
|
|
337
|
+
export enum KnownDesiredDirection {
|
|
338
|
+
Decrease = "Decrease",
|
|
339
|
+
Increase = "Increase",
|
|
340
|
+
Neutral = "Neutral"
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// @public
|
|
344
|
+
export enum KnownDiagnosticCode {
|
|
345
|
+
FailedSchemaValidation = "FailedSchemaValidation",
|
|
346
|
+
InvalidEventCondition = "InvalidEventCondition",
|
|
347
|
+
InvalidExperimentMetricDefinition = "InvalidExperimentMetricDefinition",
|
|
348
|
+
UnsupportedEventCondition = "UnsupportedEventCondition"
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// @public
|
|
352
|
+
export enum KnownExperimentMetricType {
|
|
353
|
+
Average = "Average",
|
|
354
|
+
EventCount = "EventCount",
|
|
355
|
+
EventRate = "EventRate",
|
|
356
|
+
Percentile = "Percentile",
|
|
357
|
+
Sum = "Sum",
|
|
358
|
+
UserCount = "UserCount",
|
|
359
|
+
UserRate = "UserRate"
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// @public
|
|
363
|
+
export enum KnownLifecycleStage {
|
|
364
|
+
Active = "Active",
|
|
365
|
+
Inactive = "Inactive"
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// @public
|
|
369
|
+
export enum KnownValidationResult {
|
|
370
|
+
Invalid = "Invalid",
|
|
371
|
+
Valid = "Valid"
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// @public
|
|
375
|
+
export type LifecycleStage = string;
|
|
376
|
+
|
|
377
|
+
// @public
|
|
378
|
+
export type LifecycleStageOutput = string;
|
|
379
|
+
|
|
380
|
+
// @public (undocumented)
|
|
381
|
+
export interface ListMetrics {
|
|
382
|
+
get(options?: ListMetricsParameters): StreamableMethod<ListMetrics200Response | ListMetricsDefaultResponse>;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// @public (undocumented)
|
|
386
|
+
export interface ListMetrics200Headers {
|
|
387
|
+
"x-ms-client-request-id"?: string;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// @public
|
|
391
|
+
export interface ListMetrics200Response extends HttpResponse {
|
|
392
|
+
// (undocumented)
|
|
393
|
+
body: PagedExperimentMetricOutput;
|
|
394
|
+
// (undocumented)
|
|
395
|
+
headers: RawHttpHeaders & ListMetrics200Headers;
|
|
396
|
+
// (undocumented)
|
|
397
|
+
status: "200";
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// @public (undocumented)
|
|
401
|
+
export interface ListMetricsDefaultHeaders {
|
|
402
|
+
"x-ms-error-code"?: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// @public (undocumented)
|
|
406
|
+
export interface ListMetricsDefaultResponse extends HttpResponse {
|
|
407
|
+
// (undocumented)
|
|
408
|
+
body: ErrorResponse;
|
|
409
|
+
// (undocumented)
|
|
410
|
+
headers: RawHttpHeaders & ListMetricsDefaultHeaders;
|
|
411
|
+
// (undocumented)
|
|
412
|
+
status: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// @public (undocumented)
|
|
416
|
+
export interface ListMetricsHeaderParam {
|
|
417
|
+
// (undocumented)
|
|
418
|
+
headers?: RawHttpHeadersInput & ListMetricsHeaders;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// @public (undocumented)
|
|
422
|
+
export interface ListMetricsHeaders {
|
|
423
|
+
"x-ms-client-request-id"?: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// @public (undocumented)
|
|
427
|
+
export type ListMetricsParameters = ListMetricsQueryParam & ListMetricsHeaderParam & RequestParameters;
|
|
428
|
+
|
|
429
|
+
// @public (undocumented)
|
|
430
|
+
export interface ListMetricsQueryParam {
|
|
431
|
+
// (undocumented)
|
|
432
|
+
queryParameters?: ListMetricsQueryParamProperties;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// @public (undocumented)
|
|
436
|
+
export interface ListMetricsQueryParamProperties {
|
|
437
|
+
maxpagesize?: number;
|
|
438
|
+
skip?: number;
|
|
439
|
+
top?: number;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// @public
|
|
443
|
+
export interface ObservedEvent {
|
|
444
|
+
eventName: string;
|
|
445
|
+
filter?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// @public
|
|
449
|
+
export interface ObservedEventOutput {
|
|
450
|
+
eventName: string;
|
|
451
|
+
filter?: string;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// Warning: (ae-forgotten-export) The symbol "OnlineExperimentationClient_2" needs to be exported by the entry point index.d.ts
|
|
455
|
+
//
|
|
456
|
+
// @public
|
|
457
|
+
export function OnlineExperimentationClient(endpointParam: string, credentials: TokenCredential, { apiVersion, ...options }?: OnlineExperimentationClientOptions): OnlineExperimentationClient_2;
|
|
458
|
+
|
|
459
|
+
// @public
|
|
460
|
+
export interface OnlineExperimentationClientOptions extends ClientOptions {
|
|
461
|
+
apiVersion?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// @public
|
|
465
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
466
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
467
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
468
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// @public
|
|
472
|
+
export interface PagedExperimentMetricOutput {
|
|
473
|
+
nextLink?: string;
|
|
474
|
+
value: Array<ExperimentMetricOutput>;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// @public
|
|
478
|
+
export interface PageSettings {
|
|
479
|
+
continuationToken?: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// @public
|
|
483
|
+
export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
484
|
+
|
|
485
|
+
// @public
|
|
486
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
487
|
+
body: {
|
|
488
|
+
value?: infer TPage;
|
|
489
|
+
};
|
|
490
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
491
|
+
|
|
492
|
+
// @public
|
|
493
|
+
export interface PagingOptions<TResponse> {
|
|
494
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// @public
|
|
498
|
+
export interface PercentileMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
499
|
+
percentile: number;
|
|
500
|
+
type: "Percentile";
|
|
501
|
+
value: AggregatedValue;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// @public
|
|
505
|
+
export interface PercentileMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
506
|
+
percentile: number;
|
|
507
|
+
type: "Percentile";
|
|
508
|
+
value: AggregatedValueOutput;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// @public (undocumented)
|
|
512
|
+
export interface Routes {
|
|
513
|
+
(path: "/experiment-metrics/{experimentMetricId}", experimentMetricId: string): GetMetric;
|
|
514
|
+
(path: "/experiment-metrics:validate"): ValidateMetric;
|
|
515
|
+
(path: "/experiment-metrics"): ListMetrics;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// @public
|
|
519
|
+
export interface SumMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
520
|
+
type: "Sum";
|
|
521
|
+
value: AggregatedValue;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// @public
|
|
525
|
+
export interface SumMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
526
|
+
type: "Sum";
|
|
527
|
+
value: AggregatedValueOutput;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// @public
|
|
531
|
+
export interface UserCountMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
532
|
+
event: ObservedEvent;
|
|
533
|
+
type: "UserCount";
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// @public
|
|
537
|
+
export interface UserCountMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
538
|
+
event: ObservedEventOutput;
|
|
539
|
+
type: "UserCount";
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// @public
|
|
543
|
+
export interface UserRateMetricDefinition extends ExperimentMetricDefinitionParent {
|
|
544
|
+
endEvent: ObservedEvent;
|
|
545
|
+
startEvent: ObservedEvent;
|
|
546
|
+
type: "UserRate";
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// @public
|
|
550
|
+
export interface UserRateMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {
|
|
551
|
+
endEvent: ObservedEventOutput;
|
|
552
|
+
startEvent: ObservedEventOutput;
|
|
553
|
+
type: "UserRate";
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// @public (undocumented)
|
|
557
|
+
export interface ValidateMetric {
|
|
558
|
+
post(options: ValidateMetricParameters): StreamableMethod<ValidateMetric200Response | ValidateMetricDefaultResponse>;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// @public (undocumented)
|
|
562
|
+
export interface ValidateMetric200Headers {
|
|
563
|
+
"x-ms-client-request-id"?: string;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// @public
|
|
567
|
+
export interface ValidateMetric200Response extends HttpResponse {
|
|
568
|
+
// (undocumented)
|
|
569
|
+
body: ExperimentMetricValidationResultOutput;
|
|
570
|
+
// (undocumented)
|
|
571
|
+
headers: RawHttpHeaders & ValidateMetric200Headers;
|
|
572
|
+
// (undocumented)
|
|
573
|
+
status: "200";
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// @public (undocumented)
|
|
577
|
+
export interface ValidateMetricBodyParam {
|
|
578
|
+
body: ExperimentMetric;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// @public (undocumented)
|
|
582
|
+
export interface ValidateMetricDefaultHeaders {
|
|
583
|
+
"x-ms-error-code"?: string;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// @public (undocumented)
|
|
587
|
+
export interface ValidateMetricDefaultResponse extends HttpResponse {
|
|
588
|
+
// (undocumented)
|
|
589
|
+
body: ErrorResponse;
|
|
590
|
+
// (undocumented)
|
|
591
|
+
headers: RawHttpHeaders & ValidateMetricDefaultHeaders;
|
|
592
|
+
// (undocumented)
|
|
593
|
+
status: string;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// @public (undocumented)
|
|
597
|
+
export interface ValidateMetricHeaderParam {
|
|
598
|
+
// (undocumented)
|
|
599
|
+
headers?: RawHttpHeadersInput & ValidateMetricHeaders;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// @public (undocumented)
|
|
603
|
+
export interface ValidateMetricHeaders {
|
|
604
|
+
"x-ms-client-request-id"?: string;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
// @public (undocumented)
|
|
608
|
+
export type ValidateMetricParameters = ValidateMetricHeaderParam & ValidateMetricBodyParam & RequestParameters;
|
|
609
|
+
|
|
610
|
+
// (No @packageDocumentation comment for this package)
|
|
611
|
+
|
|
612
|
+
```
|