Collection接口

接口调用时须在请求头中设置agentId,返回内容为 JSON 格式的信息. 其参数为时间类型都以时间戳形式传递。

有些接口调用时需用到hostId、agentId、clusterId、eventId

hostId 在“根据主机名模糊查询主机基本信息”接口处获取。

agentId 在"生成agentId"接口处获取。

eventId 在"获取集群日志信息"接口处找到所需事件的id

clusterId 在“查找mongoDB集群信息数据”接口返回结果集中。

请求头默认格式,特殊情况特殊声明

agentId在"生成agentId"接口处获取。

KEY VALUE
Accept-Encoding gzip,deflate,br
Connection keep-alive
Content-Type application/json
agentId "agentId"


1 保存agent端的日志记录.

1.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/agent/save/log


1.2 请求参数

Name Located in Description Required Schema
agentLogEntity Body 日志信息实体对象 Yes AgentLogEntity


img_5.png


1.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
msg 返回消息 String


img_1.png



2 更新agent的mongo文件信息.

2.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/agent/updateAgentMongoFile/


2.2 请求参数

Name Located in Description Required Schema
agentId Path agentId Yes String
mongoFileList Body mongo文件集合 Yes List


img_29.png

Ex. 更新agent的mongo文件信息;其中MongoFileList 如下所示:
 [
        {
            "_id": "62d62a9bbfa6b71dad85b68a",M
            "createTime": "1658202779363",
            "hostId": "62b153a344ba1b7771c42df7",
            "md5": "1",
            "name": "mongodb-linux-x86_64-enterprise-rhel70-4.4.14.tgz",
            "path": "/var/ops/agent/mongodb-linux-x86_64-enterprise-rhel70-4.4.14.tgz",
            "server": false,
            "shortName": "mongodb-linux-x86_64-enterprise-rhel70-4.4.14",
            "size": 133646249,
            "updateTime": "1658202779363"
        }
    ]

2.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
msg 返回消息 String


img_30.png



3 根据agentId查询该agent待执行的命令.

3.1 请求路径

GET: http://{Server-Host}:{端口}/api/collection/command/agent/get/


3.2 请求参数

Name Located in Description Required Schema
hostId Path 主机id Yes String


img_6.png


3.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回数据 List


img_7.png

{
    "code": 1000,
    "data": [
        {
            "id": "62fa1ca7fe07726988b761e6",
            "createTime": 1660558503957,
            "updateTime": 1660558503957,
            "hostId": "62ecdb15dce5916b2b6f1b3c",
            "commandType": 106,
            "status": 0,
            "eventId": "62fa1ca6fe07726988b761e4",
            "commandNote": "检查端口是否被占用",
            "content": "{\"port\":\"23462\"}",
            "execResult": null
        }
    ]
}


4 更新命令实体对象的状态.

4.1 请求路径

PUT: http://{Server-Host}:{端口}/api/collection/command/agent/update


4.2 请求参数

Name Located in Description Required Schema
commandEntity Body 命令实体对象 Yes CommandEntity


img_4.png

Ex. 更新命令实体对象的状态;其中 CommandEntity 如下所示:

{
    "id" : "62c54a395dc04d3d4c13be75",
    "commandNote" : "server100:20190获取集群角色",
    "commandType" : 221,
    "content" : "{}",
    "createTime" : "1657096761802",
    "execResult" : "已完成",
    "hostId" : "62b153a344ba1b7771c42df7",
    "status" : 3,
    "updateTime" :"1657096769089"
}

4.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_5.png



5 更新时间戳

5.1 请求路径

GET: http://{Server-Host}:{端口}/api/collection/hostInfo/updateRunTime//


5.2 请求参数

Name Located in Description Required Schema
hostId Path 主机id Yes String
timeStamp Path 时间戳 Yes String


img_6.png


5.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
msg 返回消息 String


img_7.png



6 保存主机信息

6.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/hostInfo


6.2 请求参数

Name Located in Description Required Schema
hostInfoMongoEntity Body 主机信息实体对象 Yes HostInfoMongoEntity


img_8.png

