Class: Luciq::CrashesCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/luciq/query_cli.rb

Constant Summary collapse

SORT_FIELDS =
%w[last_occurred_at occurrences_counter affected_users_counter
max_app_version min_app_version severity first_occurred_at].freeze

Instance Method Summary collapse

Instance Method Details

#diagnosticsObject



100
101
102
# File 'lib/luciq/query_cli.rb', line 100

def diagnostics
  Commands::Query.new(options).crash_diagnostics(options[:number])
end

#hangsObject



125
126
127
# File 'lib/luciq/query_cli.rb', line 125

def hangs
  Commands::Query.new(options).app_hangs
end

#listObject



64
65
66
# File 'lib/luciq/query_cli.rb', line 64

def list
  Commands::Query.new(options).crashes_list
end

#occurrenceObject



155
156
157
# File 'lib/luciq/query_cli.rb', line 155

def occurrence
  Commands::Query.new(options).occurrence_details(options[:number], options[:ulid])
end

#occurrence_tokensObject



147
148
149
# File 'lib/luciq/query_cli.rb', line 147

def occurrence_tokens
  Commands::Query.new(options).occurrence_tokens(options[:number])
end

#patternsObject



93
94
95
# File 'lib/luciq/query_cli.rb', line 93

def patterns
  Commands::Query.new(options).crash_patterns(options[:number])
end

#showObject



71
72
73
# File 'lib/luciq/query_cli.rb', line 71

def show
  Commands::Query.new(options).crash_show(options[:number])
end