Sha256: 9955b60fef9769913bd139759e99edc2ccd7959b17f30b8e7a422482e33aa018

Contents?: true

Size: 428 Bytes

Versions: 5

Compression:

Stored size: 428 Bytes

Contents

module Cassandra
  module Utils
    module Stats
      class Cleanup < Utils::CLI::Base

        def command
          'nodetool compactionstats'
        end

        def output
          cleanup = stdout.lines.any? { |l| l.include?('Cleanup') }
        end

        def metric_name
          'cassandra.cleanup.running'
        end

        def task_id
          ['cleanup', 'nodetool']
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cassandra-utils-0.4.1 lib/cassandra/utils/stats/cleanup.rb
cassandra-utils-0.4.0 lib/cassandra/utils/stats/cleanup.rb
cassandra-utils-0.3.2 lib/cassandra/utils/stats/cleanup.rb
cassandra-utils-0.3.1.pre.beta.2 lib/cassandra/utils/stats/cleanup.rb
cassandra-utils-0.3.1.pre.beta.1 lib/cassandra/utils/stats/cleanup.rb