Files
cachet-monitor/cachet/component.go
Matej Kramny 7a5ad278bb Improve fail reasons, fix api crashes
- Add options about TLS verification
- Fix crashes when cachet presents IDs as a string
- Improve fail reasons
2015-07-19 20:25:34 +01:00

21 lines
539 B
Go

package cachet
import "encoding/json"
// Component Cachet model
type Component struct {
ID json.Number `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status json.Number `json:"status_id"`
HumanStatus string `json:"-"`
IncidentCount int `json:"-"`
CreatedAt *string `json:"created_at"`
UpdatedAt *string `json:"updated_at"`
}
// ComponentData json response model
type ComponentData struct {
Component Component `json:"data"`
}