SessionDetails 类

会话详细信息。

变量仅由服务器填充,发送请求时将被忽略。

必须填充所有必需的参数才能发送到服务器。

构造函数

SessionDetails(*, id: str, name: str, provider_id: str, target: str, cost_estimate: _models.CostEstimate | None = None, error_data: _models.ErrorData | None = None, job_failure_policy: str | _models.SessionJobFailurePolicy = 'Abort', **kwargs: Any)

仅限关键字的参数

名称 说明
id
str

项的 ID。 必填。

name
str

项的名称。 名称不一定是唯一的,它仅用于显示目的。 必填。

provider_id
str

提供程序的唯一标识符。 必填。

target
str

要运行作业的目标标识符。 必填。

cost_estimate
<xref:azure.quantum._client.models.CostEstimate>

提供程序计费的作业成本。 由于加税和货币换算率,帐单的最终成本可能略有不同。

error_data
<xref:azure.quantum._client.models.ErrorData>

来自 Azure 的错误响应。

job_failure_policy
str 或 <xref:azure.quantum._client.models.SessionJobFailurePolicy>

策略控制会话中作业失败时会话的行为。 已知值为:“Abort”和“Continue”。

默认值: Abort

变量

名称 说明
id
str

项的 ID。 必填。

name
str

项的名称。 名称不一定是唯一的,它仅用于显示目的。 必填。

provider_id
str

提供程序的唯一标识符。 必填。

target
str

要运行作业的目标标识符。 必填。

item_type
str 或 <xref:azure.quantum._client.models.ItemType>

项的类型。 必填。 已知值为:“Job”和“Session”。

creation_time

项的创建时间。

begin_execution_time

项开始执行的时间。

end_execution_time

项目完成执行的时间。

cost_estimate
<xref:azure.quantum._client.models.CostEstimate>

提供程序计费的作业成本。 由于加税和货币换算率,帐单的最终成本可能略有不同。

error_data
<xref:azure.quantum._client.models.ErrorData>

来自 Azure 的错误响应。

job_failure_policy
str 或 <xref:azure.quantum._client.models.SessionJobFailurePolicy>

策略控制会话中作业失败时会话的行为。 已知值为:“Abort”和“Continue”。

status
str 或 <xref:azure.quantum._client.models.SessionStatus>

会话的状态。 已知值为:“Wait”、“Executing”、“Succeeded”、“Failed”、“Failure(s)”和“TimedOut”。