Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataQualityResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb

Overview

Data quality result for data scan job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataScanEventDataQualityResult

Returns a new instance of GoogleCloudDataplexV1DataScanEventDataQualityResult.



3308
3309
3310
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3308

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#column_scoreHash<String,Float>

The score of each column scanned in the data scan job. The key of the map is the name of the column. The value is the data quality score for the column.The score ranges between 0, 100 (up to two decimal points). Corresponds to the JSON property columnScore

Returns:

  • (Hash<String,Float>)


3275
3276
3277
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3275

def column_score
  @column_score
end

#dimension_passedHash<String,Boolean>

The result of each dimension for data quality result. The key of the map is the name of the dimension. The value is the bool value depicting whether the dimension result was pass or not. Corresponds to the JSON property dimensionPassed

Returns:

  • (Hash<String,Boolean>)


3282
3283
3284
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3282

def dimension_passed
  @dimension_passed
end

#dimension_scoreHash<String,Float>

The score of each dimension for data quality result. The key of the map is the name of the dimension. The value is the data quality score for the dimension. The score ranges between 0, 100 (up to two decimal points). Corresponds to the JSON property dimensionScore

Returns:

  • (Hash<String,Float>)


3289
3290
3291
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3289

def dimension_score
  @dimension_score
end

#passedBoolean Also known as: passed?

Whether the data quality result was pass or not. Corresponds to the JSON property passed

Returns:

  • (Boolean)


3294
3295
3296
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3294

def passed
  @passed
end

#row_countFixnum

The count of rows processed in the data scan job. Corresponds to the JSON property rowCount

Returns:

  • (Fixnum)


3300
3301
3302
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3300

def row_count
  @row_count
end

#scoreFloat

The table-level data quality score for the data scan job.The data quality score ranges between 0, 100 (up to two decimal points). Corresponds to the JSON property score

Returns:

  • (Float)


3306
3307
3308
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3306

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3313
3314
3315
3316
3317
3318
3319
3320
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3313

def update!(**args)
  @column_score = args[:column_score] if args.key?(:column_score)
  @dimension_passed = args[:dimension_passed] if args.key?(:dimension_passed)
  @dimension_score = args[:dimension_score] if args.key?(:dimension_score)
  @passed = args[:passed] if args.key?(:passed)
  @row_count = args[:row_count] if args.key?(:row_count)
  @score = args[:score] if args.key?(:score)
end