拓扑

组件名称:拓扑

组件样式

PV样式组件

组件说明: TOPO组件返回格式。

请求方式:POST

https://doc.tingyun.com/sense/example/topo.json

参数

字段 类型 描述 是否必选
currentTime Number 当前时间戳。
token String 盐值,校验规则为md5(timePeriod+currentTime+配置的token),
例如:timePeriod为30,currentTime为1513137332798,token为abc,则应对301513137332798abc进行md5。
timePeriod Number 时间范围分钟数。

正确响应数据

字段 类型 描述
status number 状态
data Object{} 拓扑数据,类型为对象
linkeDataArray Object[] 拓扑连线数据,类型为数组
respTime number 响应时间
error number 错误率
maxThrought number 最大响应时间
from string 开始节点
to string 连接节点
nodeDataArray Object[] 拓扑节点数据,类型为数组
id string 节点ID, from, to, 当type=11的时候, id拼接逻辑xx_[0-type]_x_x_x, type为前端应用分类,APPLICATION,BROWSER,NETWORK,APP,USER; 当type=14的时候,id拼接逻辑x_x_x_x_type_x, type为数据库类型分类, ORACLE,MYSQL,DB2,OTHER; 当type=15的时候,id拼接逻辑x_x_x_x_type_x, type为NOSQL类型分类,REDIS,MEMCACHED,MONGODB,OTHER;
graphId number 节点位置ID
type number 节点类型 FRONT = 11;APPLICATION = 12;BIZSYSTEM = 13;DATABASE = 14;NOSQL = 15;MQ = 16;EXTERNAL = 17;GROUP = 18;
info Object{} 节点详情,类型为对象
name string 节点名称
health number 健康度, 节点颜色标识 -1=默认, 0=健康, 1=警戒, 2=严重, 5=取消
subType number 节点type=12的时候二级分类, Oracle = 1;MySQL = 2;PostgreSQL = 3;SQLServer = 4;DB2 = 5;SQLite = 6;Sybase = 7;Derby = 8;Unknown = 9;

示例

{
    "status": 200,
    "data":{
        "linkeDataArray":[{
            "from": "1169_[0-User]_0_0_0_[User]", 
            "to": "1169_2397_0_0_0_[apm-dc-server]", 
            "error": 2,
            "respTime": 312.0263,
            "response": 28,
            "maxThrought": 0.04
        },{
            "error": 2,
            "from": "1169_2397_0_0_0_[apm-dc-server]",
            "respTime": 0,
            "response": 28,
            "maxThrought": 2.13,
            "to": "1169_0_0_MQ_Kafka_[Kafka]"
        },{
            "error": 5,
            "from": "1169_2397_0_0_0_[apm-dc-server]",
            "maxThrought": 3.08,
            "respTime": 0,
            "response": 28,
            "to": "1169_0_0_Database_MySQL_[MySQL]"
        },{
            "error": 1,
            "from": "1169_2397_0_0_0_[apm-dc-server]",
            "response": 37,
            "maxThrought": 0.01,
            "respTime": 0,
            "to": "1169_0_0_External_dubbo_[dubbo]"
        },{
            "error": 2,
            "from": "1169_2397_0_0_0_[apm-dc-server]",
            "response": 0,
            "maxThrought": 6.58,
            "respTime": 0,
            "to": "1169_0_0_NoSQL_Redis_[Redis]"
        }],
        "nodeDataArray":[{
            "graphId": 16553,
            "id": "1169_2397_0_0_0_[apm-dc-server]",
            "type": 12,
            "info":{
                "name":"A",
                "subType": 1
            }
        },{
            "graphId": 16557,
            "id": "1169_[0-User]_0_0_0_[User]",
            "type": 11,
            "info":{
                "name":"B"
            }
        },{
            "cursor": "pointer",
            "fill": "#0085c9",
            "graphId": 16565,
            "id": "1169_0_0_Database_MySQL_[MySQL]",
            "type": 14,
            "info":{
                "name":"C",
                "subType": 2
            }
        },{
            "graphId": 16566,
            "id": "1169_0_0_External_dubbo_[dubbo]",
            "type": 17,
            "info":{
                "name":"D"
            }
        },{
            "graphId": 16564,
            "id": "1169_0_0_MQ_Kafka_[Kafka]",
            "type": 16,
            "info":{
                "name":"E"
            }
        },{
            "graphId": 16567,
            "id": "1169_0_0_NoSQL_Redis_[Redis]",
            "show": 1,
            "type": 15,
            "info":{
                "name":"F"
            }
        }]
    }
}
© 2007-2023 北京基调网络股份有限公司 all right reserved,powered by Gitbook本文档更新于: 2021-03-01 11:24

results matching ""

    No results matching ""