Class: SplitIoClient::Api::Metrics

Inherits:
Client
  • Object
show all
Defined in:
lib/splitclient-rb/engine/api/metrics.rb

Constant Summary

Constants inherited from Client

Client::RUBY_ENCODING

Instance Method Summary collapse

Methods inherited from Client

#get_api, #post_api

Constructor Details

#initialize(api_key, metrics_repository, config) ⇒ Metrics

Returns a new instance of Metrics.



6
7
8
9
10
# File 'lib/splitclient-rb/engine/api/metrics.rb', line 6

def initialize(api_key, metrics_repository, config)
  super(config)
  @api_key = api_key
  @metrics_repository = metrics_repository
end

Instance Method Details

#postObject



12
13
14
15
# File 'lib/splitclient-rb/engine/api/metrics.rb', line 12

def post
  post_latencies
  post_counts
end