Skip to content

Commit

Permalink
docs: example data is used in both examples (#1570)
Browse files Browse the repository at this point in the history
Signed-off-by: John Huynh <[email protected]>
  • Loading branch information
huynhj93 authored Oct 12, 2021
1 parent 99c1566 commit 73997ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/analysis/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ of the as the result variable.
```yaml
metrics:
- name: webmetric
successCondition: result == 'true'
successCondition: result == true
provider:
web:
url: "http://my-server.com/api/v1/measurement?service={{ args.service-name }}"
timeoutSeconds: 20 # defaults to 10 seconds
headers:
- key: Authorization
value: "Bearer {{ args.api-token }}"
jsonPath: "{$.results.ok}"
jsonPath: "{$.data.ok}"
```
In the following example, given the payload, the measurement will be Successful if the `data.ok` field was `true`, and the `data.successPercent`
Expand Down

0 comments on commit 73997ee

Please sign in to comment.