Class: Sumologic::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sumologic::CLI
- Defined in:
- lib/sumologic/cli.rb,
lib/sumologic/cli/commands/base_command.rb,
lib/sumologic/cli/commands/search_command.rb,
lib/sumologic/cli/commands/list_apps_command.rb,
lib/sumologic/cli/commands/get_lookup_command.rb,
lib/sumologic/cli/commands/get_content_command.rb,
lib/sumologic/cli/commands/get_monitor_command.rb,
lib/sumologic/cli/commands/list_fields_command.rb,
lib/sumologic/cli/commands/list_folders_command.rb,
lib/sumologic/cli/commands/list_sources_command.rb,
lib/sumologic/cli/commands/get_dashboard_command.rb,
lib/sumologic/cli/commands/list_monitors_command.rb,
lib/sumologic/cli/commands/export_content_command.rb,
lib/sumologic/cli/commands/list_collectors_command.rb,
lib/sumologic/cli/commands/list_dashboards_command.rb,
lib/sumologic/cli/commands/list_health_events_command.rb,
lib/sumologic/cli/commands/discover_source_metadata_command.rb
Overview
Thor-based CLI for Sumo Logic query tool Delegates commands to specialized command classes
Defined Under Namespace
Modules: Commands
Class Method Summary collapse
Instance Method Summary collapse
- #discover_source_metadata ⇒ Object
- #export_content ⇒ Object
-
#get_content ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter.
-
#get_dashboard ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter.
-
#get_lookup ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter.
-
#get_monitor ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter.
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #list_apps ⇒ Object
- #list_collectors ⇒ Object
- #list_dashboards ⇒ Object
- #list_fields ⇒ Object
- #list_folders ⇒ Object
- #list_health_events ⇒ Object
- #list_monitors ⇒ Object
- #list_sources ⇒ Object
- #search ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(*args) ⇒ CLI
Returns a new instance of CLI.
32 33 34 35 |
# File 'lib/sumologic/cli.rb', line 32 def initialize(*args) super $DEBUG = true if [:debug] end |
Class Method Details
.exit_on_failure? ⇒ Boolean
28 29 30 |
# File 'lib/sumologic/cli.rb', line 28 def self.exit_on_failure? true end |
Instance Method Details
#discover_source_metadata ⇒ Object
171 172 173 |
# File 'lib/sumologic/cli.rb', line 171 def Commands::DiscoverSourceMetadataCommand.new(, create_client).execute end |
#export_content ⇒ Object
414 415 416 |
# File 'lib/sumologic/cli.rb', line 414 def export_content Commands::ExportContentCommand.new(, create_client).execute end |
#get_content ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter
396 397 398 |
# File 'lib/sumologic/cli.rb', line 396 def get_content Commands::GetContentCommand.new(, create_client).execute end |
#get_dashboard ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter
289 290 291 |
# File 'lib/sumologic/cli.rb', line 289 def get_dashboard Commands::GetDashboardCommand.new(, create_client).execute end |
#get_lookup ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter
353 354 355 |
# File 'lib/sumologic/cli.rb', line 353 def get_lookup Commands::GetLookupCommand.new(, create_client).execute end |
#get_monitor ⇒ Object
rubocop:disable Naming/AccessorMethodName – Thor CLI command, not a getter
223 224 225 |
# File 'lib/sumologic/cli.rb', line 223 def get_monitor Commands::GetMonitorCommand.new(, create_client).execute end |
#list_apps ⇒ Object
374 375 376 |
# File 'lib/sumologic/cli.rb', line 374 def list_apps Commands::ListAppsCommand.new(, create_client).execute end |
#list_collectors ⇒ Object
103 104 105 |
# File 'lib/sumologic/cli.rb', line 103 def list_collectors Commands::ListCollectorsCommand.new(, create_client).execute end |
#list_dashboards ⇒ Object
276 277 278 |
# File 'lib/sumologic/cli.rb', line 276 def list_dashboards Commands::ListDashboardsCommand.new(, create_client).execute end |
#list_fields ⇒ Object
335 336 337 |
# File 'lib/sumologic/cli.rb', line 335 def list_fields Commands::ListFieldsCommand.new(, create_client).execute end |
#list_folders ⇒ Object
253 254 255 |
# File 'lib/sumologic/cli.rb', line 253 def list_folders Commands::ListFoldersCommand.new(, create_client).execute end |
#list_health_events ⇒ Object
311 312 313 |
# File 'lib/sumologic/cli.rb', line 311 def list_health_events Commands::ListHealthEventsCommand.new(, create_client).execute end |
#list_monitors ⇒ Object
210 211 212 |
# File 'lib/sumologic/cli.rb', line 210 def list_monitors Commands::ListMonitorsCommand.new(, create_client).execute end |
#list_sources ⇒ Object
122 123 124 |
# File 'lib/sumologic/cli.rb', line 122 def list_sources Commands::ListSourcesCommand.new(, create_client).execute end |
#search ⇒ Object
88 89 90 |
# File 'lib/sumologic/cli.rb', line 88 def search Commands::SearchCommand.new(, create_client).execute end |