更新时间:2025-03-26 GMT+08:00

获取实例连接数

功能介绍

获取ROMA Connect实例各组件连接数使用情况

URI

GET /v1/{project_id}/roma/instances/{instance_id}/statistics

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

资源集id

instance_id

String

实例id

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

fdi

fdi object

fdi连接数信息

apic

apic object

apic连接数信息

mqs

mqs object

mqs连接数信息

link

link object

link连接数信息

表4 fdi

参数

参数类型

描述

connect_count

Integer

连接数

all_datasource_count

Integer

数据源总数量

all_tasks_count

Integer

总任务数量

all_running_tasks_count

Integer

运行中的任务总数量

all_common_tasks_count

Integer

普通任务总数量

running_common_tasks_count

Integer

运行中的普通任务数量

abnormal_common_tasks_count

Integer

异常的普通任务数量

terminated_common_tasks_count

Integer

中止的普通任务数量

completed_common_tasks_count

Integer

已完成的普通任务数量

all_cdc_tasks_count

Integer

cdc任务总数量

running_cdc_tasks_count

Integer

运行中cdc任务数量

abnormal_cdc_tasks_count

Integer

异常cdc任务数量

terminated_cdc_tasks_count

Integer

中止的cdc任务数量

completed_cdc_tasks_count

Integer

已完成的cdc任务数量

all_flow_tasks_count

Integer

编排任务总数量

running_flow_tasks_count

Integer

运行中的编排任务数量

abnormal_flow_tasks_count

Integer

异常的编排任务数量

terminated_flow_tasks_count

Integer

停止的编排任务数量

completed_flow_tasks_count

Integer

已完成的编排任务数量

表5 apic

参数

参数类型

描述

connection_num

Integer

连接数

api_num

Integer

api数量

api_num_without_livedata

Integer

托管类API(非自定义后端发布生成的API)数量

livedata_api_num

Integer

自定义后端(函数后端或者数据后端)数量

表6 mqs

参数

参数类型

描述

connection_numbers

Integer

连接数

topic_numbers

Integer

topic数量

partition_numbers

Integer

分区数量

consumer_group_numbers

Integer

消费组数量

total_queue_numbers

Integer

队列数量

表8 products

参数

参数类型

描述

total

Integer

总量

normal_products_numbers

Integer

普通产品数量

gateway_products_numbers

Integer

网关产品数量

表9 connections

参数

参数类型

描述

connection_numbers

Integer

连接数数量

表10 product_templates

参数

参数类型

描述

product_templates_numbers

Integer

产品模板数量

表11 devices

参数

参数类型

描述

total

Integer

设备总量

normal_devices

normal_devices object

普通设备信息

gateway_devices

gateway_devices object

网关设备信息

subsets_devices

subsets_devices object

网关子设备信息

表12 normal_devices

参数

参数类型

描述

total

Integer

总量

never_connected

Integer

未连接普通设备

online

Integer

在线普通设备

offline

Integer

离线普通设备

表13 gateway_devices

参数

参数类型

描述

total

Integer

总量

never_connected

Integer

未连接网关设备

online

Integer

在线网关设备

offline

Integer

离线网关设备

表14 subsets_devices

参数

参数类型

描述

total

Integer

总量

never_connected

Integer

未连接网关子设备

online

Integer

在线网关子设备

offline

Integer

离线网关子设备

请求示例

响应示例

状态码:200

ROMA实例连接数信息

{
  "fdi" : {
    "connect_count" : 0,
    "all_datasource_count" : 7,
    "all_tasks_count" : 0,
    "all_running_tasks_count" : 0,
    "all_common_tasks_count" : 0,
    "running_common_tasks_count" : 0,
    "abnormal_common_tasks_count" : 0,
    "terminated_common_tasks_count" : 0,
    "completed_common_tasks_count" : 0,
    "all_cdc_tasks_count" : 0,
    "running_cdc_tasks_count" : 0,
    "abnormal_cdc_tasks_count" : 0,
    "terminated_cdc_tasks_count" : 0,
    "completed_cdc_tasks_count" : 0,
    "all_flow_tasks_count" : 0,
    "running_flow_tasks_count" : 0,
    "abnormal_flow_tasks_count" : 0,
    "terminated_flow_tasks_count" : 0,
    "completed_flow_tasks_count" : 0
  },
  "apic" : {
    "connection_num" : 7,
    "api_num" : 37,
    "api_num_without_livedata" : 26,
    "livedata_api_num" : 18
  },
  "mqs" : {
    "connection_numbers" : 2,
    "topic_numbers" : 4,
    "partition_numbers" : 10,
    "consumer_group_numbers" : 0,
    "total_queue_numbers" : 0
  },
  "link" : {
    "products" : {
      "total" : 1,
      "normal_products_numbers" : 1,
      "gateway_products_numbers" : 0
    },
    "connections" : {
      "connection_numbers" : 1
    },
    "product_templates" : {
      "product_templates_numbers" : 0
    },
    "devices" : {
      "total" : 1,
      "normal_devices" : {
        "total" : 1,
        "never_connected" : 1,
        "online" : 0,
        "offline" : 0
      },
      "gateway_devices" : {
        "total" : 0,
        "never_connected" : 0,
        "online" : 0,
        "offline" : 0
      },
      "subsets_devices" : {
        "total" : 0,
        "never_connected" : 0,
        "online" : 0,
        "offline" : 0
      }
    }
  }
}

状态码

状态码

描述

200

ROMA实例连接数信息

错误码

请参见错误码