MCPcopy Create free account
hub / github.com/expr-lang/expr / Alert

Struct Alert

test/crowdsec/crowdsec.go:34–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34type 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
58func (a *Alert) HasRemediation() bool {
59 return true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected