数据 输入输出 处理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
840 B

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"`
}