Explain the configuration difference between ws-rest-server-boot & ws-rest-server-boot-rules
See original GitHub issueHey,
The ws-rest-server-boot-rules sample-app contains the following extra configuration data in appsensor-server-config.xml
. I was wondering if I could get some extra context on this configuration type. Besides that I’m currently trying to configure one of the REST sample apps to log a user out on 3 events by the same user. How would I do that in the sample apps?
Best
<rules>
<rule guid="00000000-0000-0000-0000-000000000000">
<name>Rule 1</name>
<window unit="minutes">2</window>
<expressions>
<expression>
<window unit="minutes">1</window>
<clauses>
<clause>
<monitor-points>
<monitor-point guid="00000000-0000-0000-0000-000000000001">
<category>Input Validation</category>
<id>IE1</id>
<threshold>
<count>50</count>
<interval unit="minutes">1</interval>
</threshold>
</monitor-point>
<monitor-point guid="00000000-0000-0000-0000-000000000002">
<category>Input Validation</category>
<id>IE2</id>
<threshold>
<count>2</count>
<interval unit="seconds">10</interval>
</threshold>
</monitor-point>
</monitor-points>
</clause>
<clause>
<monitor-points>
<monitor-point guid="00000000-0000-0000-0000-000000000003">
<category>Input Validation</category>
<id>RE3</id>
<threshold>
<count>2</count>
<interval unit="seconds">20</interval>
</threshold>
</monitor-point>
</monitor-points>
</clause>
</clauses>
</expression>
<expression>
<window unit="minutes">1</window>
<clauses>
<clause>
<monitor-points>
<monitor-point guid="00000000-0000-0000-0000-000000000004">
<category>Input Validation</category>
<id>IE1</id>
<threshold>
<count>3</count>
<interval unit="minutes">1</interval>
</threshold>
</monitor-point>
</monitor-points>
</clause>
</clauses>
</expression>
</expressions>
<responses>
<response>
<action>log</action>
</response>
<response>
<action>logout</action>
</response>
<response>
<action>disableUser</action>
</response>
<response>
<action>disableComponentForSpecificUser</action>
<interval unit="minutes">30</interval>
</response>
<response>
<action>disableComponentForAllUsers</action>
<interval unit="minutes">30</interval>
</response>
</responses>
</rule>
<rule guid="00000000-0000-0000-0000-000000000005">
<name>Rule 2</name>
<window unit="seconds">10</window>
<expressions>
<expression>
<window unit="seconds">5</window>
<clauses>
<clause>
<monitor-points>
<monitor-point guid="00000000-0000-0000-0000-000000000006">
<category>Input Validation</category>
<id>IE1</id>
<threshold>
<count>1</count>
<interval unit="seconds">5</interval>
</threshold>
</monitor-point>
</monitor-points>
</clause>
</clauses>
</expression>
</expressions>
<responses>
<response>
<action>log</action>
</response>
</responses>
</rule>
</rules>
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
What is the difference between running configuration and ...
The running configuration is the actual configuration controlling the operation of the firewall. It is maintained in a file on the firewall ...
Read more >Understanding the differences between configuration history ...
In this blog post, we discuss the difference between configuration history and configuration snapshot files and the use cases for which they ...
Read more >What is the difference between @Configuration and ...
@Component Indicates that an annotated class is a "component". Such classes are considered as candidates for auto-detection when using annotation-based ...
Read more >What is the difference between Online and Local configuration?
If you have worked with SKAARHOJ controllers, "Local config" and "online config" might be confusing. Watch this video to clarify, what is what....
Read more >Managing Configurations | Junos OS - Juniper Networks
The following sections explain the XML that is generated for specific types of configuration changes. The corresponding text changes are shown for comparison....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dscrobonia check my work please!
Based on the following sentence from https://github.com/jtmelton/appsensor/tree/master/analysis-engines/appsensor-analysis-rules:
My suspicion is that you would need a single rule, 1 expression, and 3 clauses. That way, your rule would say if you saw 1 RE1 AND 1 RE2 AND 1 RE3, you would fire.
If you instead did 3 expressions, it would be ORs instead of ANDs.
Hope that helps!
Thanks, for actively responding to my question, I’ll look into it!