Skip to content

CustomPluginMonitor should support multiple "permanent" rules for the same node condition. #664

Closed as not planned
@jason1028kr

Description

@jason1028kr

Hello,

This is to reopen plan/discussion around an issue where CustomPluginMonitor behaves in an unexpected way (#566).

In short, when there are multiple rules for the same condition in configuration, the NPD will generate events for all of them causing the condition to flip-flop.

Current behavior

Described in #566

Suggestions/Ideas

As discussed in the original issue, I believe it would be reasonable for CustomPluginMonitor to behave in this way.

  • Produce one event for each condition.
  • If different rules for a condition return both NonOK/True and OK/False, resolve to the "worst" case (condition is NonOK/True).
  • If multiple rules evaluate to NonOK/True, current condition's reason/rule (NonOK/True) takes precedence. If it just so happens that the particular reason/rule returns OK/False in current interval, we can take the first rule that evaluates to NonOK/True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions