|
@@ -195,13 +195,15 @@ type (
|
|
}
|
|
}
|
|
|
|
|
|
ItemHistoryListReq struct {
|
|
ItemHistoryListReq struct {
|
|
- ProjectId int
|
|
|
|
- ItemName string
|
|
|
|
- Stime string
|
|
|
|
- Etime string
|
|
|
|
- Size int
|
|
|
|
- Interval string // 时间单位 minute,h,day,s
|
|
|
|
- Aggregator string // 聚合方式 min,max,avg,sum,realtime, new
|
|
|
|
|
|
+ ProjectId int
|
|
|
|
+ ItemName string
|
|
|
|
+ Stime string
|
|
|
|
+ Etime string
|
|
|
|
+ Size int
|
|
|
|
+ Interval string // 时间单位 minute,h,day,s
|
|
|
|
+ Aggregator string // 聚合方式 min,max,avg,sum,realtime, new
|
|
|
|
+ MaxVal float64 `json:"max_val"`
|
|
|
|
+ MinVal float64 `json:"min_val"`
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -264,9 +266,9 @@ type (
|
|
}
|
|
}
|
|
|
|
|
|
ItemHistoryListResp struct {
|
|
ItemHistoryListResp struct {
|
|
- Name string `json:"name"`
|
|
|
|
- Htime string `json:"htime_at"`
|
|
|
|
- Val float64 `json:"val"`
|
|
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+ Htime string `json:"htime_at"`
|
|
|
|
+ Val float64 `json:"val"`
|
|
}
|
|
}
|
|
|
|
|
|
ItemHistoryListRespList struct {
|
|
ItemHistoryListRespList struct {
|
|
@@ -285,12 +287,10 @@ type (
|
|
}
|
|
}
|
|
|
|
|
|
ItemHistoryListBody struct {
|
|
ItemHistoryListBody struct {
|
|
- Code int `json:"code"`
|
|
|
|
- Msg string `json:"msg"`
|
|
|
|
|
|
+ Code int `json:"code"`
|
|
|
|
+ Msg string `json:"msg"`
|
|
Data ItemHistoryListRespList `json:"data"`
|
|
Data ItemHistoryListRespList `json:"data"`
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
)
|
|
)
|
|
|
|
|
|
type (
|
|
type (
|