Class: Google::Apis::JobsV3::CustomAttributeHistogramResult

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

Overview

Output only. Custom attribute histogram result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomAttributeHistogramResult

Returns a new instance of CustomAttributeHistogramResult



933
934
935
# File 'generated/google/apis/jobs_v3/classes.rb', line 933

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)


919
920
921
# File 'generated/google/apis/jobs_v3/classes.rb', line 919

def key
  @key
end

#long_value_histogram_resultGoogle::Apis::JobsV3::NumericBucketingResult

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



925
926
927
# File 'generated/google/apis/jobs_v3/classes.rb', line 925

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>)


931
932
933
# File 'generated/google/apis/jobs_v3/classes.rb', line 931

def string_value_histogram_result
  @string_value_histogram_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



938
939
940
941
942
# File 'generated/google/apis/jobs_v3/classes.rb', line 938

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