Rule#
Rule#
hsfs.rule.Rule(
name,
level,
min=None,
max=None,
pattern=None,
accepted_type=None,
feature=None,
legal_values=None,
href=None,
expand=None,
items=None,
count=None,
type=None,
)
Metadata object representing the validation rule that is used by feature group expectations.
This class is made for hsfs internal use only.
Properties#
accepted_type#
Data type accepted for a feature. Applicable only to the HAS_DATATYPE rule. Accepted types are: Null, Fractional, Integral, Boolean, String
feature#
Feature to compare the expectation's features to, applied only to Compliance rules.
legal_values#
List of legal values a feature should be found int. feature.Applicable only to IS_CONTAINED_IN rule.
level#
Severity level of a rule, one of "WARNING" or "ERROR".
max#
The upper bound of the value range this feature should fall into.
min#
The lower bound of the value range this feature should fall into.
name#
Name of the rule as found in rule definitions.
pattern#
Pattern to check for a feature's pattern compliance. Applicable only to the HAS_PATTERN rule.