diff --git a/activity/anomaly/examples/api/README.md b/activity/anomaly/examples/api/README.md index cffd12d..56777f6 100644 --- a/activity/anomaly/examples/api/README.md +++ b/activity/anomaly/examples/api/README.md @@ -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. diff --git a/activity/anomaly/examples/json/README.md b/activity/anomaly/examples/json/README.md index e75e92a..1c34bb7 100644 --- a/activity/anomaly/examples/json/README.md +++ b/activity/anomaly/examples/json/README.md @@ -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. diff --git a/activity/circuitbreaker/examples/api/README.md b/activity/circuitbreaker/examples/api/README.md index d467549..c4ddd1f 100644 --- a/activity/circuitbreaker/examples/api/README.md +++ b/activity/circuitbreaker/examples/api/README.md @@ -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" diff --git a/activity/ratelimiter/examples/api/README.md b/activity/ratelimiter/examples/api/README.md index 7174ac2..2346558 100644 --- a/activity/ratelimiter/examples/api/README.md +++ b/activity/ratelimiter/examples/api/README.md @@ -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") ``` diff --git a/activity/ratelimiter/examples/json/README.md b/activity/ratelimiter/examples/json/README.md index a34e2fc..19b01ea 100644 --- a/activity/ratelimiter/examples/json/README.md +++ b/activity/ratelimiter/examples/json/README.md @@ -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 ```