Method: Wavefront::Validators#wf_proxy_id?

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

#wf_proxy_id?(id) ⇒ Boolean

Ensure the given argument is a valid Wavefront proxy ID

Parameters:

  • id (String)

    the proxy ID to validate

Returns:

  • (Boolean)

    True if the proxy ID is valid

Raises:

  • Wavefront::Exception::InvalidProxyId if the proxy ID is not valid



212
213
214
215
216
# File 'lib/wavefront-sdk/validators.rb', line 212

def wf_proxy_id?(id)
  return true if uuid?(id)

  raise Wavefront::Exception::InvalidProxyId, id
end