您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

更新分区加载Update Partition Load

针对特定指标更新所提供分区的负载。Update the loads of provided partitions for specific metrics.

更新为指定度量值提供的所有分区的负载值和预测的加载值。Updates the load value and predicted load value for all the partitions provided for specified metrics.

请求Request

方法Method 请求 URIRequest URI
POSTPOST /$/UpdatePartitionLoad?api-version=7.2&ContinuationToken={ContinuationToken}&MaxResults={MaxResults}&timeout={timeout}

参数Parameters

名称Name 类型Type 必选Required 位置Location
api-version 字符串string Yes 查询Query
ContinuationToken stringstring No 查询Query
MaxResults 整数 (int64) integer (int64) No 查询Query
timeout 整数 (int64) integer (int64) No 查询Query
PartitionMetricLoadDescriptionList PartitionMetricLoadDescription的数组array of PartitionMetricLoadDescription “是”Yes BodyBody

api-version

类型 : stringType : string
是否 必需 :是Required : Yes
默认7.2Default : 7.2

API 的版本。The version of the API. 此参数是必需的,其值必须是 "7.2"。This parameter is required and its value must be '7.2'.

Service Fabric REST API 版本基于引入或更改 API 的运行时版本。Service Fabric REST API version is based on the runtime version in which the API was introduced or was changed. Service Fabric 运行时支持 API 的多个版本。Service Fabric runtime supports more than one version of the API. 此版本是 API 的最新支持版本。This version is the latest supported version of the API. 如果传递的 API 版本较低,则返回的响应可能与此规范中所述的响应不同。If a lower API version is passed, the returned response may be different from the one documented in this specification.

此外,运行时还接受高于当前版本的运行时最新支持版本的任何版本。Additionally the runtime accepts any version that is higher than the latest supported version up to the current version of the runtime. 因此,如果最新的 API 版本为6.0,运行时为6.1,则运行时将接受该 API 的版本6.1。So if the latest API version is 6.0 and the runtime is 6.1, the runtime will accept version 6.1 for that API. 但是,API 的行为将按记录的6.0 版本进行。However the behavior of the API will be as per the documented 6.0 version.


ContinuationToken

类型 : stringType : string
是否 必需 :否Required : No

继续标记参数用于获取下一组结果。The continuation token parameter is used to obtain next set of results. 如果单个响应无法容纳来自系统的结果,则 API 响应中包括含有非空值的继续标记。A continuation token with a non-empty value is included in the response of the API when the results from the system do not fit in a single response. 当此值传递到下一个 API 调用时,API 返回下一组结果。When this value is passed to the next API call, the API returns next set of results. 如果没有更多结果,则该继续标记不包含值。If there are no further results, then the continuation token does not contain a value. 不应将此参数的值进行 URL 编码。The value of this parameter should not be URL encoded.


MaxResults

类型 :整数 (int64) Type : integer (int64)
是否 必需 :否Required : No
默认0Default : 0
InclusiveMinimum0InclusiveMinimum : 0

作为分页查询的一部分返回的最大结果数。The maximum number of results to be returned as part of the paged queries. 此参数定义返回结果数的上限。This parameter defines the upper bound on the number of results returned. 如果根据配置中定义的最大消息大小限制,无法将这些结果容纳到消息中,则返回的结果数可能小于指定的最大结果数。The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. 如果此参数为零或者未指定,则分页查询包含返回消息中最多可容纳的结果数。If this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message.


timeout

类型 :整数 (int64) Type : integer (int64)
是否 必需 :否Required : No
默认60Default : 60
InclusiveMaximum4294967295InclusiveMaximum : 4294967295
InclusiveMinimum1InclusiveMinimum : 1

执行操作的服务器超时,以秒为单位。The server timeout for performing the operation in seconds. 此超时指定客户端可以等待请求的操作完成的持续时间。This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. 此参数的默认值为 60 秒。The default value for this parameter is 60 seconds.


PartitionMetricLoadDescriptionList

类型PartitionMetricLoadDescription的数组Type : array of PartitionMetricLoadDescription
是否 必需 :是Required : Yes

更新分区列表的负载说明。Description of updating load for list of partitions.

响应Responses

HTTP 状态代码HTTP Status Code 说明Description 响应架构Response Schema
200 (正常)200 (OK) 列出 UpdatePartitionLoadResults。List UpdatePartitionLoadResults.
PagedUpdatePartitionLoadResultListPagedUpdatePartitionLoadResultList
所有其他状态代码All other status codes 每个指定分区的错误代码响应。The error code response per specified partition.
FabricErrorFabricError