Skip to content

Instantly share code, notes, and snippets.

@casimiro
Created August 3, 2020 20:16
Show Gist options
  • Save casimiro/2a7ba4653cc115c12cd8fa60473c072c to your computer and use it in GitHub Desktop.
Save casimiro/2a7ba4653cc115c12cd8fa60473c072c to your computer and use it in GitHub Desktop.
[
{
"authenticated_entity": {
"id": "8fcd11f9-3358-40b4-a494-131c3bd1d25e"
},
"client_ip": "192.168.64.1",
"consumer": {
"created_at": 1596485598,
"id": "3391944b-2c84-4eda-95d0-20fb21f16c1b",
"type": 0,
"username": "government"
},
"latencies": {
"kong": 0,
"proxy": -1,
"request": 0
},
"request": {
"headers": {
"accept": "*/*",
"apikey": "government",
"host": "localhost:8000",
"user-agent": "curl/7.71.1",
"x-consumer-id": "3391944b-2c84-4eda-95d0-20fb21f16c1b",
"x-consumer-username": "government"
},
"method": "GET",
"post_data": {},
"querystring": {
"wait": "1000"
},
"size": "130",
"uri": "/book-store/latency-test",
"url": "http://localhost:8000/book-store/latency-test"
},
"response": {
"headers": {
"connection": "close",
"content-length": "8",
"content-type": "text/html; charset=utf-8",
"date": "Mon, 03 Aug 2020 20:14:53 GMT",
"integer-header": "1",
"server": "gunicorn/19.9.0",
"string-header": "string-value",
"via": "kong/1.5.0.4-enterprise-edition",
"x-kong-proxy-latency": "1",
"x-kong-upstream-latency": "1003"
},
"size": "314",
"status": 200
},
"route": {
"created_at": 1596485597,
"https_redirect_status_code": 426,
"id": "4be6a05a-e144-4c95-a517-ae525db92ac5",
"path_handling": "v1",
"paths": [
"/book-store"
],
"preserve_host": false,
"protocols": [
"http",
"https"
],
"regex_priority": 0,
"service": {
"id": "71ed5ae5-4b9a-42a9-82c1-aead5b001c4a"
},
"strip_path": true,
"updated_at": 1596485597
},
"service": {
"connect_timeout": 60000,
"created_at": 1596485597,
"host": "testendpoints",
"id": "71ed5ae5-4b9a-42a9-82c1-aead5b001c4a",
"name": "mockbin",
"path": "/",
"port": 6000,
"protocol": "http",
"read_timeout": 60000,
"retries": 5,
"updated_at": 1596485597,
"write_timeout": 60000
},
"started_at": 1596485692157,
"tries": [
{
"balancer_latency": 0,
"balancer_start": 1596485692158,
"ip": "192.168.64.2",
"port": 6000
}
],
"upstream_uri": "/latency-test",
"workspace": "5bdc2887-9cd0-4b10-8a2f-3464b5aca86d"
},
{
"authenticated_entity": {
"id": "8fcd11f9-3358-40b4-a494-131c3bd1d25e"
},
"client_ip": "192.168.64.1",
"consumer": {
"created_at": 1596485598,
"id": "3391944b-2c84-4eda-95d0-20fb21f16c1b",
"type": 0,
"username": "government"
},
"latencies": {
"kong": 5,
"proxy": -1,
"request": 22
},
"request": {
"headers": {
"accept": "*/*",
"apikey": "government",
"host": "localhost:8000",
"user-agent": "curl/7.71.1",
"x-consumer-id": "3391944b-2c84-4eda-95d0-20fb21f16c1b",
"x-consumer-username": "government"
},
"method": "GET",
"post_data": {},
"querystring": {
"wait": "10000"
},
"size": "131",
"uri": "/book-store/latency-test",
"url": "http://localhost:8000/book-store/latency-test"
},
"response": {
"headers": {
"connection": "close",
"content-length": "8",
"content-type": "text/html; charset=utf-8",
"date": "Mon, 03 Aug 2020 20:13:51 GMT",
"integer-header": "1",
"server": "gunicorn/19.9.0",
"string-header": "string-value",
"via": "kong/1.5.0.4-enterprise-edition",
"x-kong-proxy-latency": "65",
"x-kong-upstream-latency": "10005"
},
"size": "316",
"status": 200
},
"route": {
"created_at": 1596485597,
"https_redirect_status_code": 426,
"id": "4be6a05a-e144-4c95-a517-ae525db92ac5",
"path_handling": "v1",
"paths": [
"/book-store"
],
"preserve_host": false,
"protocols": [
"http",
"https"
],
"regex_priority": 0,
"service": {
"id": "71ed5ae5-4b9a-42a9-82c1-aead5b001c4a"
},
"strip_path": true,
"updated_at": 1596485597
},
"service": {
"connect_timeout": 60000,
"created_at": 1596485597,
"host": "testendpoints",
"id": "71ed5ae5-4b9a-42a9-82c1-aead5b001c4a",
"name": "mockbin",
"path": "/",
"port": 6000,
"protocol": "http",
"read_timeout": 60000,
"retries": 5,
"updated_at": 1596485597,
"write_timeout": 60000
},
"started_at": 1596485621787,
"tries": [
{
"balancer_latency": 0,
"balancer_start": 1596485621852,
"ip": "192.168.64.2",
"port": 6000
}
],
"upstream_uri": "/latency-test",
"workspace": "5bdc2887-9cd0-4b10-8a2f-3464b5aca86d"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment