Class: Kontena::Cli::Models::Grid::Stats

Inherits:
Object
  • Object
show all
Includes:
MasterApiModel
Defined in:
lib/kontena/cli/models/grid.rb

Defined Under Namespace

Classes: Statsd

Instance Attribute Summary

Attributes included from MasterApiModel

#api_data

Instance Method Summary collapse

Methods included from MasterApiModel

#initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kontena::Cli::Models::MasterApiModel

Instance Method Details

#statsdObject



12
13
14
# File 'lib/kontena/cli/models/grid.rb', line 12

def statsd
  @statsd ||= Statsd.new(@api_data.dig('statsd', 'server'), @api_data.dig('statsd', 'port'))
end