MCPcopy
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
19class 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_ruleFunction · 0.90
TestIPRuleClass · 0.90
test_remove_rulesMethod · 0.90
test_retrieve_ruleMethod · 0.90
new_source_payloadFunction · 0.90
updated_source_payloadFunction · 0.90
replaced_source_payloadFunction · 0.90
test_sourceFunction · 0.90
build_ruleMethod · 0.85

Calls 1

RuleSchemaClass · 0.85

Tested by 8

_generate_ruleFunction · 0.72
test_remove_rulesMethod · 0.72
test_retrieve_ruleMethod · 0.72
new_source_payloadFunction · 0.72
updated_source_payloadFunction · 0.72
replaced_source_payloadFunction · 0.72
test_sourceFunction · 0.72