Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme Improvements #20

Merged
merged 3 commits into from
Jan 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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