Class: Apartment::PoolObserver::Sample

Inherits:
Data
  • Object
show all
Defined in:
lib/apartment/pool_observer.rb

Overview

name: Symbol (:evict, :tenant_pools_live, …); kind: :counter | :gauge; value: Numeric; dimensions: Hash (curated, e.g. { reason: :idle }); payload: the raw notification payload (counters) or {} (gauges).

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsObject (readonly)

Returns the value of attribute dimensions

Returns:

  • (Object)

    the current value of dimensions



16
17
18
# File 'lib/apartment/pool_observer.rb', line 16

def dimensions
  @dimensions
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



16
17
18
# File 'lib/apartment/pool_observer.rb', line 16

def kind
  @kind
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/apartment/pool_observer.rb', line 16

def name
  @name
end

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



16
17
18
# File 'lib/apartment/pool_observer.rb', line 16

def payload
  @payload
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



16
17
18
# File 'lib/apartment/pool_observer.rb', line 16

def value
  @value
end