lib/serfx/commands.rb
def members_filtered(tags, status = 'alive', name = nil)
      filter = {
        'Tags' => tags,
        'Status' => status
      }
      filter['Name'] = name unless name.nil?
      request(:members_filtered, filter)
    end
# obatin the list of cluster members, filtered by tags.
#
# @param tags [Array] an array of tags for filter
# @param status [Boolean] filter members based on their satatus
# @param name [String] filter based on exact name or pattern.
#
# @return  [Response]
obatin the list of cluster members, filtered by tags.
obatin the list of cluster members filtered by tags .
def members_filtered(tags, status = 'alive', name = nil)
      filter = {
        'Tags' => tags,
        'Status' => status
      }
      filter['Name'] = name unless name.nil?
      request(:members_filtered, filter)
    end
def members_filtered ( tags , status = 'alive' , name = nil ) filter = { 'Tags' => tags , 'Status' => status } filter [ 'Name' ] = name unless name . nil? request ( :members_filtered , filter ) end
obatin the list of cluster members, filtered by tags.
obatin the list of cluster members filtered by tags .
None
Response
tags
an array of tags for filter
an array of tags for filter
status
filter members based on their satatus
filter members based on their satatus
name
filter based on exact name or pattern.
filter based on exact name or pattern .