#[non_exhaustive]pub struct DataQualityScanRuleResult {Show 13 fields
pub job_id: String,
pub data_source: String,
pub column: String,
pub rule_name: String,
pub rule_type: RuleType,
pub evalution_type: EvaluationType,
pub rule_dimension: String,
pub threshold_percent: f64,
pub result: Result,
pub evaluated_row_count: i64,
pub passed_row_count: i64,
pub null_row_count: i64,
pub assertion_row_count: i64,
/* private fields */
}Expand description
Information about the result of a data quality rule for data quality scan. The monitored resource is ‘DataScan’.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.job_id: StringIdentifier of the specific data scan job this log entry is for.
data_source: StringThe data source of the data scan (e.g. BigQuery table name).
column: StringThe column which this rule is evaluated against.
rule_name: StringThe name of the data quality rule.
rule_type: RuleTypeThe type of the data quality rule.
evalution_type: EvaluationTypeThe evaluation type of the data quality rule.
rule_dimension: StringThe dimension of the data quality rule.
threshold_percent: f64The passing threshold ([0.0, 100.0]) of the data quality rule.
result: ResultThe result of the data quality rule.
evaluated_row_count: i64The number of rows evaluated against the data quality rule. This field is only valid for rules of PER_ROW evaluation type.
passed_row_count: i64The number of rows which passed a rule evaluation. This field is only valid for rules of PER_ROW evaluation type.
null_row_count: i64The number of rows with null values in the specified column.
assertion_row_count: i64The number of rows returned by the SQL statement in a SQL assertion rule. This field is only valid for SQL assertion rules.
Implementations§
Source§impl DataQualityScanRuleResult
impl DataQualityScanRuleResult
pub fn new() -> Self
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
Sourcepub fn set_data_source<T: Into<String>>(self, v: T) -> Self
pub fn set_data_source<T: Into<String>>(self, v: T) -> Self
Sets the value of data_source.
Sourcepub fn set_column<T: Into<String>>(self, v: T) -> Self
pub fn set_column<T: Into<String>>(self, v: T) -> Self
Sets the value of column.
Sourcepub fn set_rule_name<T: Into<String>>(self, v: T) -> Self
pub fn set_rule_name<T: Into<String>>(self, v: T) -> Self
Sets the value of rule_name.
Sourcepub fn set_rule_type<T: Into<RuleType>>(self, v: T) -> Self
pub fn set_rule_type<T: Into<RuleType>>(self, v: T) -> Self
Sets the value of rule_type.
Sourcepub fn set_evalution_type<T: Into<EvaluationType>>(self, v: T) -> Self
pub fn set_evalution_type<T: Into<EvaluationType>>(self, v: T) -> Self
Sets the value of evalution_type.
Sourcepub fn set_rule_dimension<T: Into<String>>(self, v: T) -> Self
pub fn set_rule_dimension<T: Into<String>>(self, v: T) -> Self
Sets the value of rule_dimension.
Sourcepub fn set_threshold_percent<T: Into<f64>>(self, v: T) -> Self
pub fn set_threshold_percent<T: Into<f64>>(self, v: T) -> Self
Sets the value of threshold_percent.
Sourcepub fn set_result<T: Into<Result>>(self, v: T) -> Self
pub fn set_result<T: Into<Result>>(self, v: T) -> Self
Sets the value of result.
Sourcepub fn set_evaluated_row_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_evaluated_row_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of evaluated_row_count.
Sourcepub fn set_passed_row_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_passed_row_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of passed_row_count.
Sourcepub fn set_null_row_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_null_row_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of null_row_count.
Sourcepub fn set_assertion_row_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_assertion_row_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of assertion_row_count.
Trait Implementations§
Source§impl Clone for DataQualityScanRuleResult
impl Clone for DataQualityScanRuleResult
Source§fn clone(&self) -> DataQualityScanRuleResult
fn clone(&self) -> DataQualityScanRuleResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more