Method: Wavefront::Validators#wf_distribution_interval?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_distribution_interval?(interval) ⇒ Boolean
Ensure the given argument is a valid distribution interval.
518 519 520 521 522 |
# File 'lib/wavefront-sdk/validators.rb', line 518 def wf_distribution_interval?(interval) return true if %i[m h d].include?(interval) raise Wavefront::Exception::InvalidDistributionInterval, interval end |