获取检测规则计数。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:GetDetectionStatistic |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
威胁分析的数据管理中心所在地。您需要根据资产所在地域,选择管理中心所在地。取值:
|
cn-hangzhou |
| Lang |
string |
否 |
返回消息的语言类型。取值:
|
zh |
| RoleFor |
integer |
否 |
管理员切换成其他成员视角的用户 ID。 |
113091674488**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回体。 |
||
| RequestId |
string |
请求消息 ID。 |
6FB890AC-90B2-5EEA-845B-F7C86FB2**** |
| DetectionStatistic |
object |
检测规则计数结果。 |
|
| DetectionRuleOnlineCount |
integer |
在线规则数。 |
10 |
| DetectionRuleTestCount |
integer |
测试规则数。 |
5 |
| DetectionRuleTemplateCount |
integer |
规则模版数。 |
20 |
| GraphComputeRuleCount |
integer |
图计算规则数。 |
12 |
| WindowRuleCount |
integer |
同类聚合规则数。 |
6 |
| PassthroughRuleCount |
integer |
告警透传规则数。 |
2 |
示例
正常返回示例
JSON格式
{
"RequestId": "6FB890AC-90B2-5EEA-845B-F7C86FB2****",
"DetectionStatistic": {
"DetectionRuleOnlineCount": 10,
"DetectionRuleTestCount": 5,
"DetectionRuleTemplateCount": 20,
"GraphComputeRuleCount": 12,
"WindowRuleCount": 6,
"PassthroughRuleCount": 2
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。