Class: LogStash::ElasticsearchClient
- Inherits:
-
Object
- Object
- LogStash::ElasticsearchClient
show all
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/elasticsearch_client.rb
Defined Under Namespace
Classes: Response, RubyClient
Class Method Summary
collapse
Instance Method Summary
collapse
included, #logger, #slow_logger
Constructor Details
Returns a new instance of ElasticsearchClient.
97
98
99
|
# File 'lib/logstash/elasticsearch_client.rb', line 97
def initialize(client)
@client = client
end
|
Class Method Details
.build(settings) ⇒ Object
20
21
22
|
# File 'lib/logstash/elasticsearch_client.rb', line 20
def self.build(settings)
new(RubyClient.new(settings, logger))
end
|
Instance Method Details
#can_connect? ⇒ Boolean
113
114
115
|
# File 'lib/logstash/elasticsearch_client.rb', line 113
def can_connect?
@client.can_connect?
end
|
#delete(path) ⇒ Object
101
102
103
|
# File 'lib/logstash/elasticsearch_client.rb', line 101
def delete(path)
@client.delete(path)
end
|
#head(path) ⇒ Object
109
110
111
|
# File 'lib/logstash/elasticsearch_client.rb', line 109
def head(path)
@client.head(path)
end
|
#host_settings ⇒ Object
117
118
119
|
# File 'lib/logstash/elasticsearch_client.rb', line 117
def host_settings
@client.host_settings
end
|
#put(path, content) ⇒ Object
105
106
107
|
# File 'lib/logstash/elasticsearch_client.rb', line 105
def put(path, content)
@client.put(path, content)
end
|