# Dataplex V1 API - Class Google::Cloud::Dataplex::V1::DataQualityRuleResult (v2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.2 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::DataQualityRuleResult.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #assertion_row_count

    def assertion_row_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of rows returned by the SQL statement in a SQL assertion rule.

  This field is only valid for SQL assertion rules.

### #debug_queries_result_sets

    def debug_queries_result_sets() -> ::Array<::Google::Cloud::Dataplex::V1::DataQualityRuleResult::DebugQueryResultSet>

**Returns**

- (::Array\<[::Google::Cloud::Dataplex::V1::DataQualityRuleResult::DebugQueryResultSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataQualityRuleResult-DebugQueryResultSet)\>) --- Output only. Contains the results of all debug queries for this rule. The number of result sets will correspond to the number of [debug_queries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataQualityRule#Google__Cloud__Dataplex__V1__DataQualityRule_debug_queries_instance_ "Google::Cloud::Dataplex::V1::DataQualityRule#debug_queries (method)").

### #evaluated_count

    def evaluated_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of rows a rule was evaluated against.

  This field is only valid for row-level type rules.

  Evaluated count can be configured to either
  - include all rows (default) - with `null` rows automatically failing rule evaluation, or
  - exclude `null` rows from the `evaluated_count`, by setting `ignore_nulls = true`.

  This field is not set for rule SqlAssertion.

### #failing_rows_query

    def failing_rows_query() -> ::String

**Returns**

- (::String) --- Output only. The query to find rows that did not pass this rule.

  This field is only valid for row-level type rules.

### #null_count

    def null_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of rows with null values in the specified column.

### #pass_ratio

    def pass_ratio() -> ::Float

**Returns**

- (::Float) --- Output only. The ratio of **passed_count / evaluated_count** .


  This field is only valid for row-level type rules.

### #passed

    def passed() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether the rule passed or failed.

### #passed_count

    def passed_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of rows which passed a rule evaluation.

  This field is only valid for row-level type rules.

  This field is not set for rule SqlAssertion.

### #rule

    def rule() -> ::Google::Cloud::Dataplex::V1::DataQualityRule

**Returns**

- ([::Google::Cloud::Dataplex::V1::DataQualityRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataQualityRule)) --- Output only. The rule specified in the DataQualitySpec, as is.