package variables import "fmt" type PropertyPatch struct { Key string `json:"id"` Temperature *AvgMinMax `json:"temperature,omitempty"` Motion *AvgMinMax `json:"motion,omitempty"` } func (e PropertyPatch) VerboseKey() string { return "variables.PropertyPatch" } func (e PropertyPatch) EventDescription() string { return fmt.Sprintf("variables.PropertyPatch(key=%s)", e.Key) }