Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/apache/caldera
/ Rule
Class
Rule
app/objects/secondclass/c_rule.py:19–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
18
19
class
Rule(BaseObject):
20
21
schema = RuleSchema()
22
23
def
__init__(self, action, trait, match=
'.*'
):
24
super().__init__()
25
self.action = action
26
self.trait = trait
27
self.match = match
Callers
10
_generate_rule
Function · 0.90
TestIPRule
Class · 0.90
test_no_duplicate_rules
Method · 0.90
test_remove_rules
Method · 0.90
test_retrieve_rule
Method · 0.90
new_source_payload
Function · 0.90
updated_source_payload
Function · 0.90
replaced_source_payload
Function · 0.90
test_source
Function · 0.90
build_rule
Method · 0.85
Calls
1
RuleSchema
Class · 0.85
Tested by
8
_generate_rule
Function · 0.72
test_no_duplicate_rules
Method · 0.72
test_remove_rules
Method · 0.72
test_retrieve_rule
Method · 0.72
new_source_payload
Function · 0.72
updated_source_payload
Function · 0.72
replaced_source_payload
Function · 0.72
test_source
Function · 0.72