Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moonlogs-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonlogs-ruby

  • 1.15.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

moonlogs-ruby

MoonlogsRuby - the Ruby gem for the Moonlogs

Moonlogs API

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.15.1
  • Package version: 1.15.1
  • Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build moonlogs-ruby.gemspec

Then either install the gem locally:

gem install ./moonlogs-ruby-1.15.1.gem

(for development, run gem install --dev ./moonlogs-ruby-1.15.1.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'moonlogs-ruby', '~> 1.15.1'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'moonlogs-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'moonlogs-ruby'
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.cover_record_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->cover_record_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::ActionRequest.new # ActionRequest | 
}

begin
  result = api_instance.create_action(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_action: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::RecordRequest.new # RecordRequest | 
}

begin
  result = api_instance.create_log(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_log: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::RecordRequest.new # RecordRequest | 
}

begin
  result = api_instance.create_log_async(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_log_async: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::SchemaRequest.new # SchemaRequest | 
}

begin
  result = api_instance.create_schema(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_schema: #{e}"
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::Credentials.new # Credentials | 
}

begin
  result = api_instance.create_session(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_session: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::TagRequest.new # TagRequest | 
}

begin
  result = api_instance.create_tag(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_tag: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::ApiTokenRequest.new # ApiTokenRequest | 
}

begin
  result = api_instance.create_token(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_token: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::UserRequest.new # UserRequest | 
}

begin
  result = api_instance.create_user(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->create_user: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.delete_action_by_id
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->delete_action_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.delete_schema_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->delete_schema_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.delete_tag_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->delete_tag_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.delete_token_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->delete_token_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.delete_user_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->delete_user_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.expose_record_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->expose_record_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_action_by_id
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_action_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_actions
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_actions: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  page: 56, # Integer | 
  limit: 56 # Integer | 
}

begin
  result = api_instance.get_log(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_log: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_log_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_log_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_log_request_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_log_request_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_log_response_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_log_response_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
schema_name = 'schema_name_example' # String | 
hash = 'hash_example' # String | 


begin
  result = api_instance.get_logs_by_schema_and_hash(schema_name, hash)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_logs_by_schema_and_hash: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_schema_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_schema_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_schemas
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_schemas: #{e}"
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_session
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_session: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_tag_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_tag_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_tags
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_tags: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_token_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_token_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_tokens
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_tokens: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 


begin
  result = api_instance.get_user_by_id(id)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_user_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new

begin
  result = api_instance.get_users
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->get_users: #{e}"
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::UserRequest.new # UserRequest | 
}

begin
  result = api_instance.register_admin(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->register_admin: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::RecordRequest.new, # RecordRequest | 
  page: 56, # Integer | 
  limit: 56, # Integer | 
  from: 'from_example', # String | Time in format \"YYYY-DD-MMTHH:SS\"
  to: 'to_example' # String | Time in format \"YYYY-DD-MMTHH:SS\"
}

begin
  result = api_instance.search_logs(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->search_logs: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
opts = { 
  body: MoonlogsRuby::ActionRequest.new # ActionRequest | 
}

begin
  result = api_instance.update_action_by_id(opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->update_action_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 
opts = { 
  body: MoonlogsRuby::SchemaRequest.new # SchemaRequest | 
}

begin
  result = api_instance.update_schema_by_id(id, opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->update_schema_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 
opts = { 
  body: MoonlogsRuby::TagRequest.new # TagRequest | 
}

begin
  result = api_instance.update_tag_by_id(id, opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->update_tag_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 
opts = { 
  body: MoonlogsRuby::ApiTokenRequest.new # ApiTokenRequest | 
}

begin
  result = api_instance.update_token_by_id(id, opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->update_token_by_id: #{e}"
end
# Setup authorization
MoonlogsRuby.configure do |config|
end

api_instance = MoonlogsRuby::DefaultApi.new
id = 56 # Integer | 
opts = { 
  body: MoonlogsRuby::UserRequest.new # UserRequest | 
}

begin
  result = api_instance.update_user_by_id(id, opts)
  p result
rescue MoonlogsRuby::ApiError => e
  puts "Exception when calling DefaultApi->update_user_by_id: #{e}"
end

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
MoonlogsRuby::DefaultApicover_record_by_idPUT /api/logs/{id}/cover
MoonlogsRuby::DefaultApicreate_actionPOST /api/actions
MoonlogsRuby::DefaultApicreate_logPOST /api/logs
MoonlogsRuby::DefaultApicreate_log_asyncPOST /api/logs/async
MoonlogsRuby::DefaultApicreate_schemaPOST /api/schemas
MoonlogsRuby::DefaultApicreate_sessionPOST /api/session
MoonlogsRuby::DefaultApicreate_tagPOST /api/tags
MoonlogsRuby::DefaultApicreate_tokenPOST /api/api_tokens
MoonlogsRuby::DefaultApicreate_userPOST /api/users
MoonlogsRuby::DefaultApidelete_action_by_idDELETE /api/actions/{id}
MoonlogsRuby::DefaultApidelete_schema_by_idDELETE /api/schemas/{id}
MoonlogsRuby::DefaultApidelete_tag_by_idDELETE /api/tags/{id}
MoonlogsRuby::DefaultApidelete_token_by_idDELETE /api/api_tokens/{id}
MoonlogsRuby::DefaultApidelete_user_by_idDELETE /api/users/{id}
MoonlogsRuby::DefaultApiexpose_record_by_idPUT /api/logs/{id}/expose
MoonlogsRuby::DefaultApiget_action_by_idGET /api/actions/{id}
MoonlogsRuby::DefaultApiget_actionsGET /api/actions
MoonlogsRuby::DefaultApiget_logGET /api/logs
MoonlogsRuby::DefaultApiget_log_by_idGET /api/logs/{id}
MoonlogsRuby::DefaultApiget_log_request_by_idGET /api/logs/{id}/request
MoonlogsRuby::DefaultApiget_log_response_by_idGET /api/logs/{id}/response
MoonlogsRuby::DefaultApiget_logs_by_schema_and_hashGET /api/logs/group/{schema_name}/{hash}
MoonlogsRuby::DefaultApiget_schema_by_idGET /api/schemas/{id}
MoonlogsRuby::DefaultApiget_schemasGET /api/schemas
MoonlogsRuby::DefaultApiget_sessionGET /api/session
MoonlogsRuby::DefaultApiget_tag_by_idGET /api/tags/{id}
MoonlogsRuby::DefaultApiget_tagsGET /api/tags
MoonlogsRuby::DefaultApiget_token_by_idGET /api/api_tokens/{id}
MoonlogsRuby::DefaultApiget_tokensGET /api/api_tokens
MoonlogsRuby::DefaultApiget_user_by_idGET /api/users/{id}
MoonlogsRuby::DefaultApiget_usersGET /api/users
MoonlogsRuby::DefaultApiregister_adminPOST /api/setup/register_admin
MoonlogsRuby::DefaultApisearch_logsPOST /api/logs/search
MoonlogsRuby::DefaultApiupdate_action_by_idPUT /api/actions/{id}
MoonlogsRuby::DefaultApiupdate_schema_by_idPUT /api/schemas/{id}
MoonlogsRuby::DefaultApiupdate_tag_by_idPUT /api/tags/{id}
MoonlogsRuby::DefaultApiupdate_token_by_idPUT /api/api_tokens/{id}
MoonlogsRuby::DefaultApiupdate_user_by_idPUT /api/users/{id}

Documentation for Models

Documentation for Authorization

http1

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc