Object to use histograms in aggregation, i.e., grouping search results by histogram values
| Name | Type | Description | Notes |
|---|---|---|---|
| var_field | str | Field to group by | |
| interval | int | Interval of the histogram values | |
| offset | int | Offset of the histogram values. Default value is 0. | [optional] |
| keyed | bool | Flag that defines if a search response will be a dictionary with the bucket keys. Default value is false. | [optional] |
from manticoresearch.models.agg_histogram import AggHistogram
# TODO update the JSON string below
json = "{}"
# create an instance of AggHistogram from a JSON string
agg_histogram_instance = AggHistogram.from_json(json)
# print the JSON string representation of the object
print(AggHistogram.to_json())
# convert the object into a dict
agg_histogram_dict = agg_histogram_instance.to_dict()
# create an instance of AggHistogram from a dict
agg_histogram_from_dict = AggHistogram.from_dict(agg_histogram_dict)