共用方式為


AmlComputeStatus 類別

代表 AmlCompute 目標的詳細狀態資訊。

get_status使用類別的 AmlCompute 方法可傳回狀態資訊。

初始化 AmlComputeStatus 物件。

建構函式

AmlComputeStatus(allocation_state, allocation_state_transition_time, creation_time, current_node_count, errors, modified_time, node_state_counts, provisioning_state, provisioning_state_transition_time, scale_settings, target_node_count, vm_priority, vm_size)

參數

名稱 Description
allocation_state
必要
str

目前配置狀態的字串描述。

allocation_state_transition_time
必要

最近配置狀態變更的時間。

creation_time
必要

叢集建立時間。

current_node_count
必要
int

叢集目前使用的節點數目。

errors
必要

如果有的話,錯誤詳細數據的清單。

modified_time
必要

叢集修改時間。

node_state_counts
必要

物件,包含叢集中各種目前節點狀態的計數。

provisioning_state
必要
str

叢集目前的布建狀態。

provisioning_state_transition_time
必要

最近布建狀態變更的時間。

scale_settings
必要

物件,包含叢集的指定縮放設定。

target_node_count
必要
int

叢集的目標節點數目。

vm_priority
必要
str

VM 優先順序。 可以是「專用」或「低許可權」。 低優先順序 VM 使用 Azure 的超額容量較便宜,但有先佔的風險。

vm_size
必要
str

代理程式 VM 的大小。 如需詳細資訊,請參閱這裡:https://aka.ms/azureml-vm-details。 請注意,並非所有大小都可在所有區域中使用,如上一個連結中所述。

allocation_state
必要
str

目前配置狀態的字串描述。

allocation_state_transition_time
必要

最近配置狀態變更的時間。

creation_time
必要

叢集建立時間。

current_node_count
必要
int

叢集目前使用的節點數目。

errors
必要

如果有的話,錯誤詳細數據的清單。

modified_time
必要

叢集修改時間。

node_state_counts
必要

物件,包含叢集中各種目前節點狀態的計數。

provisioning_state
必要
str

叢集目前的布建狀態。

provisioning_state_transition_time
必要

最近布建狀態變更的時間。

scale_settings
必要

物件,包含叢集的指定縮放設定。

target_node_count
必要
int

叢集的目標節點數目。

vm_priority
必要
str

VM 優先順序。 可以是「專用」或「低許可權」。 低優先順序 VM 使用 Azure 的超額容量較便宜,但有先佔的風險。

vm_size
必要
str

代理程式 VM 的大小。 如需詳細資訊,請參閱這裡:https://aka.ms/azureml-vm-details。 請注意,並非所有大小都可在所有區域中使用,如上一個連結中所述。

方法

deserialize

將 JSON 物件轉換成 AmlComputeStatus 物件。

serialize

將此 AmlComputeStatus 物件轉換成 JSON 串行化字典。

deserialize

將 JSON 物件轉換成 AmlComputeStatus 物件。

static deserialize(object_dict)

參數

名稱 Description
object_dict
必要

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

傳回

類型 Description

所提供 JSON 物件的 AmlComputeStatus 表示法。

例外狀況

類型 Description

serialize

將此 AmlComputeStatus 物件轉換成 JSON 串行化字典。

serialize()

傳回

類型 Description

這個 AmlComputeStatus 物件的 JSON 表示法。