-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelAlert.go
169 lines (155 loc) · 5.84 KB
/
ModelAlert.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Alert undocumented
type Alert struct {
// Entity is the base model of Alert
Entity
ODataType string `json:"@odata.type,omitempty"`
// ActivityGroupName undocumented
ActivityGroupName *string `json:"activityGroupName,omitempty"`
// AlertDetections undocumented
AlertDetections []AlertDetection `json:"alertDetections,omitempty"`
// AssignedTo undocumented
AssignedTo *string `json:"assignedTo,omitempty"`
// AzureSubscriptionID undocumented
AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
// AzureTenantID undocumented
AzureTenantID *string `json:"azureTenantId,omitempty"`
// Category undocumented
Category *string `json:"category,omitempty"`
// ClosedDateTime undocumented
ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
// CloudAppStates undocumented
CloudAppStates []CloudAppSecurityState `json:"cloudAppStates,omitempty"`
// Comments undocumented
Comments []string `json:"comments,omitempty"`
// Confidence undocumented
Confidence *int `json:"confidence,omitempty"`
// CreatedDateTime undocumented
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DetectionIDs undocumented
DetectionIDs []string `json:"detectionIds,omitempty"`
// EventDateTime undocumented
EventDateTime *time.Time `json:"eventDateTime,omitempty"`
// Feedback undocumented
Feedback *AlertFeedback `json:"feedback,omitempty"`
// FileStates undocumented
FileStates []FileSecurityState `json:"fileStates,omitempty"`
// HistoryStates undocumented
HistoryStates []AlertHistoryState `json:"historyStates,omitempty"`
// HostStates undocumented
HostStates []HostSecurityState `json:"hostStates,omitempty"`
// IncidentIDs undocumented
IncidentIDs []string `json:"incidentIds,omitempty"`
// InvestigationSecurityStates undocumented
InvestigationSecurityStates []InvestigationSecurityState `json:"investigationSecurityStates,omitempty"`
// LastEventDateTime undocumented
LastEventDateTime *time.Time `json:"lastEventDateTime,omitempty"`
// LastModifiedDateTime undocumented
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
// MalwareStates undocumented
MalwareStates []MalwareState `json:"malwareStates,omitempty"`
// MessageSecurityStates undocumented
MessageSecurityStates []MessageSecurityState `json:"messageSecurityStates,omitempty"`
// NetworkConnections undocumented
NetworkConnections []NetworkConnection `json:"networkConnections,omitempty"`
// Processes undocumented
Processes []Process `json:"processes,omitempty"`
// RecommendedActions undocumented
RecommendedActions []string `json:"recommendedActions,omitempty"`
// RegistryKeyStates undocumented
RegistryKeyStates []RegistryKeyState `json:"registryKeyStates,omitempty"`
// SecurityResources undocumented
SecurityResources []SecurityResource `json:"securityResources,omitempty"`
// Severity undocumented
Severity *AlertSeverity `json:"severity,omitempty"`
// SourceMaterials undocumented
SourceMaterials []string `json:"sourceMaterials,omitempty"`
// Status undocumented
Status *AlertStatus `json:"status,omitempty"`
// Tags undocumented
Tags []string `json:"tags,omitempty"`
// Title undocumented
Title *string `json:"title,omitempty"`
// Triggers undocumented
Triggers []AlertTrigger `json:"triggers,omitempty"`
// URIClickSecurityStates undocumented
URIClickSecurityStates []URIClickSecurityState `json:"uriClickSecurityStates,omitempty"`
// UserStates undocumented
UserStates []UserSecurityState `json:"userStates,omitempty"`
// VendorInformation undocumented
VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
// VulnerabilityStates undocumented
VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
}
func NewAlert() (*Alert, error) {
newAlert := &Alert{
ODataType: "#microsoft.graph.Alert",
}
return newAlert, nil
}
// AlertDetection undocumented
type AlertDetection struct {
// Object is the base model of AlertDetection
Object
ODataType string `json:"@odata.type,omitempty"`
// DetectionType undocumented
DetectionType *string `json:"detectionType,omitempty"`
// Method undocumented
Method *string `json:"method,omitempty"`
// Name undocumented
Name *string `json:"name,omitempty"`
}
func NewAlertDetection() (*AlertDetection, error) {
newAlertDetection := &AlertDetection{
ODataType: "#microsoft.graph.AlertDetection",
}
return newAlertDetection, nil
}
// AlertHistoryState undocumented
type AlertHistoryState struct {
// Object is the base model of AlertHistoryState
Object
ODataType string `json:"@odata.type,omitempty"`
// AppID undocumented
AppID *string `json:"appId,omitempty"`
// AssignedTo undocumented
AssignedTo *string `json:"assignedTo,omitempty"`
// Comments undocumented
Comments []string `json:"comments,omitempty"`
// Feedback undocumented
Feedback *AlertFeedback `json:"feedback,omitempty"`
// Status undocumented
Status *AlertStatus `json:"status,omitempty"`
// UpdatedDateTime undocumented
UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
// User undocumented
User *string `json:"user,omitempty"`
}
func NewAlertHistoryState() (*AlertHistoryState, error) {
newAlertHistoryState := &AlertHistoryState{
ODataType: "#microsoft.graph.AlertHistoryState",
}
return newAlertHistoryState, nil
}
// AlertTrigger undocumented
type AlertTrigger struct {
// Object is the base model of AlertTrigger
Object
ODataType string `json:"@odata.type,omitempty"`
// Name undocumented
Name *string `json:"name,omitempty"`
// Type undocumented
Type *string `json:"type,omitempty"`
// Value undocumented
Value *string `json:"value,omitempty"`
}
func NewAlertTrigger() (*AlertTrigger, error) {
newAlertTrigger := &AlertTrigger{
ODataType: "#microsoft.graph.AlertTrigger",
}
return newAlertTrigger, nil
}