你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceResourcePropertiesBase interface

常见服务资源属性。

属性

correlationScheme

描述服务与其他服务关联的列表。

defaultMoveCost

指定服务的移动成本。

placementConstraints

作为字符串的放置约束。 放置约束是节点属性上的布尔表达式,允许根据服务要求将服务限制为特定节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue”。。

scalingPolicies

此服务的缩放策略。

serviceLoadMetrics

服务负载指标作为 ServiceLoadMetric 对象的数组提供。

servicePlacementPolicies

描述服务与其他服务关联的列表。

属性详细信息

correlationScheme

描述服务与其他服务关联的列表。

correlationScheme?: ServiceCorrelation[]

属性值

defaultMoveCost

指定服务的移动成本。

defaultMoveCost?: string

属性值

string

placementConstraints

作为字符串的放置约束。 放置约束是节点属性上的布尔表达式,允许根据服务要求将服务限制为特定节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue”。。

placementConstraints?: string

属性值

string

scalingPolicies

此服务的缩放策略。

scalingPolicies?: ScalingPolicy[]

属性值

serviceLoadMetrics

服务负载指标作为 ServiceLoadMetric 对象的数组提供。

serviceLoadMetrics?: ServiceLoadMetric[]

属性值

servicePlacementPolicies

描述服务与其他服务关联的列表。

servicePlacementPolicies?: ServicePlacementPolicyUnion[]

属性值