Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation

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

Evaluates whether the column aggregate statistic lies between a specified range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation

Returns a new instance of GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation.



1914
1915
1916
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1914

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

Instance Attribute Details

#max_valueString

The maximum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. Corresponds to the JSON property maxValue

Returns:

  • (String)


1885
1886
1887
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1885

def max_value
  @max_value
end

#min_valueString

The minimum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. Corresponds to the JSON property minValue

Returns:

  • (String)


1891
1892
1893
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1891

def min_value
  @min_value
end

#statisticString

The aggregate metric to evaluate. Corresponds to the JSON property statistic

Returns:

  • (String)


1896
1897
1898
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1896

def statistic
  @statistic
end

#strict_max_enabledBoolean Also known as: strict_max_enabled?

Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false. Corresponds to the JSON property strictMaxEnabled

Returns:

  • (Boolean)


1903
1904
1905
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1903

def strict_max_enabled
  @strict_max_enabled
end

#strict_min_enabledBoolean Also known as: strict_min_enabled?

Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false. Corresponds to the JSON property strictMinEnabled

Returns:

  • (Boolean)


1911
1912
1913
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1911

def strict_min_enabled
  @strict_min_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1919
1920
1921
1922
1923
1924
1925
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1919

def update!(**args)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
  @statistic = args[:statistic] if args.key?(:statistic)
  @strict_max_enabled = args[:strict_max_enabled] if args.key?(:strict_max_enabled)
  @strict_min_enabled = args[:strict_min_enabled] if args.key?(:strict_min_enabled)
end