Method: Wavefront::Validators#wf_point?

Defined in:
lib/wavefront-sdk/validators.rb

#wf_point?(point) ⇒ Boolean

Validate a point so it conforms to the standard described in community.wavefront.com/docs/DOC-1031

Parameters:

  • point (Hash)

    description of point

Returns:

  • (Boolean)

    true if valid

Raises:

  • whichever exception is thrown first when validating each component of the point.



445
446
447
448
449
450
451
452
# File 'lib/wavefront-sdk/validators.rb', line 445

def wf_point?(point)
  wf_metric_name?(point[:path])
  wf_value?(point[:value])
  wf_epoch?(point[:ts]) if point[:ts]
  wf_source_id?(point[:source]) if point[:source]
  wf_point_tags?(point[:tags]) if point[:tags]
  true
end