Ex. 保存主机信息;其中 HostInfoMongoEntity 如下所示:
{
    "_id" : "62cbbd7607bebb71b8429e5e",
    "cpuInfo" : " Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz",
    "cpuNum" : 40,
    "hostId" : "62cbbd7607bebb71b8429e5e",
    "hostName" : "server200",
    "hostNameLong" : "server200",
    "ipInfo" : [
        {
            "ip" : "172.17.0.1",
            "type" : "ipv4"
        }
    ],
    "kernelInfo" : "3.10.0-1062.el7.x86_64",
    "osVersion" : "CentOS Linux release 7.7.1908 (Core)",
    "run" : true,
    "systemPropertyInfo" : {
        "fileSeparator" : "/",
        "javaClassPath" : "agent-collection-1.0.0.jar",
        "javaClassVersion" : "55.0",
        "javaHome" : "/root/jdk-11.0.9",
        "javaIoTmpdir" : "/tmp",
        "javaLibraryPath" : "/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib",
        "javaSpecificationName" : "Java Platform API Specification",
        "javaSpecificationVendor" : "Oracle Corporation",
        "javaVendor" : "Oracle Corporation",
        "javaVersion" : "11.0.9",
        "javaVmName" : "Java HotSpot(TM) 64-Bit Server VM",
        "javaVmSpecificationName" : "Java Virtual Machine Specification",
        "javaVmSpecificationVersion" : "11",
        "javaVmVendor" : "Oracle Corporation",
        "javaVmVersion" : "11.0.9+7-LTS",
        "lineSeparator" : "\n",
        "oSArch" : "amd64",
        "oSName" : "Linux",
        "oSVersion" : "3.10.0-1062.el7.x86_64",
        "pathSeparator" : ":",
        "userDir" : "/home/jmops",
        "userHome" : "/root",
        "userName" : "root"
    }
}

6.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
msg 返回消息 String


img_9.png



7 保存主机实时信息

7.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/hostRealTime/addHostRealTimeData


7.2 请求参数

Name Located in Description Required Schema
hostRealTimeDataMongoEntity Body 主机实时信息实体对象 Yes HostRealTimeDataMongoEntity


img_10.png

Ex. 保存主机信息;其中 HostInfoMongoEntity 如下所示:

{
    "_id" : "62cbbd7607bebb71b8429e5e",
    "cpuInfo" : " Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz",
    "cpuNum" : 40,
    "hostId" : "62cbbd7607bebb71b8429e5e",
    "hostName" : "server200",
    "hostNameLong" : "server200",
    "ipInfo" : [
        {
            "ip" : "172.17.0.1",
            "type" : "ipv4"
        }
    ],
    "kernelInfo" : "3.10.0-1062.el7.x86_64",
    "osVersion" : "CentOS Linux release 7.7.1908 (Core)",
    "run" : true,
    "systemPropertyInfo" : {
        "fileSeparator" : "/",
        "javaClassPath" : "agent-collection-1.0.0.jar",
        "javaClassVersion" : "55.0",
        "javaHome" : "/root/jdk-11.0.9",
        "javaIoTmpdir" : "/tmp",
        "javaLibraryPath" : "/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib",
        "javaSpecificationName" : "Java Platform API Specification",
        "javaSpecificationVendor" : "Oracle Corporation",
        "javaVendor" : "Oracle Corporation",
        "javaVersion" : "11.0.9",
        "javaVmName" : "Java HotSpot(TM) 64-Bit Server VM",
        "javaVmSpecificationName" : "Java Virtual Machine Specification",
        "javaVmSpecificationVersion" : "11",
        "javaVmVendor" : "Oracle Corporation",
        "javaVmVersion" : "11.0.9+7-LTS",
        "lineSeparator" : "\n",
        "oSArch" : "amd64",
        "oSName" : "Linux",
        "oSVersion" : "3.10.0-1062.el7.x86_64",
        "pathSeparator" : ":",
        "userDir" : "/home/jmops",
        "userHome" : "/root",
        "userName" : "root"
    }
}

7.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_11.png



8 agent调用此接口来获取server端的时间

8.1 请求路径

GET: http://{Server-Host}:{端口}/api/collection/util/get/server/date


8.2 请求

img_12.png


8.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 时间戳 long


img_13.png



9 agent通过调用此接口来获取请求agent的ip

9.1 请求路径

GET: http://{Server-Host}:{端口}/api/collection/util/get/agent/ip


9.2 请求

img_14.png


9.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回数据:ip String


img_15.png



10 mongo进行日志记录

10.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongo/insertMongoClusterLog//


10.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
eventId Path 事件id Yes String
logList Body 日志列表 Yes List


img.png


10.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_1.png



11 插入mongo成员日志

11.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongo/insertMongoMemberLog///


11.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
memberInfo Path 成员信息 Yes String
eventId Path 事件id Yes String
logList Body 日志列表 Yes List


img_2.png


11.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_3.png



12 更新mongo节点信息

12.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongo/updateMongo


12.2 请求参数

Name Located in Description Required Schema
mongoMember Body mongo集群成员 Yes MongoMember


