@azure-rest/onlineexperimentation package
介面
類型別名
| CreateOrUpdateMetricParameters | |
| DeleteMetricParameters | |
| DesiredDirection |
DesiredDirection 的別名 |
| DesiredDirectionOutput |
DesiredDirectionOutput 的別名 |
| DiagnosticCodeOutput |
DiagnosticCodeOutput 的別名 |
| ExperimentMetricDefinition |
指標定義,用於確定如何根據事件數據計算指標值。 |
| ExperimentMetricDefinitionOutput |
指標定義,用於確定如何根據事件數據計算指標值。 |
| ExperimentMetricResourceMergeAndPatch |
資源實例。 |
| GetArrayType |
用來擷取數位型別的協助程序類型 |
| GetMetricParameters | |
| GetPage |
自定義函式的類型,定義如何取得頁面,以及下一個頁面的連結,如果有的話。 |
| LifecycleStage |
LifecycleStage 的別名 |
| LifecycleStageOutput |
LifecycleStageOutput 的別名 |
| ListMetricsParameters | |
| PaginateReturn |
協助程式類型,從回應類型推斷分頁元素的類型 這個類型是根據 x-ms-pageable 的 Swagger 資訊,特別是 itemName 屬性上的 swagger 資訊,指出找到頁面專案之回應的屬性。 預設值是 |
| ValidateMetricParameters | |
列舉
| KnownDesiredDirection |
實驗指標值的所需方向。 |
| KnownDiagnosticCode |
診斷錯誤代碼。 |
| KnownExperimentMetricType |
度量定義如何根據事件數據計算度量值。 |
| KnownLifecycleStage |
實驗指標的生命週期階段,確定該指標是否包含在實驗分析中。 |
| KnownValidationResult |
驗證實驗指標的結果。 |
函式
函式詳細資料
OnlineExperimentationClient(string, TokenCredential, OnlineExperimentationClientOptions)
初始化 OnlineExperimentationClient 的新實例
function OnlineExperimentationClient(endpointParam: string, credentials: TokenCredential, options?: OnlineExperimentationClientOptions): OnlineExperimentationClient
參數
- endpointParam
-
string
聯機實驗工作區的終結點 URL。
- credentials
- TokenCredential
唯一識別客戶端認證
所有選擇性參數的參數
傳回
OnlineExperimentationClient
isUnexpected(GetMetric200Response | GetMetricDefaultResponse)
function isUnexpected(response: GetMetric200Response | GetMetricDefaultResponse): response
參數
- response
傳回
response
isUnexpected(CreateOrUpdateMetric200Response | CreateOrUpdateMetric201Response | CreateOrUpdateMetricDefaultResponse)
function isUnexpected(response: CreateOrUpdateMetric200Response | CreateOrUpdateMetric201Response | CreateOrUpdateMetricDefaultResponse): response
參數
傳回
response
isUnexpected(DeleteMetric204Response | DeleteMetricDefaultResponse)
function isUnexpected(response: DeleteMetric204Response | DeleteMetricDefaultResponse): response
參數
傳回
response
isUnexpected(ValidateMetric200Response | ValidateMetricDefaultResponse)
function isUnexpected(response: ValidateMetric200Response | ValidateMetricDefaultResponse): response
參數
傳回
response
isUnexpected(ListMetrics200Response | ListMetricsDefaultResponse)
function isUnexpected(response: ListMetrics200Response | ListMetricsDefaultResponse): response
參數
- response
傳回
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
協助程式,從遵循 Autorest x-ms-pageable 擴充功能規格的初始回應分頁結果
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
參數
- client
- Client
用來傳送下一個頁面要求的用戶端
- initialResponse
-
TResponse
包含專案下一頁和目前頁面的初始回應
- options
-
PagingOptions<TResponse>
傳回
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator 來反覆運算元素