Class: OpenObserve::Api::Client
- Inherits:
-
Object
- Object
- OpenObserve::Api::Client
- Defined in:
- lib/openobserve-api/client.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #_well_known ⇒ Object
- #api ⇒ Object
- #healthz ⇒ Object
-
#initialize(base_url: nil, **options, &block) ⇒ Client
constructor
A new instance of Client.
- #rum ⇒ Object
- #service_streams ⇒ Object
- #short ⇒ Object
Constructor Details
#initialize(base_url: nil, **options, &block) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/openobserve-api/client.rb', line 7 def initialize(base_url: nil, **, &block) @configuration = Configuration.new(base_url: base_url, **, &block) @connection = Connection.new(@configuration) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/openobserve-api/client.rb', line 5 def configuration @configuration end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
5 6 7 |
# File 'lib/openobserve-api/client.rb', line 5 def connection @connection end |
Instance Method Details
#_well_known ⇒ Object
12 13 14 |
# File 'lib/openobserve-api/client.rb', line 12 def _well_known @_well_known ||= OpenObserve::Api::WellKnown.new(@connection) end |
#api ⇒ Object
16 17 18 |
# File 'lib/openobserve-api/client.rb', line 16 def api @api ||= OpenObserve::Api::Api.new(@connection) end |
#healthz ⇒ Object
20 21 22 |
# File 'lib/openobserve-api/client.rb', line 20 def healthz @healthz ||= OpenObserve::Api::Healthz.new(@connection) end |
#rum ⇒ Object
24 25 26 |
# File 'lib/openobserve-api/client.rb', line 24 def rum @rum ||= OpenObserve::Api::Rum.new(@connection) end |
#service_streams ⇒ Object
28 29 30 |
# File 'lib/openobserve-api/client.rb', line 28 def service_streams @service_streams ||= OpenObserve::Api::ServiceStreams.new(@connection) end |
#short ⇒ Object
32 33 34 |
# File 'lib/openobserve-api/client.rb', line 32 def short @short ||= OpenObserve::Api::Short.new(@connection) end |