Skip to content

Commit

Permalink
Merge pull request #20 from project-flogo/chore-Readme-Changes
Browse files Browse the repository at this point in the history
Readme Improvements
  • Loading branch information
pointlander committed Jan 23, 2019
2 parents 05c5fa3 + b35f773 commit c3c60c0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions activity/anomaly/examples/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ curl -H "Content-Type:application/json" http://localhost:9096/test --upload-file
You should see the following response:
```json
{
"complexity": 9.124694,
"complexity": 13.715719,
"error": "anomaly!"
}
```
The complexity is 9.124694 standard deviations from the mean. Because this is greater than the 3 standard deviation threshold the payload is considered an anomaly. In this scenario the standard deviation threshold was increased until only a small number of anomalies were detected.
The complexity is 13.715719 standard deviations from the mean. Because this is greater than the 3 standard deviation threshold the payload is considered an anomaly. In this scenario the standard deviation threshold was increased until only a small number of anomalies were detected.
4 changes: 2 additions & 2 deletions activity/anomaly/examples/json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ curl -H "Content-Type:application/json" http://localhost:9096/test --upload-file
You should see the following response:
```json
{
"complexity": 9.124694,
"complexity": 13.715719,
"error": "anomaly!"
}
```
The complexity is 9.124694 standard deviations from the mean. Because this is greater than the 3 standard deviation threshold the payload is considered an anomaly. In this scenario the standard deviation threshold was increased until only a small number of anomalies were detected.
The complexity is 13.715719 standard deviations from the mean. Because this is greater than the 3 standard deviation threshold the payload is considered an anomaly. In this scenario the standard deviation threshold was increased until only a small number of anomalies were detected.
4 changes: 2 additions & 2 deletions activity/circuitbreaker/examples/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ You should see the following response:
```
The target service is in a working state.

Now simulate a service failure by stopping the target service, and then run the following command 6 times:
Now simulate a service failure by stopping the target service, and then run the following command 3 times:
```
curl http://localhost:9096/pets/1
```

You should see the below response 5 times:
You should see the below response 2 times:
```json
{
"error": "connection failure"
Expand Down
2 changes: 1 addition & 1 deletion activity/ratelimiter/examples/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You should see the following like response:
```

### #3 Global rate limiter
You can set global rate limit to a service (i.e. applies accross users) by using some hard coded token value. To do that modify rate limiter `step` in the gateway descriptor `main.go` as follows:
You can set global rate limit to a service (i.e. applies accross users) by using some hard coded token value. To do that modify rate limiter `step` in the gateway descriptor `activity_example.go` in the examples folder as follows:
```
step.AddInput("token", "MY_GLOBAL_TOKEN")
```
Expand Down
2 changes: 1 addition & 1 deletion activity/ratelimiter/examples/json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ You can set global rate limit to a service (i.e. applies accross users) by using
}
```

Re run the gateway:
Create and run the gateway:
```
bin/MyProxy
```
Expand Down

0 comments on commit c3c60c0

Please sign in to comment.