img_8.png


Ex. 更新mongo节点信息;其中 MongoMember 如下所示:
{
  "id": "62f76749e011b442d7c91ec6",
  "createTime": 0,
  "updateTime": 1660466332000,
  "memberName": "server200:39801",
  "hostName": "server200",
  "hostId": "62ecda96dce5916b2b6f1b39",
  "port": "39801",
  "version": "6.0.1",
  "upgradeVersion": null,
  "userName": "root",
  "password": "123456",
  "authDbName": "admin",
  "currentTimeMillis": 1660381001974,
  "dataDirectory": "/var/ops/mongodb1660381001974/data/",
  "logFile": "/home/guanfei/data2/sharding8/data/mongos/data1/mongos.log",
  "confPath": "/home/guanfei/data2/sharding8/config/mongos/mongos1.conf",
  "authAble": true,
  "runShCmd": "/home/guanfei/data2/server/mongodb-linux-x86_64-enterprise-rhel70-6.0.0/bin/mongos -f /home/guanfei/data2/sharding8/config/mongos/mongos1.conf",
  "type": 61,
  "status": "正在运行",
  "monitorServerStatus": false,
  "monitorTopAndOp": false,
  "collectMongoLog": false,
  "mongoLogFileOffset": 0,
  "operaLogTemp": [],
  "votes": 1,
  "priority": 1,
  "delay": 0,
  "buildIndexes": true,
  "procId": "46797",
  "clusterId": "62f76747fe07726988b75f6b",
  "replId": null,
  "clusterName": null,
  "tags": {},
  "configurationOptions": {
    "systemLog_destination": "file",
    "systemLog_path": "/home/guanfei/data2/sharding8/data/mongos/data1/mongos.log",
    "processManagement_fork": "true",
    "systemLog_logAppend": "true",
    "security_keyFile": "/home/guanfei/data2/sharding8/keyfile",
    "net_bindIp": "0.0.0.0",
    "net_port": "39801",
    "securityKeyFileValue": "BeP6Mbxj23i1jaGsGiRwKmHed2mCqDhlH4ZudHjiftZBoh26OQrCOaX+cAe/28Op\r\n5Uwk57104dUFM1nZUuKmC0kPaGzgbIzSyYnam0ypUZn/jP+v7Nf0sd8ZFGxS0FbX\r\n5HnYXoZtWYZV5tizC6TlyJCnPqW5TnFQZKSV//Nlm2mcaDI2FciX0XP2hHyv3TVJ\r\nwbQgZUMn8JMxgeif+Q0YEiKO+oJSnP1N7gmxlQAZni+6MyphY4e7rjYleNN5JzGr\r\nn6Xfy3Fjt5ZmARkw0GhI/Gm1aDCdiuhE+bgNCdRLEfy8USOyTh39aj25jj8YcW0E\r\nRHeqKB/emqvi0zeKEu7dr4pxUEttjWWstJv+ZepdUpg0pyTSLw+E23CrQ0AhWbTu\r\njx+i36J3CuRiM5Lb2m89/H8lo5NDzbzcd34ENjAhzunGSO4g+owG2+iD7SJIt6A3\r\noFU+ONPWuTcAGOOrRsCvinelr+R1K522HjopNzQQHicoMo8CQcU2KLbyud2V2N0/\r\n7N46ZwfeCQ27vp9hZn6VpUFAQyUd+9hWcE1VxyMPsVHmoMh+gn1OrPWZiXI/3ejR\r\nuasEy+N8dsCNe15nxUFk0Y6Q7hSj26dcxcZzDwNunhLnPALSxiZkzgOPY2l5XT6d\r\nbS62uUN2zt4aRxHNSh/e0O7ygz5BF3UDUElJ7610Exg88DOZ2K3MXiBHTH7yl+QV\r\nGDjF8h0oO/hHRtXYr0UdVIA5cLwk3Ya6ImNQY3ZK241JCheoLgfOqpi3mJi12q2t\r\nBeoqZyUZk6rCaJi79oG1elOTZPEXunipfNvgwysa4jVzTPngSH7qqcMGGSu4lro7\r\nnMiHyxc9iyV9d3K4KXoz0pNLFVSi0v3ToteiKtCVxxuIW0Gco9LdS9RRkXJb23/p\r\nnGLfrhyT13GhUmm1zF7wdEMTVQ6Ktzu6pccRY7ZnMUFnT5XzlcexZzdEJe2Q6K4e\r\n/Dtbr6jjFNL+8iXp0m6k/52IHYYqAMPMk8Z+FzuExSpA+A9o",
    "sharding_configDB": "mongo-cfg/192.168.3.190:36821,192.168.3.200:36821"
  },
  "operateVersion": 5723
}

