GetDetectionStatistic - 获取检测规则计数

获取检测规则计数。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
yundun-sas:GetDetectionStatisticget
*全部资源
*

请求参数

名称类型必填描述示例值
RegionIdstring

威胁分析的数据管理中心所在地。您需要根据资产所在地域,选择管理中心所在地。取值:

  • cn-hangzhou:资产属于中国内地。
  • ap-southeast-1:资产属于海外地域。
cn-hangzhou
Langstring

返回消息的语言类型。取值:

  • zh(默认):中文。
  • en:英文。
zh
RoleForlong

管理员切换成其他成员视角的用户 ID。

113091674488****

返回参数

名称类型描述示例值
object

返回体。

RequestIdstring

请求消息 ID。

6FB890AC-90B2-5EEA-845B-F7C86FB2****
DetectionStatisticobject

检测规则计数结果。

DetectionRuleOnlineCountinteger

在线规则数。

10
DetectionRuleTestCountinteger

测试规则数。

5
DetectionRuleTemplateCountinteger

规则模版数。

20
GraphComputeRuleCountinteger

图计算规则数。

12
WindowRuleCountinteger

同类聚合规则数。

6
PassthroughRuleCountinteger

告警透传规则数。

2

示例

正常返回示例

JSON格式

{
  "RequestId": "6FB890AC-90B2-5EEA-845B-F7C86FB2****",
  "DetectionStatistic": {
    "DetectionRuleOnlineCount": 10,
    "DetectionRuleTestCount": 5,
    "DetectionRuleTemplateCount": 20,
    "GraphComputeRuleCount": 12,
    "WindowRuleCount": 6,
    "PassthroughRuleCount": 2
  }
}

错误码

HTTP status code错误码错误信息
400IdempotentParameterMismatchThe 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.

访问错误中心查看更多错误码。