Class: Mxrb::Oql::WorkloadReport

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/oql/workload_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#engineObject (readonly)

Returns the value of attribute engine

Returns:

  • (Object)

    the current value of engine



10
11
12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 10

def engine
  @engine
end

#findingsObject (readonly)

Returns the value of attribute findings

Returns:

  • (Object)

    the current value of findings



10
11
12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 10

def findings
  @findings
end

#index_statsObject (readonly)

Returns the value of attribute index_stats

Returns:

  • (Object)

    the current value of index_stats



10
11
12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 10

def index_stats
  @index_stats
end

#queriesObject (readonly)

Returns the value of attribute queries

Returns:

  • (Object)

    the current value of queries



10
11
12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 10

def queries
  @queries
end

#table_statsObject (readonly)

Returns the value of attribute table_stats

Returns:

  • (Object)

    the current value of table_stats



10
11
12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 10

def table_stats
  @table_stats
end

Instance Method Details

#clean?Boolean

Returns:

  • (Boolean)


11
# File 'lib/mxrb/oql/workload_analyzer.rb', line 11

def clean? = findings.none? { _1.severity == :warning }

#warnings?Boolean

Returns:

  • (Boolean)


12
# File 'lib/mxrb/oql/workload_analyzer.rb', line 12

def warnings? = !clean?