12.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_5.png



13 更新复制集信息

13.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongo/updateMongoRepl/


13.2 请求参数

Name Located in Description Required Schema
isUpdateMemberList Path 是否更新成员列表 Yes boolean
mongoReplica Body mongo复制集 Yes MongoReplica


img_9.png


13.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_7.png



14 更新集群信息

14.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongo/updateCluster


14.2 请求参数

Name Located in Description Required Schema
mongoClusterInformation Body mongo集群信息实体对象 Yes MongoClusterInformation


img_10.png


14.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_9.png



15 保存mongo成员的实时信息

15.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/realtime/save/one/


15.2 请求参数

Name Located in Description Required Schema
tableName Path 表名 Yes String
mongodbNodeMetrics Body mongo实时数据对象 Yes MongodbNodeMetrics


img_11.png

Ex. 保存mongo成员的实时信息;MongodbNodeMetrics 如下所示:
{
    "anAssert" : {
        "msg" : 0,
        "regular" : 0,
        "user" : 0,
        "warning" : 0
    },
    "cacheFlow" : {
        "brin" : 8717624,
        "bwfr" : 6421369
    },
    "cacheUsage" : {
        "bdirty" : 29300225,
        "bused" : 9071610
    },
    "collectionLock" : {
        "r" : 0.00,
        "r_i" : 0.00,
        "w" : 0.00,
        "w_i" : 0.00
    },
    "collectionScan" : {
        "total" : 0
    },
    "conn" : {
        "avl" : 52357,
        "us" : 70
    },
    "createTime" : "1660469450000",
    "databaseLock" : {
        "r" : 0.00,
        "r_i" : 0.00,
        "w" : 0.00,
        "w_i" : 0.00
    },
    "deletedDocument" : {
        "deleted" : 103,
        "deletedByTTL" : 35
    },
    "documentOp" : {
        "inserted" : 26,
        "returned" : 0,
        "updated" : 0
    },
    "hostId" : "62cbbd7607bebb71b8429e5e",
    "hostName" : "server200",
    "latency" : {
        "r" : 717.90,
        "w" : 3252.41
    },
    "lockCondition" : {
        "r" : 0,
        "w" : 0
    },
    "memory" : {
        "resident" : 15452,
        "virtual" : 17276
    },
    "net" : {
        "cmpIn" : 15058,
        "cmpOut" : 56052,
        "in" : 15118,
        "out" : 56052
    },
    "nodeId" : "62f49bb052bbf7002d41013d",
    "pageFaults" : 0,
    "port" : "29301",
    "qps" : {
        "cmd" : 3,
        "delete" : 0,
        "getMore" : 0,
        "insert" : 26,
        "query" : 3,
        "update" : 1
    },
    "scanAndOrder" : {
        "scanAndOrder" : 0
    },
    "targetQ" : {
        "scanObject" : 340,
        "scanned" : 0
    },
    "tickets" : {
        "ravl" : 126,
        "wavl" : 0
    },
    "timeGranularity" : 0,
    "transactionCondition" : {
        "currActive" : 0,
        "currInactive" : 0,
        "totalAborted" : 0,
        "totalCommitted" : 0
    },
    "updateTime" : "1660469450000"
}

15.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_11.png



Deprecated 已弃用

16 保存一批监控数据到数据库中

16.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/realtime/save/many


16.2 请求参数

Name Located in Description Required Schema
mongoDBRealtimeDataEntityList Body 保存mongo成员的实时信息集合 Yes List


img_12.png


16.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_13.png



17 获取agent实例上的mongo节点信息

17.1 请求路径

POST http://{Server-Host}:{端口}/api/collection/mongodb/agent/mongoMember/


17.2 请求参数

Name Located in Description Required Schema
agentId Path agentId Yes String


img_14.png


17.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回数据 List


