共用方式為


KustoCompute 類別

在 Azure Machine Learning 中管理 Kusto 計算目標。

Kusto 也稱為 Azure Data Explorer,可作為 Azure Machine Learning 管線的計算目標。 計算目標會保存用來存取目標 Kusto 叢集的 Kusto 連接字串和服務主體認證。

類別 ComputeTarget 建構函式。

擷取與所提供工作區相關聯之 Compute 物件的雲端標記法。 傳回對應至所擷取之 Compute 物件之特定型別之子類別的實例。

繼承
KustoCompute

建構函式

KustoCompute(workspace, name)

參數

名稱 Description
workspace
必要

包含要擷取之 KustoCompute 物件的工作區物件。

name
必要
str

要擷取的 KustoCompute 物件名稱。

workspace
必要

包含要擷取之 Compute 物件的工作區物件。

name
必要
str

要擷取之 Compute 物件的 名稱。

方法

attach_configuration

建立組態物件以附加 Kusto 計算目標。

delete

KustoCompute 物件不支援 Delete。 請改用 detach

deserialize

將 JSON 物件轉換成 KustoCompute 物件。

detach

中斷連結 Kusto 物件與其相關聯的工作區。

基礎雲端物件不會刪除,只會移除關聯。

get_credentials

擷取 Kusto 目標的認證。

refresh_state

執行 物件的屬性就地更新。

這個方法會根據對應雲端物件的目前狀態來更新屬性。 這主要用於手動輪詢計算狀態。

serialize

將此 KustoCompute 物件轉換成 JSON 序列化字典。

attach_configuration

建立組態物件以附加 Kusto 計算目標。

static attach_configuration(resource_group=None, workspace_name=None, resource_id=None, tenant_id=None, kusto_connection_string=None, application_id=None, application_key=None)

參數

名稱 Description
resource_group
str

工作區的資源群組名稱。

預設值: None
workspace_name
str

工作區名稱。

預設值: None
resource_id
str

計算資源的 Azure 資源識別碼。

預設值: None
tenant_id
str

計算資源的租使用者識別碼。

預設值: None
kusto_connection_string
str

Kusto 叢集的連接字串。

預設值: None
application_id
str

計算資源的應用程式識別碼。

預設值: None
application_key
str

計算資源的應用程式索引鍵。

預設值: None

傳回

類型 Description

附加 Compute 物件時要使用的組態物件。

delete

KustoCompute 物件不支援 Delete。 請改用 detach

delete()

例外狀況

類型 Description

deserialize

將 JSON 物件轉換成 KustoCompute 物件。

static deserialize(workspace, object_dict)

參數

名稱 Description
workspace
必要

KustoCompute 物件的工作區物件與 相關聯。

object_dict
必要

要轉換成 KustoCompute 物件的 JSON 物件。

傳回

類型 Description

所提供 JSON 物件的 KustoCompute 標記法。

例外狀況

類型 Description

備註

ComputeTargetException如果提供的工作區不是計算相關聯的工作區,則引發 。

detach

中斷連結 Kusto 物件與其相關聯的工作區。

基礎雲端物件不會刪除,只會移除關聯。

detach()

例外狀況

類型 Description

get_credentials

擷取 Kusto 目標的認證。

get_credentials()

傳回

類型 Description

Kusto 目標的認證。

例外狀況

類型 Description

refresh_state

執行 物件的屬性就地更新。

這個方法會根據對應雲端物件的目前狀態來更新屬性。 這主要用於手動輪詢計算狀態。

refresh_state()

serialize

將此 KustoCompute 物件轉換成 JSON 序列化字典。

serialize()

傳回

類型 Description

這個 KustoCompute 物件的 JSON 表示。