Class: Gitlab::Database::Migrations::Observation

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/database/migrations/observation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def error_message
  @error_message
end

#metaObject

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def meta
  @meta
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def name
  @name
end

#query_statisticsObject

Returns the value of attribute query_statistics

Returns:

  • (Object)

    the current value of query_statistics



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def query_statistics
  @query_statistics
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def success
  @success
end

#total_database_size_changeObject

Returns the value of attribute total_database_size_change

Returns:

  • (Object)

    the current value of total_database_size_change



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def total_database_size_change
  @total_database_size_change
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def version
  @version
end

#walltimeObject

Returns the value of attribute walltime

Returns:

  • (Object)

    the current value of walltime



7
8
9
# File 'lib/gitlab/database/migrations/observation.rb', line 7

def walltime
  @walltime
end

Instance Method Details

#to_jsonObject



9
10
11
# File 'lib/gitlab/database/migrations/observation.rb', line 9

def to_json(...)
  as_json.except('meta').to_json(...)
end