CreateHotParamRule_应用高可用服务_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
暂无数据

请求参数

字段名称字段详情
Namespacestring

命名空间。

示例值:default
AppNamestring

应用名,若为 EDAS 应用,则 AppName 为 EDAS 中的 App ID,可在 EDAS 控制台“应用管理>基本信息”中查看对应的 ID。

示例值:ahas-demo
MetricTypeinteger<int32>

统计维度,0 表示并发数,1 表示通过请求数。

示例值:1
Thresholdnumber<float>

热点规则中针对每个热点参数的阈值,取值范围为≥0 的整数。

示例值:20
Enableboolean

是否开启,默认 false。

示例值:true
Resourcestring

资源名。不能超过 1024 个字符,且该资源名需要与接口详情页面的资源名称相对应。

示例值:handleService
ParamIdxinteger<int32>

参数位置索引,埋点传入参数的索引位置。对应SphU.entry(xxx,args)中的参数索引位置。展开详情

示例值:1
StatDurationSecinteger<int64>

统计周期时间,单位秒。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:1
ControlBehaviorinteger<int32>

流控效果,0 表示快速失败,2 表示排队等待。

示例值:0
BurstCountinteger<int32>

缓冲请求数,流控效果为快速失败时需要设置。

示例值:2
MaxQueueingTimeMsinteger<int32>

超时时间,流控效果为排队等待时需要设置,单位毫秒。

示例值:3000
AhasRegionIdstring

地域。

示例值:cn-hangzhou

返回参数

字段名称字段详情
Messagestring

错误信息。

示例值:null
RequestIdstring

请求 Request ID。

示例值:3FEEAD12-CE22-4EDE-A729-CE94EC070610
Dataobject

业务数据。

Codestring

返回码、错误码。

示例值:200
Successboolean

是否成功。

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
IllegalArgument.AppName
The specified AppName is invalid.诊断
400
IllegalArgument.BurstCount
The specified BurstCount is invalid.诊断
400
IllegalArgument.ControlBehavior
The specified ControlBehavior is invalid.诊断
400
IllegalArgument.DurationInSec
The specified DurationInSec is invalid.诊断
400
IllegalArgument.MaxQueueingTimeM
The specified MaxQueueingTimeMs is invalid.诊断
400
IllegalArgument.MetricType
The specified MetricType is invalid.诊断
400
IllegalArgument.Namespace
The specified Namespace is invalid.诊断
400
IllegalArgument.ParamIdx
The specified ParamIdx is invalid.诊断

变更历史

暂无变更历史

相关示例