feat(rules): refactor code to rename evaluators to rules#245
feat(rules): refactor code to rename evaluators to rules#245namrataghadi-galileo wants to merge 7 commits into
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
lan17
left a comment
There was a problem hiding this comment.
Why are we doing this?
Evaluator is a good name, no?
|
@lan17 This is to comply with Cisco/Splunks naming as ACE is offered now as a product within Splunk Cloud Observability. The keyword "evaluators" is reserved for "metrics".. Heres the proposal we are going to go ahead with after our internal discussions. Credits to @abhinav-galileo for coining this proposal. This PR is going to change. We will rename evaluators to checks and not rules. Evaluator = reusable compute/check primitive, e.g. Toxicity, Context Relevance, Regex, JSON (this complies with Splunk Observability nomenclature) In Agent Control, controls use evaluators through conditions/checks. The action is applied when the condition matches. |
|
That's same as current design, no? |
|
@lan17 There is subtle difference in how it works today ControlDefinition = scope/stage + condition + action Here, "galileo.luna" is the evaluator, while "toxicity" is hidden inside its config. The proposal is to bring out the metrics like toxicity out as evaluators like below I would even go further and change this to |
|
I'm still confused since evaluators currently are regex, Luna, etc, no? |
|
“Evaluator” is a good name, but Splunk Observability already uses it for a reusable metric that returns a score, boolean, or findings. In Agent Control, today’s evaluator also applies thresholds or matching logic and decides whether a control triggers, so it is closer to a check. |
|
@namrataghadi-galileo - I am not sure about adding another level of nesting with |
Summary
Scope
Risk and Rollout
Testing
make check(or explained why not)Checklist