package AlarmCombination type EsAggAlarm struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards struct { Total int `json:"total"` Successful int `json:"successful"` Skipped int `json:"skipped"` Failed int `json:"failed"` } `json:"_shards"` Hits struct { Total int `json:"total"` MaxScore float64 `json:"max_score"` } `json:"hits"` Aggregations struct { GroupBySensor struct { DocCountErrorUpperBound int `json:"doc_count_error_upper_bound"` SumOtherDocCount int `json:"sum_other_doc_count"` Buckets []BucketsSensorDataCount `json:"buckets"` } `json:"groupBySensor"` } `json:"aggregations"` } type BucketsSensorDataCount struct { Key string `json:"key"` DocCount int `json:"doc_count"` }