你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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]]
终结点部署的环境实体,默认为 None
- scale_settings
- Optional[OnlineScaleSettings]
联机部署的缩放方式,默认为“无”
- request_settings
- Optional[OnlineRequestSettings]
联机请求设置,默认为“无”
- liveness_probe
- Optional[ProbeSettings]
运行情况探测设置,默认为“无”
- readiness_probe
- Optional[ProbeSettings]
就绪情况探测设置,默认为“无”
等效于 code_configuration.code,如果存在code_configuration,则将被忽略,默认值为 None
等效于 code_configuration.code.scoring_script。 如果存在code_configuration,将忽略,默认值为 None
- code_configuration
- Optional[CodeConfiguration]
代码配置,默认为 None
- environment
- Optional[Union[str, Environment]]
终结点部署的环境实体,默认为 None
- scale_settings
- Optional[OnlineScaleSettings]
联机部署的缩放方式,默认为“无”
- request_settings
- Optional[OnlineRequestSettings]
联机请求设置,默认为“无”
- liveness_probe
- Optional[ProbeSettings]
运行情况探测设置,默认为“无”
- readiness_probe
- Optional[ProbeSettings]
就绪情况探测设置,默认为“无”
等效于 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