查询实例在CES的监控层级关系 - ShowCesHierarchy
功能介绍
查询实例在CES的监控层级关系。
调用方法
请参见如何调用API。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
GET /v2/{project_id}/instances/{instance_id}/ces-hierarchy
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
参数解释: 项目ID,获取方式请参见获取项目ID。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
|
instance_id |
是 |
String |
参数解释: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
dimensions |
Array of dimensions objects |
参数解释: 监控维度。 |
|
instance_ids |
Array of instance_ids objects |
参数解释: 实例信息。 |
|
nodes |
Array of nodes objects |
参数解释: 节点信息。 |
|
topics |
Array of topics objects |
参数解释: 队列信息。 |
|
dlq |
Array of dlq objects |
参数解释: 死信队列。 |
|
groups |
Array of groups objects |
参数解释: 消费组信息。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
name |
String |
参数解释: 监控维度名称。 取值范围: 不涉及。 |
|
metrics |
Array of strings |
参数解释: 监控指标名称。 |
|
key_name |
Array of strings |
参数解释: 监控查询使用的key。 |
|
dim_router |
Array of strings |
参数解释: 监控维度路由。 |
|
children |
Array of children objects |
参数解释: 子维度列表。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
name |
String |
参数解释: 子维度名称。 取值范围: 不涉及。 |
|
metrics |
Array of strings |
参数解释: 监控指标名称列表。 取值范围: 不涉及。 |
|
key_name |
Array of strings |
参数解释: 监控查询使用的key。 |
|
dim_router |
Array of strings |
参数解释: 监控维度路由。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
name |
String |
参数解释: 消费组名称。 取值范围: 不涉及。 |
|
topics |
Array of topics objects |
参数解释: 订阅Topic信息。 |
请求示例
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/ces-hierarchy
响应示例
状态码:200
查询成功。
{
"dimensions" : [ {
"name" : "reliablemq_instance_id",
"metrics" : [ "instance_produce_msg", "instance_consume_msg" ],
"key_name" : [ "instance_ids" ],
"dim_router" : [ "reliablemq_instance_id" ]
}, {
"name" : "reliablemq_broker",
"metrics" : [ "broker_produce_msg", "broker_consume_msg", "broker_produce_rate", "broker_consume_rate", "broker_total_bytes_in_rate", "broker_total_bytes_out_rate", "broker_cpu_core_load", "broker_disk_usage", "broker_memory_usage" ],
"key_name" : [ "nodes" ],
"dim_router" : [ "reliablemq_instance_id", "reliablemq_broker" ]
}, {
"name" : "reliablemq_topics",
"metrics" : [ "topic_produce_msg", "topic_consume_msg", "topic_produce_rate", "topic_consume_rate" ],
"key_name" : [ "topics" ],
"dim_router" : [ "reliablemq_instance_id", "reliablemq_topics" ]
}, {
"name" : "reliablemq_groups",
"metrics" : [ "group_consume_msg", "group_accumulation" ],
"key_name" : [ "groups" ],
"dim_router" : [ "reliablemq_instance_id", "reliablemq_groups" ],
"children" : [ {
"name" : "reliablemq_groups_topics",
"metrics" : [ "group_topic_consume_msg", "group_topic_consume_rate", "group_topic_accumulation" ],
"key_name" : [ "groups", "topics" ],
"dim_router" : [ "reliablemq_instance_id", "reliablemq_groups", "reliablemq_groups_topics" ]
} ]
}, {
"name" : "reliablemq_dlq_topics",
"metrics" : [ "dlq_accumulation" ],
"key_name" : [ "dlq" ],
"dim_router" : [ "reliablemq_instance_id", "reliablemq_dlq_topics" ]
} ],
"instance_ids" : [ {
"name" : "af82f7a9-5636-4898-85e4-200fe0fab361"
} ],
"nodes" : [ ],
"topics" : [ {
"name" : "dingshi"
}, {
"name" : "lala"
}, {
"name" : "shunxu"
} ],
"dlq" : [ {
"name" : "DLQ_group-1"
}, {
"name" : "DLQ_group-1000"
}, {
"name" : "DLQ_group-2"
}, {
"name" : "DLQ_group-3"
}, {
"name" : "DLQ_group-4"
}, {
"name" : "DLQ_group-5"
}, {
"name" : "DLQ_group-6"
}, {
"name" : "DLQ_group-7"
}, {
"name" : "DLQ_group-8"
}, {
"name" : "DLQ_group-9"
}, {
"name" : "DLQ_group-dingshi"
}, {
"name" : "DLQ_group-shunxu"
}, {
"name" : "DLQ_group101010"
} ],
"groups" : [ {
"name" : "group-shunxu",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-7",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-dingshi",
"topics" : [ {
"name" : "dingshi"
} ]
}, {
"name" : "group-6",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-9",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-8",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-3",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-2",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-5",
"topics" : [ {
"name" : "dingshi"
}, {
"name" : "shunxu"
} ]
}, {
"name" : "group-4",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group101010",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-1000",
"topics" : [ {
"name" : "shunxu"
} ]
}, {
"name" : "group-1",
"topics" : [ {
"name" : "shunxu"
} ]
} ]
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
查询成功。 |
错误码
请参见错误码。