{
    "code": 1000,
    "data": [
        {
            "id": "62d6506ec5b6206027b99052",
            "createTime": 1658212462005,
            "updateTime": 1658302192001,
            "memberName": "chen:56902",
            "hostName": "chen",
            "hostId": "62bbfbe9a46517610435d615",
            "port": "56902",
            "version": "4.2.21",
            "upgradeVersion": null,
            "userName": "lhp1234",
            "password": "123456",
            "authDbName": "admin",
            "currentTimeMillis": 1658212462005,
            "dataDirectory": "/home/chen/data56902/data/",
            "logFile": "/home/chen/data56902/data/log.log",
            "confPath": "/home/chen/data56902/data/chen_56902.conf",
            "deleteDataAndLogAble": false,
            "authAble": true,
            "runShCmd": "",
            "type": 45,
            "status": "正在运行",
            "monitorServerStatus": true,
            "monitorTopAndOp": true,
            "collectMongoLog": true,
            "mongoLogFileOffset": 0,
            "operaLogTemp": [],
            "votes": 1,
            "priority": 1.0,
            "delay": 0,
            "buildIndexes": true,
            "procId": "5599",
            "clusterId": "62d65068561b4a25b8339740",
            "replId": "62d6506dc5b6206027b99050",
            "clusterName": null,
            "tags": {},
            "configurationOptions": {
                "sharding_clusterRole": "configsvr",
                "security_keyFile": "",
                "security_authorization": "enabled",
                "systemLog_destination": "file",
                "storage_wiredTiger_engineConfig_cacheSizeGB": "0.3",
                "systemLog_Path": "/home/chen/data56902/data/log.log",
                "processManagement_fork": "true",
                "storage_dbPath": "/home/chen/data56902/data/",
                "systemLog_logAppend": "true",
                "net_bindIp": "0.0.0.0",
                "net_port": "56902",
                "replication_replSetName": "test_lhp_shard_config",
                "securityKeyFileValue":""
            },
            "operateVersion": 8168
        }
    ]
}


18 保存mongo.log日志

18.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/save/mongoLog//


18.2 请求参数

Name Located in Description Required Schema
mongoMemberId Path mongo成员id Yes String
fileOffset Path 文件偏移 Yes long
logList Body 日志列表 Yes List


img_15.png


18.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 文件偏移量 long


img_16.png



19 保存 mongo top and op

19.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/save/mongoTopAndOp


19.2 请求参数

Name Located in Description Required Schema
documentList Body Document列表 Yes List


img_17.png


19.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_18.png



20 更新fcv

20.1 请求路径

GET: http://{Server-Host}:{端口}/api/collection/mongodb/updateFCV//


20.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
fcv Path fcv Yes String


img_19.png


20.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_20.png



21 保存mongodb集合

21.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/saveMongoDBCollections


21.2 请求参数

Name Located in Description Required Schema
mongoDBCollections Body mongo实集合 Yes MongoDBCollections


Ex. 保存mongodb集合;其中 MongoDBCollections 如下所示:
{
    "_id" : "62ea1db298c0825187aee96e",
    "clusterId" : "62ea1db298c0825187aee96e",
    "createTime" : "1659686288006",
    "dbTables" : [
        {
            "name" : "fs.files",
            "type" : "collection",
            "options" : {

            },
            "info" : {
                "readOnly" : false,
                "uuid" : {
                    "type" : 4,
                    "data" : "q/X3q+2aQVC9dGCnS4wKZA=="
                }
            },
            "idIndex" : {
                "v" : 2,
                "key" : {
                    "_id" : 1
                },
                "name" : "_id_",
                "ns" : "record.fs.files"
            },
            "storageSize" : 20,
            "size" : 16,
            "ns" : "record.fs.files"
        }
    ],
    "fromServerExe" : false,
    "updateTime" : 0
}

img_12.png


21.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_22.png



22 保存mongo成员用户

22.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/saveMongoDBClusterUser/


22.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
list Body document列表 Yes List


img_23.png

Ex. 保存mongo成员用户;其中 List 如下所示:
[{
    "name" : "hostRealTimeDataMongoEntity",
    "type" : "collection",
    "options" : {    
    },
    "storageSize" : 8836,
    "size" : 44721,
    "ns" : "ops.hostRealTimeDataMongoEntity",
    "indexSizes" : {
        "_id_" : 248,
        "createTime_1" : 152,
        "hostId_1" : 84,
        "hostId_1_createTime_1_timeGranularity_1" : 172
    }
}]

22.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_24.png



23 保存mongo成员角色

23.1 请求路径

POST: http://{Server-Host}:{端口}/api/collection/mongodb/saveMongoDBClusterRole/


23.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
list Body document列表 Yes List


img_25.png


23.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


img_26.png


24 巡检上传

24.1 请求路径

POST: http://localhost:9601/api/collection/file/mdiag/file/


24.2 请求参数

Name Located in Description Required Schema
clusterId Path 集群id Yes String
file Body 文件 Yes MultipartFile


img.png


24.3 返回结果

Description Schema
code 状态符:1000成功,其余异常 int
data 返回消息 String


{
    "msg": "推送成功",
    "code": 1000
}


---

results matching ""

    No results matching ""