Documentation
¶
Index ¶
- type DeviceAlarmLevelCountReq
- type DeviceAlarmLevelCountRes
- type DeviceAlarmLogDataReq
- type DeviceAlarmLogDataRes
- type DeviceAlarmTotalCountReq
- type DeviceAlarmTotalCountRes
- type DeviceAlertCountByDayHourReq
- type DeviceAlertCountByDayHourRes
- type DeviceAlertCountByMonthDayReq
- type DeviceAlertCountByMonthDayRes
- type DeviceAlertCountByYearMonthReq
- type DeviceAlertCountByYearMonthRes
- type DeviceCountForProductReq
- type DeviceCountForProductRes
- type DeviceDataCountReq
- type DeviceDataCountRes
- type DeviceDataForProductByLatestReq
- type DeviceDataForProductByLatestRes
- type DeviceDataForTsdReq
- type DeviceDataForTsdRes
- type DeviceDataReq
- type DeviceDataRes
- type DeviceDataTotalCountReq
- type DeviceDataTotalCountRes
- type DeviceOnlineOfflineCountReq
- type DeviceOnlineOfflineCountRes
- type ProductCountReq
- type ProductCountRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceAlarmLevelCountReq ¶
type DeviceAlarmLevelCountReq struct {
g.Meta `path:"/deviceAlarmLevelCount" method:"get" summary:"告警按级别统计" tags:"IOT数据分析"`
DateType string `json:"dateType" v:"required#日期类型不能为空" dc:"日期类型:year 年,month 月,day 日"`
Date string `json:"date" v:"required#日期不能为空" dc:"日期:年 yyyy,月 MM,日 dd"`
}
DeviceAlarmLevelCountReq 告警级别统计
type DeviceAlarmLogDataReq ¶
type DeviceAlarmLogDataReq struct {
g.Meta `path:"/deviceAlarmLogData" method:"get" summary:"设备告警日志数据" tags:"IOT数据分析"`
common.PaginationReq
}
DeviceAlarmLogDataReq 设备告警日志数据请求
type DeviceAlarmLogDataRes ¶
type DeviceAlarmLogDataRes struct {
Data interface{}
common.PaginationRes
}
type DeviceAlarmTotalCountReq ¶
type DeviceAlarmTotalCountReq struct {
g.Meta `path:"/deviceAlarmTotalCount" method:"get" summary:"告警总数统计(当年、当月、当日)" tags:"IOT数据分析"`
DateType string `json:"dateType" v:"required#日期类型不能为空" dc:"日期类型:year 年,month 月,day 日"`
Date string `json:"date" v:"required#日期不能为空" dc:"日期:年 yyyy,月 yyyy-MM,日 yyyy-MM-dd"`
}
DeviceAlarmTotalCountReq 指定时间的告警总数统计,按年,月,日分别指定
type DeviceAlarmTotalCountRes ¶
type DeviceAlarmTotalCountRes struct {
Number int64 `json:"number" dc:"告警总数"`
}
type DeviceAlertCountByDayHourReq ¶
type DeviceAlertCountByDayHourReq struct {
g.Meta `path:"/deviceAlertCountsByDayHour" method:"get" summary:"按日每小时设备告警数统计" tags:"IOT数据分析"`
Day string `json:"day" v:"required#日期不能为空" dc:"日期:年-月-日 yyyy-MM-dd"`
}
DeviceAlertCountByDayHourReq 按日每小时设备告警数统计
type DeviceAlertCountByMonthDayReq ¶
type DeviceAlertCountByMonthDayReq struct {
g.Meta `path:"/deviceAlertCountByMonthDay" method:"get" summary:"按月度每日设备告警数统计" tags:"IOT数据分析"`
Month string `json:"month" v:"required#日期不能为空" dc:"日期:年-月 yyyy-MM"`
}
DeviceAlertCountByMonthDayReq 按月度每日设备告警数统计
type DeviceAlertCountByYearMonthReq ¶
type DeviceAlertCountByYearMonthReq struct {
g.Meta `path:"/deviceAlertCountByYearMonth" method:"get" summary:"按年度每月设备告警数统计" tags:"IOT数据分析"`
Year string `json:"year" v:"required#日期不能为空" dc:"日期:年-yyyy"`
}
DeviceAlertCountByYearMonthReq 按年度每月设备告警数统计
type DeviceCountForProductReq ¶
type DeviceCountForProductReq struct {
g.Meta `path:"/deviceCountForProduct" method:"get" summary:"获取属于该产品下的设备数量" tags:"IOT数据分析"`
ProductKey string `json:"productKey" v:"required#ProductKey,产品key不能为空" dc:"产品key"`
}
DeviceCountForProductReq 获取属于该产品下的设备数量
type DeviceCountForProductRes ¶
type DeviceCountForProductRes struct {
Number int `json:"number" dc:"设备数"`
}
type DeviceDataCountReq ¶
type DeviceDataCountReq struct {
g.Meta `path:"/deviceDataCount" method:"get" summary:"按年度统计1-12月份设备消息统计" tags:"IOT数据分析"`
DateType string `json:"dateType" v:"required#日期类型不能为空" dc:"日期类型:year 年,month 月,day 日"`
}
DeviceDataCountReq 按年度每月设备消息统计
type DeviceDataCountRes ¶
type DeviceDataForProductByLatestReq ¶
type DeviceDataForProductByLatestReq struct {
g.Meta `path:"/deviceDataForProductByLatest" method:"get" summary:"按产品查询设备最近的数据" tags:"IOT数据分析"`
ProductKey string `json:"productKey" v:"required#产品key不能为空" dc:"产品key"`
}
DeviceDataForProductByLatestReq 按产品查询设备最近的数据
type DeviceDataForProductByLatestRes ¶
type DeviceDataForProductByLatestRes struct {
Data []model.DeviceDataRes
}
type DeviceDataForTsdReq ¶
type DeviceDataForTsdReq struct {
g.Meta `path:"/deviceDataForTsd" method:"get" summary:"设备的时序数据" tags:"IOT数据分析"`
common.PaginationReq
}
type DeviceDataForTsdRes ¶
type DeviceDataForTsdRes struct {
Data []interface{}
common.PaginationRes
}
type DeviceDataReq ¶
type DeviceDataReq struct {
g.Meta `path:"/deviceData" method:"get" summary:"设备最近的数据" tags:"IOT数据分析"`
DeviceKey string `json:"deviceKey" v:"required#设备key不能为空" dc:"设备key"`
common.PaginationReq
}
DeviceDataReq 按年度每月设备消息统计
type DeviceDataRes ¶
type DeviceDataRes struct {
Data []interface{}
common.PaginationRes
}
type DeviceDataTotalCountReq ¶
type DeviceDataTotalCountReq struct {
g.Meta `` /* 129-byte string literal not displayed */
DateType string `json:"dateType" v:"required#日期类型不能为空" dc:"日期类型:year 年,month 月,day 日"`
}
DeviceDataTotalCountReq 设备消息总数统计(当年、当月、当日)
type DeviceDataTotalCountRes ¶
type DeviceDataTotalCountRes struct {
Number int64 `json:"number" dc:"消息总数"`
}
type DeviceOnlineOfflineCountReq ¶
type DeviceOnlineOfflineCountReq struct {
g.Meta `path:"/deviceOnlineOfflineCount" method:"get" summary:"设备在线离线统计" tags:"IOT数据分析"`
}
DeviceOnlineOfflineCountReq 设备在线离线统计
type DeviceOnlineOfflineCountRes ¶
type DeviceOnlineOfflineCountRes struct {
Data model.DeviceOnlineOfflineCount
}
type ProductCountReq ¶
type ProductCountReq struct {
g.Meta `path:"/productCount" method:"get" summary:"产品数量统计" tags:"IOT数据分析"`
}
ProductCountReq 按年度每月设备消息统计
Click to show internal directories.
Click to hide internal directories.