changes
This commit is contained in:
@ -23,6 +23,7 @@ type Observation struct {
|
||||
RequestId string `json:"RequestId"`
|
||||
Device string `json:"Device"`
|
||||
Errors string `json:"Errors"`
|
||||
ErrorRatio string `json:"ErrorRatio"`
|
||||
Requests string `json:"Requests"`
|
||||
Values map[string]string
|
||||
}
|
||||
@ -49,8 +50,8 @@ func (self *Mbgw3Handler) Handle(message handler.MessageT) {
|
||||
}
|
||||
log.Printf("Parsed observation: %s", observation)
|
||||
|
||||
attributes := make(map[string]string
|
||||
if v, err := strconv.Atoi(observation.RequestId), err == nil {
|
||||
attributes := make(map[string]interface{})
|
||||
if v, err := strconv.Atoi(observation.RequestId); err == nil {
|
||||
attributes["RequestId"] = v
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user