Method: Wavefront::Validators#wf_dashboard_id?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_dashboard_id?(id) ⇒ Boolean
There doesn’t seem to be a public statement on what’s allowed in a dashboard name. For now I’m going to assume up to 255 word characters.
257 258 259 260 261 |
# File 'lib/wavefront-sdk/validators.rb', line 257 def wf_dashboard_id?(id) return true if id.is_a?(String) && id.size < 256 && id.match(/^[\w-]+$/) raise Wavefront::Exception::InvalidDashboardId, id end |