你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmMachineLearningModelFactory.MachineLearningOnlineDeploymentProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 MachineLearningOnlineDeploymentProperties 的新实例。
public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties (Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = default, string description = default, string environmentId = default, System.Collections.Generic.IDictionary<string,string> environmentVariables = default, System.Collections.Generic.IDictionary<string,string> properties = default, bool? appInsightsEnabled = default, Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default, string endpointComputeType = "Unknown", string instanceType = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = default, string model = default, string modelMountPath = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = default);
static member MachineLearningOnlineDeploymentProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * Azure.ResourceManager.MachineLearning.Models.DataCollector * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType> * string * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings * string * string * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState> * Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings -> Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties
Public Shared Function MachineLearningOnlineDeploymentProperties (Optional codeConfiguration As MachineLearningCodeConfiguration = Nothing, Optional description As String = Nothing, Optional environmentId As String = Nothing, Optional environmentVariables As IDictionary(Of String, String) = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional appInsightsEnabled As Nullable(Of Boolean) = Nothing, Optional dataCollector As DataCollector = Nothing, Optional egressPublicNetworkAccess As Nullable(Of MachineLearningEgressPublicNetworkAccessType) = Nothing, Optional endpointComputeType As String = "Unknown", Optional instanceType As String = Nothing, Optional livenessProbe As MachineLearningProbeSettings = Nothing, Optional model As String = Nothing, Optional modelMountPath As String = Nothing, Optional provisioningState As Nullable(Of MachineLearningDeploymentProvisioningState) = Nothing, Optional readinessProbe As MachineLearningProbeSettings = Nothing, Optional requestSettings As MachineLearningOnlineRequestSettings = Nothing, Optional scaleSettings As MachineLearningOnlineScaleSettings = Nothing) As MachineLearningOnlineDeploymentProperties
参数
- codeConfiguration
- MachineLearningCodeConfiguration
终结点部署的代码配置。
- description
- String
终结点部署的说明。
- environmentId
- String
终结点部署的环境规范的 ARM 资源 ID。
- environmentVariables
- IDictionary<String,String>
部署的环境变量配置。
- properties
- IDictionary<String,String>
属性字典。 可以添加属性,但不能删除或更改。
- dataCollector
- DataCollector
在 mdc 配置中,我们在 mdc 为 null 时禁用它。
- egressPublicNetworkAccess
- Nullable<MachineLearningEgressPublicNetworkAccessType>
如果已启用,则允许出口公用网络访问。 如果 Disabled,这将创建安全出口。 默认值:已启用。
- endpointComputeType
- String
[必需]终结点的计算类型。
- instanceType
- String
计算实例类型。
- livenessProbe
- MachineLearningProbeSettings
运行情况探测会定期监视容器的运行状况。
- model
- String
模型的 URI 路径。
- modelMountPath
- String
在自定义容器中装载模型的路径。
- provisioningState
- Nullable<MachineLearningDeploymentProvisioningState>
终结点部署的预配状态。
- readinessProbe
- MachineLearningProbeSettings
就绪情况探测会验证容器是否已准备好为流量提供服务。 属性和默认值与运行情况探测相同。
- requestSettings
- MachineLearningOnlineRequestSettings
请求部署设置。
- scaleSettings
- MachineLearningOnlineScaleSettings
部署的缩放设置。 如果为 null 或未提供,则对于 KubernetesOnlineDeployment,默认为 TargetUtilizationScaleSettings,对于 ManagedOnlineDeployment,默认为 DefaultScaleSettings。 请注意 MachineLearningOnlineScaleSettings , 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 MachineLearningDefaultScaleSettings 和 MachineLearningTargetUtilizationScaleSettings。
返回
用于模拟的新 MachineLearningOnlineDeploymentProperties 实例。