Method: Wavefront::Validators#wf_point_tag?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_point_tag?(key, val) ⇒ Boolean
Validate a single point tag, probably on behalf of #wf_point_tags?
196 197 198 199 200 201 202 203 |
# File 'lib/wavefront-sdk/validators.rb', line 196 def wf_point_tag?(key, val) if key && val && (key.size + val.size < 254) && key =~ /^[\w\-.:]+$/ && val !~ /\\$/ return false end raise Wavefront::Exception::InvalidTag, "#{key}=#{val}" end |