struct

Elasticsearch::Size

Inherits Struct < Value < Object

Represents a number of bytes, primarily used in inspecting index stats to provide byte eizes that are human-readable.

es.indices.stats("*").all.total.store.size_in_bytes.inspect # => "5.05GB"

Constructors

new(json : JSON::PullParser)
Source
new(bytes : Int64)
Source

Instance methods

inspect(io) : Nil
Source
to_i
Source
to_i64
Source
to_json(json : JSON::Builder)
Source

Nested types