Link to incident, resolved message

- Major outage when already in Partial outage
- Resolved at x message
- Link incident to component
This commit is contained in:
Matej Kramny
2015-03-21 20:08:05 +00:00
parent cceb370e30
commit 409d753931
3 changed files with 76 additions and 19 deletions

View File

@@ -1,19 +1,18 @@
package cachet
import (
"time"
)
// Component Cachet model
type Component struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status int `json:"status"`
Link *string `json:"link"`
Order *int `json:"order"`
GroupID *int `json:"group_id"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status int `json:"status_id"`
HumanStatus string `json:"-"`
IncidentCount int `json:"-"`
CreatedAt int `json:"created_at"`
UpdatedAt int `json:"updated_at"`
}
// ComponentData json response model
type ComponentData struct {
Component Component `json:"data"`
}