Class: Google::Apis::JobsV3p1beta1::HistogramQueryResult

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

Overview

Output only. Histogram result that matches HistogramSpec specified in searches.

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

Returns a new instance of HistogramQueryResult.



1174
1175
1176
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1174

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

Instance Attribute Details

#histogramHash<String,Fixnum>

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is:

  • (for string histogram) string values stored in the field.
  • (for named numeric bucket) name specified in bucket() function, like for bucket(0, MAX, "non-negative"), the key will be non-negative.
  • (for anonymous numeric bucket) range formatted as <low>-<high>, for example, 0-1000, MIN-0, and 0-MAX. Corresponds to the JSON property histogram

Returns:

  • (Hash<String,Fixnum>)


1167
1168
1169
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1167

def histogram
  @histogram
end

#histogram_queryString

Requested histogram expression. Corresponds to the JSON property histogramQuery

Returns:

  • (String)


1172
1173
1174
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1172

def histogram_query
  @histogram_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1179
1180
1181
1182
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1179

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