Class: Google::Apis::JobsV3p1beta1::CustomAttributeHistogramResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/jobs_v3p1beta1/classes.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb

Overview

Output only. Custom attribute histogram result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomAttributeHistogramResult

Returns a new instance of CustomAttributeHistogramResult.



861
862
863
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 861

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

Instance Attribute Details

#keyString

Stores the key of custom attribute the histogram is performed on. Corresponds to the JSON property key

Returns:

  • (String)


848
849
850
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 848

def key
  @key
end

#long_value_histogram_resultGoogle::Apis::JobsV3p1beta1::NumericBucketingResult

Output only. Custom numeric bucketing result. Corresponds to the JSON property longValueHistogramResult



853
854
855
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 853

def long_value_histogram_result
  @long_value_histogram_result
end

#string_value_histogram_resultHash<String,Fixnum>

Stores a map from the values of string custom field associated with key to the number of jobs with that value in this histogram result. Corresponds to the JSON property stringValueHistogramResult

Returns:

  • (Hash<String,Fixnum>)


859
860
861
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 859

def string_value_histogram_result
  @string_value_histogram_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



866
867
868
869
870
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 866

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @long_value_histogram_result = args[:long_value_histogram_result] if args.key?(:long_value_histogram_result)
  @string_value_histogram_result = args[:string_value_histogram_result] if args.key?(:string_value_histogram_result)
end