Method: Wavefront::Validators#wf_epoch?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_epoch?(timestamp) ⇒ Boolean
Ensure the given argument is a valid epoch timestamp. Again, no range checking.
125 126 127 128 129 |
# File 'lib/wavefront-sdk/validators.rb', line 125 def wf_epoch?() return true if .is_a?(Numeric) raise Wavefront::Exception::InvalidTimestamp, end |