apache_conf config.json用于测试复杂的json解析器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf config.json用于测试复杂的json解析器相关的知识,希望对你有一定的参考价值。
{
"status_code": 200,
"status_txt": "OK",
"data": {
"version": "0.3.2",
"health": "OK",
"topics": [
{
"topic_name": "test",
"channels": [
{
"channel_name": "neverlock",
"depth": 14,
"backend_depth": 13,
"in_flight_count": 0,
"deferred_count": 0,
"message_count": 0,
"requeue_count": 0,
"timeout_count": 0,
"clients": [],
"paused": false,
"e2e_processing_latency": {
"count": 0,
"percentiles": null
}
},
{
"channel_name": "nsq_to_file",
"depth": 0,
"backend_depth": 0,
"in_flight_count": 0,
"deferred_count": 0,
"message_count": 0,
"requeue_count": 0,
"timeout_count": 0,
"clients": [
{
"name": "MacBook-Pro-khxng-Chanchai",
"client_id": "MacBook-Pro-khxng-Chanchai",
"hostname": "MacBook-Pro-khxng-Chanchai.local",
"version": "V2",
"remote_address": "127.0.0.1:53286",
"state": 3,
"ready_count": 8,
"in_flight_count": 0,
"message_count": 0,
"finish_count": 0,
"requeue_count": 0,
"connect_ts": 1433835311,
"sample_rate": 0,
"deflate": false,
"snappy": false,
"user_agent": "go-nsq/1.0.5-alpha",
"tls": false,
"tls_cipher_suite": "",
"tls_version": "",
"tls_negotiated_protocol": "",
"tls_negotiated_protocol_is_mutual": false
}
],
"paused": false,
"e2e_processing_latency": {
"count": 0,
"percentiles": null
}
}
],
"depth": 0,
"backend_depth": 0,
"message_count": 0,
"paused": false,
"e2e_processing_latency": {
"count": 0,
"percentiles": null
}
},
{
"topic_name": "write_test",
"channels": [
{
"channel_name": "ch",
"depth": 0,
"backend_depth": 0,
"in_flight_count": 0,
"deferred_count": 0,
"message_count": 0,
"requeue_count": 0,
"timeout_count": 0,
"clients": [],
"paused": false,
"e2e_processing_latency": {
"count": 0,
"percentiles": null
}
}
],
"depth": 0,
"backend_depth": 0,
"message_count": 0,
"paused": false,
"e2e_processing_latency": {
"count": 0,
"percentiles": null
}
}
]
}
}
{"object":
{
"buffer_size": 10,
"Databases":
[
{
"host": "localhost",
"user": "root",
"pass": "",
"type": "mysql",
"name": "go",
"Tables":
[
{
"name": "testing",
"statment": "teststring",
"regex": "teststring ([0-9]+) ([A-z]+)",
"Types":
[
{
"id": "int",
"value": "string"
}
]
}
]
}
]
}
}
以上是关于apache_conf config.json用于测试复杂的json解析器的主要内容,如果未能解决你的问题,请参考以下文章