From dc12dd3eadb5abe97a20f7cd77d73712a8dcb1f4 Mon Sep 17 00:00:00 2001 From: Vitaliy Skrypnyk Date: Sun, 5 Dec 2021 22:34:12 +0200 Subject: [PATCH] Update README.md --- README.md | 10 ++++----- src/test/resources/config-sample.yml | 32 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index d197739..b1e6e0f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ [comment]: <> ([![Forks][forks-shield]][forks-url]) [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] -[![MIT License][license-shield]][license-url] +[![Apache 2.0 License][license-shield]][license-url] [comment]: <> ([![LinkedIn][linkedin-shield]][linkedin-url]) @@ -137,11 +137,11 @@ Distributed under the Apache License Version 2.0 License. See `LICENSE.md` for m -[stars-shield]: https://img.shields.io/github/stars/github_username/repo_name.svg?style=for-the-badge +[stars-shield]: https://img.shields.io/github/stars/vitaliy-sk/PerfUnit.svg?style=for-the-badge [stars-url]: https://github.com/vitaliy-sk/perfunit/stargazers -[issues-shield]: https://img.shields.io/github/issues/github_username/repo_name.svg?style=for-the-badge +[issues-shield]: https://img.shields.io/github/issues/vitaliy-sk/PerfUnit.svg?style=for-the-badge [issues-url]: https://github.com/vitaliy-sk/perfunit/issues -[license-shield]: https://img.shields.io/github/license/github_username/repo_name.svg?style=for-the-badge -[license-url]: https://github.com/vitaliy-sk/perfunit/blob/master/LICENSE.txt +[license-shield]: https://img.shields.io/github/license/vitaliy-sk/PerfUnit.svg?style=for-the-badge +[license-url]: https://github.com/vitaliy-sk/perfunit/blob/master/LICENSE.md ---- diff --git a/src/test/resources/config-sample.yml b/src/test/resources/config-sample.yml index 9ddc424..7d04148 100644 --- a/src/test/resources/config-sample.yml +++ b/src/test/resources/config-sample.yml @@ -17,23 +17,23 @@ rules: # dev.techh.perfunit.integration.service.ExpensiveService - set shared limit to all methods' in the specified class # dev.techh.perfunit.integration.service.ExpensiveService#testWithArgs - set shared limit to all methods with name testWithArgs # dev.techh.perfunit.integration.service.ExpensiveService#testWithArgs(java.lang.String) - set limit testWithArgs with one String argument - dev.techh.perfunit.integration.service.ExpensiveService#count5InvocationsAllowed: - description: Method testNoArgs call to often # Optional: text description - allowUnknownCalls: true # Optional: allow invocation without tracing id (default: true) - allowFail: true # Optional: if "fail" and quota will be reach exception will be thrown (default: false) - tracingKey: traceId # Optional: key which be used for tracking quota usage. This key should be present in MDC (default: traceId) - onlyPublic: true # Optional: instrument only public methods (default: true) - limit: - # One or multiple limit can be used at the same time. - count: 10 # Numbers of call allowed - timeSingle: 200 # Single call limit in msec - timeTotal: 500 # Total time limit in msec - # dev.techh.perfunit.integration.service.ExpensiveService#count5InvocationsAllowed: -# description: count5InvocationsAllowed -# tracingKey: traceId -# limit: -# count: 5 +# description: Method testNoArgs call to often # Optional: text description +# allowUnknownCalls: true # Optional: allow invocation without tracing id (default: true) +# allowFail: true # Optional: if "fail" and quota will be reach exception will be thrown (default: false) +# tracingKey: traceId # Optional: key which be used for tracking quota usage. This key should be present in MDC (default: traceId) +# onlyPublic: true # Optional: instrument only public methods (default: true) +# limit: +# # One or multiple limit can be used at the same time. +# count: 10 # Numbers of call allowed +# timeSingle: 200 # Single call limit in msec +# timeTotal: 500 # Total time limit in msec + + dev.techh.perfunit.integration.service.ExpensiveService#count5InvocationsAllowed: + description: count5InvocationsAllowed + tracingKey: traceId + limit: + count: 5 dev.techh.perfunit.integration.service.ExpensiveService#time10MsecSingleAllowed: description: time10MsecSingleAllowed