Class: OpenObserve::Api::ServiceStreams
- Inherits:
-
Object
- Object
- OpenObserve::Api::ServiceStreams
- Defined in:
- lib/openobserve-api/api/service_streams.rb
Instance Method Summary collapse
- #_analytics(org_id:) ⇒ Object
- #_correlate(org_id:, correlation_request:) ⇒ Object
- #config_identity(org_id:) ⇒ Object
- #config_identity_put(org_id:, body:) ⇒ Object
-
#initialize(connection) ⇒ ServiceStreams
constructor
A new instance of ServiceStreams.
- #list(org_id:) ⇒ Object
Constructor Details
#initialize(connection) ⇒ ServiceStreams
Returns a new instance of ServiceStreams.
5 6 7 |
# File 'lib/openobserve-api/api/service_streams.rb', line 5 def initialize(connection) @connection = connection end |
Instance Method Details
#_analytics(org_id:) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/openobserve-api/api/service_streams.rb', line 9 def _analytics(org_id:) raise ArgumentError, 'org_id is required' if org_id.nil? @connection.call( :GET, '/{org_id}/service_streams/_analytics' .gsub('{org_id}', ERB::Util.url_encode(org_id.to_s)), type: OpenObserve::Api::Models::DimensionAnalyticsSummary, auth: ['Authorization'] ) end |
#_correlate(org_id:, correlation_request:) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/openobserve-api/api/service_streams.rb', line 21 def _correlate(org_id:, correlation_request:) raise ArgumentError, 'org_id is required' if org_id.nil? raise ArgumentError, 'correlation_request is required' if correlation_request.nil? @connection.call( :POST, '/{org_id}/service_streams/_correlate' .gsub('{org_id}', ERB::Util.url_encode(org_id.to_s)), type: OpenObserve::Api::Models::CorrelationResponse, auth: ['Authorization'], body: correlation_request ) end |
#config_identity(org_id:) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/openobserve-api/api/service_streams.rb', line 35 def config_identity(org_id:) raise ArgumentError, 'org_id is required' if org_id.nil? @connection.call( :GET, '/{org_id}/service_streams/config/identity' .gsub('{org_id}', ERB::Util.url_encode(org_id.to_s)), type: nil, auth: ['Authorization'] ) end |
#config_identity_put(org_id:, body:) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/openobserve-api/api/service_streams.rb', line 47 def config_identity_put(org_id:, body:) raise ArgumentError, 'org_id is required' if org_id.nil? raise ArgumentError, 'body is required' if body.nil? @connection.call( :PUT, '/{org_id}/service_streams/config/identity' .gsub('{org_id}', ERB::Util.url_encode(org_id.to_s)), type: nil, auth: ['Authorization'], body: body ) end |
#list(org_id:) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/openobserve-api/api/service_streams.rb', line 61 def list(org_id:) raise ArgumentError, 'org_id is required' if org_id.nil? @connection.call( :GET, '/{org_id}/service_streams' .gsub('{org_id}', ERB::Util.url_encode(org_id.to_s)), type: nil, auth: ['Authorization'] ) end |