chore(alerting): struct names and url refactoring

This commit is contained in:
bergquist
2016-05-04 14:58:00 +02:00
parent 74d5410a38
commit 47070f2d1f
8 changed files with 27 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ import (
"time"
)
type AlertStateLog struct {
type AlertState struct {
Id int64 `json:"-"`
OrgId int64 `json:"-"`
AlertId int64 `json:"alertId"`
@@ -36,9 +36,9 @@ type UpdateAlertStateCommand struct {
// Queries
type GetAlertsStateLogCommand struct {
type GetAlertsStateCommand struct {
OrgId int64 `json:"orgId" binding:"Required"`
AlertId int64 `json:"alertId" binding:"Required"`
Result *[]AlertStateLog
Result *[]AlertState
}