Skip to content

Commit

Permalink
add notification fields to Event
Browse files Browse the repository at this point in the history
  • Loading branch information
gewo committed Oct 2, 2015
1 parent 8d2260c commit 6bfb90e
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,21 @@ func (mw *NewRelicMiddleware) MiddlewareFunc(handler rest.HandlerFunc) rest.Hand
}

type Event struct {
Id int64 `json:"id"`
DeviceId string `sql:"size:40" json:"deviceId"`
MeasuredAt time.Time `json:"measuredAt"`
Measurement string `sql:"size:1024" json:"measurement"`
Value float64 `json:"value"`
Fields string `sql:"size:1024" json:"fields"`
Tags string `sql:"size:1024" json:"tags"`
Note string `sql:"size:1024" json:"note"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"-"`
Id int64 `json:"id"`
DeviceId string `sql:"size:40" json:"deviceId"`
MeasuredAt time.Time `json:"measuredAt"`
Measurement string `sql:"size:1024" json:"measurement"`
Value float64 `json:"value"`
Fields string `sql:"size:1024" json:"fields"`
Tags string `sql:"size:1024" json:"tags"`
Note string `sql:"size:1024" json:"note"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"-"`
NotificationIntervalMinutes int64 `json:"notificationIntervalMinutes"`
NotificationShownAt time.Time `json:"notificationShownAt"`
NotificationDismissedAt time.Time `json:"notificationDismissedAt"`
NotificationAcceptedAt time.Time `json:"notificationAcceptedAt"`
}

type Installation struct {
Expand Down

0 comments on commit 6bfb90e

Please sign in to comment.