|
@ -133,7 +133,7 @@ func toEsRaw(deviceData *models.DeviceData) *models.EsRaw { |
|
|
StructId: deviceData.StructId, |
|
|
StructId: deviceData.StructId, |
|
|
IotaDeviceName: deviceData.Name, |
|
|
IotaDeviceName: deviceData.Name, |
|
|
Data: deviceData.Raw, |
|
|
Data: deviceData.Raw, |
|
|
CollectTime: deviceData.AcqTime, |
|
|
CollectTime: deviceData.AcqTime.Format("2006-01-02T15:04:05.000+0800"), |
|
|
Meta: dataOutMeta, |
|
|
Meta: dataOutMeta, |
|
|
IotaDevice: deviceData.DeviceId, |
|
|
IotaDevice: deviceData.DeviceId, |
|
|
CreateTime: time.Now(), |
|
|
CreateTime: time.Now(), |
|
|