Method: Wavefront::Validators#wf_cloudintegration_id?

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

#wf_cloudintegration_id?(id) ⇒ Boolean

Ensure the given argument is a valid Wavefront cloud integration ID

Parameters:

  • id (String)

    the integration name to validate

Returns:

  • (Boolean)

    True if the integration name is valid

Raises:

  • Wavefront::Exception::InvalidCloudIntegrationId if the integration ID is not valid



242
243
244
245
246
# File 'lib/wavefront-sdk/validators.rb', line 242

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

  raise Wavefront::Exception::InvalidCloudIntegrationId, id
end