Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleResult

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

DataQualityRuleResult provides a more detailed, per-rule level view of the results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleResult

Returns a new instance of GoogleCloudDataplexV1DataQualityRuleResult.



1510
1511
1512
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1510

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

Instance Attribute Details

#evaluated_countFixnum

The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR ( 2) exclude null rows from the evaluated_count, by setting ignore_nulls = true Corresponds to the JSON property evaluatedCount

Returns:

  • (Fixnum)


1474
1475
1476
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1474

def evaluated_count
  @evaluated_count
end

#failing_rows_queryString

The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules. Corresponds to the JSON property failingRowsQuery

Returns:

  • (String)


1480
1481
1482
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1480

def failing_rows_query
  @failing_rows_query
end

#null_countFixnum

The number of rows with null values in the specified column. Corresponds to the JSON property nullCount

Returns:

  • (Fixnum)


1485
1486
1487
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1485

def null_count
  @null_count
end

#pass_ratioFloat

The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules. Corresponds to the JSON property passRatio

Returns:

  • (Float)


1491
1492
1493
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1491

def pass_ratio
  @pass_ratio
end

#passedBoolean Also known as: passed?

Whether the rule passed or failed. Corresponds to the JSON property passed

Returns:

  • (Boolean)


1496
1497
1498
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1496

def passed
  @passed
end

#passed_countFixnum

The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules. Corresponds to the JSON property passedCount

Returns:

  • (Fixnum)


1503
1504
1505
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1503

def passed_count
  @passed_count
end

#ruleGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRule

A rule captures data quality intent about a data source. Corresponds to the JSON property rule



1508
1509
1510
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1508

def rule
  @rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1515
1516
1517
1518
1519
1520
1521
1522
1523
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1515

def update!(**args)
  @evaluated_count = args[:evaluated_count] if args.key?(:evaluated_count)
  @failing_rows_query = args[:failing_rows_query] if args.key?(:failing_rows_query)
  @null_count = args[:null_count] if args.key?(:null_count)
  @pass_ratio = args[:pass_ratio] if args.key?(:pass_ratio)
  @passed = args[:passed] if args.key?(:passed)
  @passed_count = args[:passed_count] if args.key?(:passed_count)
  @rule = args[:rule] if args.key?(:rule)
end