Class: GitlabQuality::TestTooling::TestMetricsExporter::Config::ClickHouse

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb

Overview

ClickHouse client configuration object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, database:, table_name:, username:, password:) ⇒ ClickHouse

Returns a new instance of ClickHouse.



28
29
30
31
32
33
34
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 28

def initialize(url:, database:, table_name:, username:, password:)
  @url = url
  @database = database
  @table_name = table_name
  @username = username
  @password = password
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



36
37
38
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 36

def database
  @database
end

#passwordObject (readonly)

Returns the value of attribute password.



36
37
38
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 36

def password
  @password
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



36
37
38
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 36

def table_name
  @table_name
end

#urlObject (readonly)

Returns the value of attribute url.



36
37
38
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 36

def url
  @url
end

#usernameObject (readonly)

Returns the value of attribute username.



36
37
38
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 36

def username
  @username
end