module WavefrontCli::Mixin::Tag
Standard tag commands
Public Instance Methods
do_tag_add()
click to toggle source
# File lib/wavefront-cli/command_mixins/tag.rb, line 13 def do_tag_add wf.tag_add(options[:'<id>'], options[:'<tag>'].first) end
do_tag_clear()
click to toggle source
# File lib/wavefront-cli/command_mixins/tag.rb, line 25 def do_tag_clear wf.tag_set(options[:'<id>'], []) end
do_tag_delete()
click to toggle source
# File lib/wavefront-cli/command_mixins/tag.rb, line 17 def do_tag_delete wf.tag_delete(options[:'<id>'], options[:'<tag>'].first) end
do_tag_pathsearch()
click to toggle source
# File lib/wavefront-cli/command_mixins/tag.rb, line 29 def do_tag_pathsearch require 'wavefront-sdk/search' wfs = Wavefront::Search.new(mk_creds, mk_opts) query = { key: 'tagpath', value: options[:'<word>'], matchingMethod: 'TAGPATH', negated: false } wfs.search(search_key, query, range_hash) end
do_tag_set()
click to toggle source
# File lib/wavefront-cli/command_mixins/tag.rb, line 21 def do_tag_set wf.tag_set(options[:'<id>'], options[:'<tag>']) end