From 629b7a0d7b8ab9b2e39c96dfa02b70ac50f5af94 Mon Sep 17 00:00:00 2001 From: nareshkumarthota Date: Tue, 22 Jan 2019 17:03:22 +0530 Subject: [PATCH 1/3] Updating Readme --- activity/anomaly/examples/api/README.md | 4 ++-- activity/anomaly/examples/json/README.md | 4 ++-- activity/circuitbreaker/examples/api/README.md | 4 ++-- activity/ratelimiter/examples/api/README.md | 2 +- activity/ratelimiter/examples/json/README.md | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/activity/anomaly/examples/api/README.md b/activity/anomaly/examples/api/README.md index cffd12d..5acd4dc 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 is13.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..5a24fe2 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` 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 ``` From e84dc1dd2dc264e2ac5b3775b00a4168c680a227 Mon Sep 17 00:00:00 2001 From: ykalidin Date: Wed, 23 Jan 2019 16:22:46 +0530 Subject: [PATCH 2/3] Update README.md --- activity/anomaly/examples/api/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity/anomaly/examples/api/README.md b/activity/anomaly/examples/api/README.md index 5acd4dc..56777f6 100644 --- a/activity/anomaly/examples/api/README.md +++ b/activity/anomaly/examples/api/README.md @@ -50,4 +50,4 @@ You should see the following response: "error": "anomaly!" } ``` -The complexity is13.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. +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. From b35f77323009b5dd9c6745a0b0817dec3db2f3d1 Mon Sep 17 00:00:00 2001 From: ykalidin Date: Wed, 23 Jan 2019 16:27:35 +0530 Subject: [PATCH 3/3] Update README.md --- activity/ratelimiter/examples/api/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity/ratelimiter/examples/api/README.md b/activity/ratelimiter/examples/api/README.md index 5a24fe2..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 `activity_example.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") ```