website: update the response json fields for sessions (#4604)

Updated the response json with the true response from Consul 1.2.2
This commit is contained in:
Raja Nadar 2018-10-24 07:33:25 -07:00 committed by Hans Hasselberg
parent a02a6be6b9
commit 344d78dc54
1 changed files with 33 additions and 19 deletions

View File

@ -177,13 +177,17 @@ $ curl \
```json ```json
[ [
{ {
"LockDelay": 1.5e+10, "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Name": "test-session",
"Node": "raja-laptop-02",
"Checks": [ "Checks": [
"serfHealth" "serfHealth"
], ],
"Node": "foobar", "LockDelay": 1.5e+10,
"ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", "Behavior": "release",
"CreateIndex": 1086449 "TTL": "30s",
"CreateIndex": 1086449,
"ModifyIndex": 1086449
} }
] ]
``` ```
@ -229,14 +233,18 @@ $ curl \
```json ```json
[ [
{ {
"LockDelay": 1.5e+10, "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Name": "test-session",
"Node": "raja-laptop-02",
"Checks": [ "Checks": [
"serfHealth" "serfHealth"
], ],
"Node": "foobar", "LockDelay": 1.5e+10,
"ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", "Behavior": "release",
"CreateIndex": 1086449 "TTL": "30s",
}, "CreateIndex": 1086449,
"ModifyIndex": 1086449
}
] ]
``` ```
@ -276,14 +284,18 @@ $ curl \
```json ```json
[ [
{ {
"LockDelay": 1.5e+10, "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Name": "test-session",
"Node": "raja-laptop-02",
"Checks": [ "Checks": [
"serfHealth" "serfHealth"
], ],
"Node": "foobar", "LockDelay": 1.5e+10,
"ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", "Behavior": "release",
"CreateIndex": 1086449 "TTL": "30s",
}, "CreateIndex": 1086449,
"ModifyIndex": 1086449
}
] ]
``` ```
@ -328,15 +340,17 @@ $ curl \
```json ```json
[ [
{ {
"LockDelay": 1.5e+10, "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Name": "test-session",
"Node": "raja-laptop-02",
"Checks": [ "Checks": [
"serfHealth" "serfHealth"
], ],
"Node": "foobar", "LockDelay": 1.5e+10,
"ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"CreateIndex": 1086449,
"Behavior": "release", "Behavior": "release",
"TTL": "15s" "TTL": "15s",
"CreateIndex": 1086449,
"ModifyIndex": 1086449
} }
] ]
``` ```