OnlineDeployment 類別
線上端點部署實體。
線上端點部署實體。
線上端點部署實體的建構函式
- 繼承
-
azure.ai.ml.entities._deployment.deployment.DeploymentOnlineDeployment
建構函式
OnlineDeployment(name: str, *, endpoint_name: str | None = None, tags: Dict[str, Any] | None = None, properties: Dict[str, Any] | None = None, description: str | None = None, model: str | Model | None = None, data_collector: DataCollector | None = None, code_configuration: CodeConfiguration | None = None, environment: str | Environment | None = None, app_insights_enabled: bool | None = False, scale_settings: OnlineScaleSettings | None = None, request_settings: OnlineRequestSettings | None = None, liveness_probe: ProbeSettings | None = None, readiness_probe: ProbeSettings | None = None, environment_variables: Dict[str, str] | None = None, instance_count: int | None = None, instance_type: str | None = None, model_mount_path: str | None = None, code_path: str | PathLike | None = None, scoring_script: str | PathLike | None = None, **kwargs: Any)
參數
- data_collector
- Optional[Union[str, DataCollector]]
端點部署的資料收集器實體預設為 None
- code_configuration
- Optional[CodeConfiguration]
程式碼組態,預設值為 None
- environment
- Optional[Union[str, Environment]]
端點部署的環境實體預設為 [無]
- scale_settings
- Optional[OnlineScaleSettings]
線上部署如何調整,預設為 [無]
- request_settings
- Optional[OnlineRequestSettings]
線上要求設定,預設為 [無]
- liveness_probe
- Optional[ProbeSettings]
Liveness 探查設定,預設值為 [無]
- readiness_probe
- Optional[ProbeSettings]
整備探查設定,預設值為 None
相當於 code_configuration.code,如果code_configuration存在,則會忽略 ,預設值為 None
相當於 code_configuration.code.scoring_script。 如果code_configuration存在,則會忽略,預設值為 None
- code_configuration
- Optional[CodeConfiguration]
程式碼組態,預設值為 None
- environment
- Optional[Union[str, Environment]]
端點部署的環境實體預設為 [無]
- scale_settings
- Optional[OnlineScaleSettings]
線上部署如何調整,預設為 [無]
- request_settings
- Optional[OnlineRequestSettings]
線上要求設定,預設為 [無]
- liveness_probe
- Optional[ProbeSettings]
Liveness 探查設定,預設值為 [無]
- readiness_probe
- Optional[ProbeSettings]
整備探查設定,預設值為 None
相當於 code_configuration.code,如果code_configuration存在,則會忽略 ,預設值為 None
相當於 code_configuration.code.scoring_script。 如果code_configuration存在,則會忽略,預設值為 None
方法
dump |
以 yaml 格式將部署內容傾印到檔案中。 |
dump
以 yaml 格式將部署內容傾印到檔案中。
dump(dest: str | PathLike | IO, **kwargs) -> None