Sha256: e560bbcaaaaa24a94ccf336bb0c99e326a119649ccac7a99f28c4b7a9395994c

Contents?: true

Size: 979 Bytes

Versions: 41

Compression:

Stored size: 979 Bytes

Contents

module RocketJob
  # Heartbeat
  #
  # Information from the server as at it's last heartbeat
  class Heartbeat
    include Plugins::Document

    # Time of the last heartbeat received from this server
    field :updated_at, type: Time

    # Number of workers started.
    field :workers, type: Integer

    #
    # Process Information. Future.
    #

    # Percentage utilization for the server process alone
    # field :process_cpu, type: Integer
    # Kilo Bytes used by the server process (Virtual & Physical)
    # field :process_mem_phys_kb, type: Integer
    # field :process_mem_virt_kb, type: Integer

    #
    # System Information. Future.
    #

    # Percentage utilization for the host machine
    # field :host_cpu, type: Integer
    # Kilo Bytes Available on the host machine (Physical)
    # field :host_mem_avail_phys_kbytes, type: Float
    # field :host_mem_avail_virt_kbytes, type: Float

    # If available
    # field :load_average, type: Float
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rocketjob-6.3.1 lib/rocket_job/heartbeat.rb
rocketjob-6.3.0 lib/rocket_job/heartbeat.rb
rocketjob-6.2.0 lib/rocket_job/heartbeat.rb
rocketjob-6.1.1 lib/rocket_job/heartbeat.rb
rocketjob-6.1.0 lib/rocket_job/heartbeat.rb
rocketjob-6.0.3 lib/rocket_job/heartbeat.rb
rocketjob-6.0.2 lib/rocket_job/heartbeat.rb
rocketjob-6.0.1 lib/rocket_job/heartbeat.rb
rocketjob-6.0.0 lib/rocket_job/heartbeat.rb
rocketjob-6.0.0.rc3 lib/rocket_job/heartbeat.rb
rocketjob-6.0.0.rc2 lib/rocket_job/heartbeat.rb
rocketjob-6.0.0.rc1 lib/rocket_job/heartbeat.rb
rocketjob-5.4.1 lib/rocket_job/heartbeat.rb
rocketjob-5.4.0 lib/rocket_job/heartbeat.rb
rocketjob-5.4.0.beta2 lib/rocket_job/heartbeat.rb
rocketjob-5.4.0.beta1 lib/rocket_job/heartbeat.rb
rocketjob-5.3.3 lib/rocket_job/heartbeat.rb
rocketjob-5.3.2 lib/rocket_job/heartbeat.rb
rocketjob-5.3.1 lib/rocket_job/heartbeat.rb
rocketjob-5.3.0 lib/rocket_job/heartbeat.rb