Sha256: 86aaf3dffecaa18d6f7d879188cf70e88f5f670b734f47db38c4ead7cc887c24

Contents?: true

Size: 396 Bytes

Versions: 10

Compression:

Stored size: 396 Bytes

Contents

require "beefcake"
require "kurchatov/riemann/event"

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

10 entries across 10 versions & 1 rubygems

Version Path
kurchatov-0.0.5.pre5 lib/kurchatov/riemann/message.rb
kurchatov-0.0.5.pre4 lib/kurchatov/riemann/message.rb
kurchatov-0.0.5.pre2 lib/kurchatov/riemann/message.rb
kurchatov-0.0.5.pre1 lib/kurchatov/riemann/message.rb
kurchatov-0.0.4 lib/kurchatov/riemann/message.rb
kurchatov-0.0.4d lib/kurchatov/riemann/message.rb
kurchatov-0.0.4c lib/kurchatov/riemann/message.rb
kurchatov-0.0.4b lib/kurchatov/riemann/message.rb
kurchatov-0.0.3 lib/kurchatov/riemann/message.rb
kurchatov-0.0.3b lib/kurchatov/riemann/message.rb