Beginning of incident reporting

This commit is contained in:
Matej Kramny
2015-03-16 01:44:48 +01:00
parent 1cadc9b3b3
commit f478ad9895
5 changed files with 91 additions and 16 deletions

17
cachet/incident.go Normal file
View File

@@ -0,0 +1,17 @@
package cachet
import (
"time"
)
type Incident struct {
Id int `json:"id"`
Name string `json:"name"`
Message string `json:"message"`
Status int `json:"status"`// 4?
Human_status string `json:"human_status"`
Component *Component `json:"component"`
Component_id *int `json:"component_id"`
Created_at *time.Time `json:"created_at"`
Updated_at *time.Time `json:"updated_at"`
}