Method: Wavefront::Validators#wf_alert_severity?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_alert_severity?(severity) ⇒ Boolean
Ensure the given argument is a valid alert severity
327 328 329 330 331 |
# File 'lib/wavefront-sdk/validators.rb', line 327 def wf_alert_severity?(severity) return true if %w[INFO SMOKE WARN SEVERE].include?(severity) raise Wavefront::Exception::InvalidAlertSeverity, severity end |