@tony-yin
2018-08-07T16:51:31.000000Z
字数 3727
阅读 678
API
所有report
接口的url
,headers
全都一致,只是body
会存在不同,所以在下面的API
中,只会在第一个API
中展示url
和headers
,其他的API
都只会展示body
和response
。
http://192.168.232.182:9666/search/report/
{
'Authorization': JWT [Token]
}
{
'health': 'v'
}
[
{
"health": [
{
"epoch": "1533629872",
"timestamp": "16:17:52",
"cluster": "elasticsearch",
"status": "yellow",
"node.total": "1",
"node.data": "1",
"shards": "102",
"pri": "102",
"relo": "0",
"init": "0",
"unassign": "101",
"pending_tasks": "0",
"max_task_wait_time": "-",
"active_shards_percent": "50.2%"
}
]
}
]
{
'allocation': 'v'
}
[
{
"allocation": [
{
"shards": "102",
"disk.indices": "2.7gb",
"disk.used": "8.1gb",
"disk.avail": "89.2gb",
"disk.total": "97.4gb",
"disk.percent": "8",
"host": "192.168.232.192",
"ip": "192.168.232.192",
"node": "hN4mYuz"
},
...
]
}
]
{
'count': 'v'
}
[
{
"count": [
{
"epoch": "1533630479",
"timestamp": "16:27:59",
"count": "13848289"
}
]
}
]
{
'indices': 'v'
}
[
{
"indices": [
{
"health": "yellow",
"status": "open",
"index": "filebeat-6.3.0-2018.07.27",
"uuid": "BHe00xWbTTmbEraopqU59Q",
"pri": "3",
"rep": "1",
"docs.count": "306588",
"docs.deleted": "0",
"store.size": "75.5mb",
"pri.store.size": "75.5mb"
},
...
]
}
]
{
'master': 'v'
}
[
{
"master": [
{
"id": "hN4mYuzpQaG9FVF9nIzwjw",
"host": "192.168.232.192",
"ip": "192.168.232.192",
"node": "hN4mYuz"
}
]
}
]
{
'nodes': 'v'
}
[
{
"nodes": [
{
"ip": "192.168.232.192",
"heap.percent": "59",
"ram.percent": "70",
"cpu": "12",
"load_1m": "1.39",
"load_5m": "1.49",
"load_15m": "1.31",
"node.role": "mdi",
"master": "*",
"name": "hN4mYuz"
}
]
}
]
{
'recovery': 'v'
}
[
{
"recovery": [
{
"index": "filebeat-6.3.0-2018.07.04",
"shard": "0",
"time": "1.1s",
"type": "existing_store",
"stage": "done",
"source_host": "n/a",
"source_node": "n/a",
"target_host": "192.168.232.192",
"target_node": "hN4mYuz",
"repository": "n/a",
"snapshot": "n/a",
"files": "0",
"files_recovered": "0",
"files_percent": "100.0%",
"files_total": "61",
"bytes": "0",
"bytes_recovered": "0",
"bytes_percent": "100.0%",
"bytes_total": "30236642",
"translog_ops": "0",
"translog_ops_recovered": "0",
"translog_ops_percent": "100.0%"
},
...
]
}
]
{
'shards': 'v'
}
[
{
"shards": [
{
"index": "filebeat-6.3.0-2018.08.05",
"shard": "1",
"prirep": "p",
"state": "STARTED",
"docs": "101841",
"store": "24.6mb",
"ip": "192.168.232.192",
"node": "hN4mYuz"
},
...
]
}
]
{
'segments': 'v'
}
[
{
"segments": [
{
"index": "filebeat-6.3.0-2018.07.04",
"shard": "0",
"prirep": "p",
"ip": "192.168.232.192",
"segment": "_v",
"generation": "31",
"docs.count": "72178",
"docs.deleted": "0",
"size": "13.1mb",
"size.memory": "54408",
"committed": "true",
"searchable": "true",
"version": "7.3.1",
"compound": "false"
},
...
]
}
]
{
'snapshots': 'v'
}
[
{
"snapshots": {
"error": {
"root_cause": [
{
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: repository is missing;"
}
],
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: repository is missing;"
},
"status": 400
}
}
]
{
'fielddata': 'v'
}
[
{
"fielddata": [
{
"id": "hN4mYuzpQaG9FVF9nIzwjw",
"host": "192.168.232.192",
"ip": "192.168.232.192",
"node": "hN4mYuz",
"field": "redis.log.level",
"size": "1.2kb"
},
...
]
}
]
{
'fielddata': 'v'
}
[
{
"aliases": []
}
]
{
'nodeattrs': 'v'
}
[
{
"nodeattrs": [
{
"node": "hN4mYuz",
"host": "192.168.232.192",
"ip": "192.168.232.192",
"attr": "ml.machine_memory",
"value": "8201891840"
},
...
]
}
]
{
'pending_tasks': 'v'
}
[
{
"pending_tasks": []
}
]
{
'plugins': 'v'
}
[
{
"plugins": [
{
"name": "hN4mYuz",
"component": "ingest-geoip",
"version": "6.3.0"
},
{
"name": "hN4mYuz",
"component": "ingest-user-agent",
"version": "6.3.0"
}
]
}
]
{
'repositories': 'v'
}
[
{
"repositories": []
}
]
{
'thread_pool': 'v'
}
[
{
"thread_pool": [
{
"node_name": "hN4mYuz",
"name": "analyze",
"active": "0",
"queue": "0",
"rejected": "0"
},
...
]
}
]