Class: PromptWarden::CLI::EventFilter
- Inherits:
-
Object
- Object
- PromptWarden::CLI::EventFilter
- Defined in:
- lib/prompt_warden/cli.rb
Class Method Summary collapse
Class Method Details
.matches?(event, options) ⇒ Boolean
52 53 54 55 56 57 58 |
# File 'lib/prompt_warden/cli.rb', line 52 def self.matches?(event, ) return false if [:alerts] && (!event.alerts || event.alerts.empty?) return false if [:model] && event.model != [:model] return false if [:cost] && (!event.cost_usd || event.cost_usd < [:cost]) return false if [:status] && event.status != [:status] true end |