Skip to content

Commit

Permalink
Fixes broken example JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Mar 4, 2016
1 parent 0a59971 commit 1548588
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/source/docs/agent/http/query.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,18 @@ to static templates, except with some additional fields and features. Here's an
```javascript
{
"Name": "geo-db",
"Template" {
"Template": {
"Type": "name_prefix_match",
"Regexp": "^geo-db-(.*?)-([^\-]+?)$"
"Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
},
"Service": {
"Service": "mysql-${regexp.match(1)}",
"Service": "mysql-${match(1)}",
"Failover": {
"NearestN": 3,
"Datacenters": ["dc1", "dc2"]
},
"OnlyPassing": true,
"Tags": ["${regexp.match(2)}"]
"Tags": ["${match(2)}"]
}
}
```
Expand Down Expand Up @@ -466,9 +466,9 @@ a JSON body will be returned like this:
"Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Token": "<hidden>",
"Name": "geo-db",
"Template" {
"Template": {
"Type": "name_prefix_match",
"Regexp": "^geo-db-(.*?)-([^\-]+?)$"
"Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
},
"Service": {
"Service": "mysql-customer",
Expand Down

0 comments on commit 1548588

Please sign in to comment.