Class: Google::Apis::JobsV3p1beta1::HistogramQueryResult
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::HistogramQueryResult
- 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
-
#histogram ⇒ Hash<String,Fixnum>
A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.
-
#histogram_query ⇒ String
Requested histogram expression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HistogramQueryResult
constructor
A new instance of HistogramQueryResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ HistogramQueryResult
Returns a new instance of HistogramQueryResult
1193 1194 1195 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#histogram ⇒ Hash<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 forbucket(0, MAX, "non-negative")
, the key will benon-negative
. - (for anonymous numeric bucket) range formatted as
<low>-<high>
, for example,0-1000
,MIN-0
, and0-MAX
. Corresponds to the JSON propertyhistogram
1186 1187 1188 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1186 def histogram @histogram end |
#histogram_query ⇒ String
Requested histogram expression.
Corresponds to the JSON property histogramQuery
1191 1192 1193 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1191 def histogram_query @histogram_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1198 1199 1200 1201 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1198 def update!(**args) @histogram = args[:histogram] if args.key?(:histogram) @histogram_query = args[:histogram_query] if args.key?(:histogram_query) end |