Sha256: 3cf9e1697ca968c9f271c8c68af9aaf44e6b6ec3d690a990e206bd6ea1defbb8

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

module Kurchatov
  module Riemann
    class Message
      include Beefcake::Message

      optional :ok, :bool, 2
      optional :error, :string, 3
      repeated :events, Event, 6

      def encode_with_length
        buffer = ''
        encoded = encode buffer
        "#{[encoded.length].pack('N')}#{encoded}"
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kurchatov-0.0.2 lib/kurchatov/riemann/message.rb
kurchatov-0.0.2b lib/kurchatov/riemann/message.rb
kurchatov-0.0.1 lib/kurchatov/riemann/message.rb