func (s *StatsBucketAggregation) Meta(metaData map[string]interface{}) *StatsBucketAggregation {
	s.meta = metaData
	return s
}
Meta sets the meta data to be included in the aggregation response.
package elastic
type StatsBucketAggregation struct {
	format    string
	gapPolicy string
	subAggregations map[string]Aggregation
	meta            map[string]interface{}
	bucketsPaths    []string
}
func NewStatsBucketAggregation() *StatsBucketAggregation {
	return &StatsBucketAggregation{
		subAggregations: make(map[string]Aggregation),
		bucketsPaths:    make([]string, 0),
	}
}
func (s *StatsBucketAggregation) Format(format string) *StatsBucketAggregation {
	s.format = format
	return s
}
func (s *StatsBucketAggregation) GapPolicy(gapPolicy string) *StatsBucketAggregation {
	s.gapPolicy = gapPolicy
	return s
}
func (s *StatsBucketAggregation) GapInsertZeros() *StatsBucketAggregation {
	s.gapPolicy = "insert_zeros"
	return s
}
func (s *StatsBucketAggregation) GapSkip() *StatsBucketAggregation {
	s.gapPolicy = "skip"
	return s
}
func (s *StatsBucketAggregation) SubAggregation(name string, subAggregation Aggregation) *StatsBucketAggregation {
	s.subAggregations[name] = subAggregation
	return s
}