| 32 | } |
| 33 | |
| 34 | type Alert struct { |
| 35 | Capacity *int32 `json:"capacity"` |
| 36 | CreatedAt string `json:"created_at,omitempty"` |
| 37 | Decisions []*Decision `json:"decisions"` |
| 38 | Events []*Event `json:"events"` |
| 39 | EventsCount *int32 `json:"events_count"` |
| 40 | ID int64 `json:"id,omitempty"` |
| 41 | Labels []string `json:"labels"` |
| 42 | Leakspeed *string `json:"leakspeed"` |
| 43 | MachineID string `json:"machine_id,omitempty"` |
| 44 | Message *string `json:"message"` |
| 45 | Meta Meta `json:"meta,omitempty"` |
| 46 | Remediation bool `json:"remediation,omitempty"` |
| 47 | Scenario *string `json:"scenario"` |
| 48 | ScenarioHash *string `json:"scenario_hash"` |
| 49 | ScenarioVersion *string `json:"scenario_version"` |
| 50 | Simulated *bool `json:"simulated"` |
| 51 | Source *Source `json:"source"` |
| 52 | StartAt *string `json:"start_at"` |
| 53 | StopAt *string `json:"stop_at"` |
| 54 | UUID string `json:"uuid,omitempty"` |
| 55 | Edges AlertEdges `json:"edges"` |
| 56 | } |
| 57 | |
| 58 | func (a *Alert) HasRemediation() bool { |
| 59 | return true |
nothing calls this directly
no outgoing calls
no test coverage detected