- Add options about TLS verification - Fix crashes when cachet presents IDs as a string - Improve fail reasons
21 lines
539 B
Go
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"`
|
|
}
|