Method: Wavefront::Validators#wf_spansamplingpolicy_id?

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

#wf_spansamplingpolicy_id?(id) ⇒ Boolean

Ensure the given argument is a valid Wavefront Span Sampling Policy ID. So far as I can tell they’re just strings.

Parameters:

  • id (String)

    the span sampling policy ID to validate

Returns:

  • (Boolean)

    true if the ID is valid

Raises:

  • Wavefront::Exception::InvalidSpanSamplingPolicyId if the ID is not valid



675
676
677
678
679
# File 'lib/wavefront-sdk/validators.rb', line 675

def wf_spansamplingpolicy_id?(id)
  return true if id.is_a?(String)

  raise Wavefront::Exception::InvalidSpanSamplingPolicyId, id
end