@@ -38,8 +38,7 @@ func NewInvestigateService(opts ...option.RequestOption) (r *InvestigateService)
38
38
return
39
39
}
40
40
41
- // This endpoint returns information for each email that matches the search
42
- // parameter(s).
41
+ // Returns information for each email that matches the search parameter(s).
43
42
func (r * InvestigateService ) List (ctx context.Context , params InvestigateListParams , opts ... option.RequestOption ) (res * pagination.V4PagePaginationArray [InvestigateListResponse ], err error ) {
44
43
var raw * http.Response
45
44
opts = append (r .Options [:], opts ... )
@@ -61,14 +60,13 @@ func (r *InvestigateService) List(ctx context.Context, params InvestigateListPar
61
60
return res , nil
62
61
}
63
62
64
- // This endpoint returns information for each email that matches the search
65
- // parameter(s).
63
+ // Returns information for each email that matches the search parameter(s).
66
64
func (r * InvestigateService ) ListAutoPaging (ctx context.Context , params InvestigateListParams , opts ... option.RequestOption ) * pagination.V4PagePaginationArrayAutoPager [InvestigateListResponse ] {
67
65
return pagination .NewV4PagePaginationArrayAutoPager (r .List (ctx , params , opts ... ))
68
66
}
69
67
70
- // For emails that have a detection, this endpoint returns detection details such
71
- // as threat categories, sender information, and links .
68
+ // Returns detection details such as threat categories and sender information for
69
+ // non-benign messages .
72
70
func (r * InvestigateService ) Detections (ctx context.Context , postfixID string , query InvestigateDetectionsParams , opts ... option.RequestOption ) (res * InvestigateDetectionsResponse , err error ) {
73
71
var env InvestigateDetectionsResponseEnvelope
74
72
opts = append (r .Options [:], opts ... )
@@ -110,8 +108,8 @@ func (r *InvestigateService) Get(ctx context.Context, postfixID string, query In
110
108
return
111
109
}
112
110
113
- // For emails that have a detection, this endpoint returns a preview of the message
114
- // body as a base64 encoded PNG image .
111
+ // Returns a preview of the message body as a base64 encoded PNG image for
112
+ // non-benign messages .
115
113
func (r * InvestigateService ) Preview (ctx context.Context , postfixID string , query InvestigatePreviewParams , opts ... option.RequestOption ) (res * InvestigatePreviewResponse , err error ) {
116
114
var env InvestigatePreviewResponseEnvelope
117
115
opts = append (r .Options [:], opts ... )
@@ -132,8 +130,7 @@ func (r *InvestigateService) Preview(ctx context.Context, postfixID string, quer
132
130
return
133
131
}
134
132
135
- // For emails that have a detection, this endpoint returns the raw email as an EML
136
- // file.
133
+ // Returns the raw eml of any non-benign message.
137
134
func (r * InvestigateService ) Raw (ctx context.Context , postfixID string , query InvestigateRawParams , opts ... option.RequestOption ) (res * InvestigateRawResponse , err error ) {
138
135
var env InvestigateRawResponseEnvelope
139
136
opts = append (r .Options [:], opts ... )
@@ -182,7 +179,7 @@ type InvestigateListResponse struct {
182
179
DetectionReasons []string `json:"detection_reasons,required"`
183
180
IsPhishSubmission bool `json:"is_phish_submission,required"`
184
181
IsQuarantined bool `json:"is_quarantined,required"`
185
- // Message identifier
182
+ // The identifier of the message.
186
183
PostfixID string `json:"postfix_id,required"`
187
184
Ts string `json:"ts,required"`
188
185
AlertID string `json:"alert_id,nullable"`
@@ -499,9 +496,9 @@ func (r investigateDetectionsResponseLinkJSON) RawJSON() string {
499
496
}
500
497
501
498
type InvestigateDetectionsResponseSenderInfo struct {
502
- // Name of the autonomous system
499
+ // The name of the autonomous system.
503
500
AsName string `json:"as_name,nullable"`
504
- // Number of the autonomous system
501
+ // The number of the autonomous system.
505
502
AsNumber int64 `json:"as_number,nullable"`
506
503
Geo string `json:"geo,nullable"`
507
504
IP string `json:"ip,nullable"`
@@ -665,7 +662,7 @@ type InvestigateGetResponse struct {
665
662
DetectionReasons []string `json:"detection_reasons,required"`
666
663
IsPhishSubmission bool `json:"is_phish_submission,required"`
667
664
IsQuarantined bool `json:"is_quarantined,required"`
668
- // Message identifier
665
+ // The identifier of the message.
669
666
PostfixID string `json:"postfix_id,required"`
670
667
Ts string `json:"ts,required"`
671
668
AlertID string `json:"alert_id,nullable"`
@@ -849,7 +846,7 @@ func (r InvestigateGetResponseValidationSPF) IsKnown() bool {
849
846
}
850
847
851
848
type InvestigatePreviewResponse struct {
852
- // Base64 encoded PNG image
849
+ // A base64 encoded PNG image of the email.
853
850
Screenshot string `json:"screenshot,required"`
854
851
JSON investigatePreviewResponseJSON `json:"-"`
855
852
}
@@ -871,7 +868,7 @@ func (r investigatePreviewResponseJSON) RawJSON() string {
871
868
}
872
869
873
870
type InvestigateRawResponse struct {
874
- // UTF-8 encoded eml file
871
+ // A UTF-8 encoded eml file of the email.
875
872
Raw string `json:"raw,required"`
876
873
JSON investigateRawResponseJSON `json:"-"`
877
874
}
@@ -1010,26 +1007,26 @@ func (r investigateTraceResponseOutboundLineJSON) RawJSON() string {
1010
1007
type InvestigateListParams struct {
1011
1008
// Account Identifier
1012
1009
AccountID param.Field [string ] `path:"account_id,required"`
1013
- // Controls whether the message action log in included in the response.
1010
+ // Determines if the message action log is included in the response.
1014
1011
ActionLog param.Field [bool ] `query:"action_log"`
1015
1012
AlertID param.Field [string ] `query:"alert_id"`
1016
- // If `false`, the search includes non- detections.
1013
+ // Determines if the search results will include detections or not .
1017
1014
DetectionsOnly param.Field [bool ] `query:"detections_only"`
1018
- // Filter by the sender domain
1015
+ // The sender domains the search filters by.
1019
1016
Domain param.Field [string ] `query:"domain"`
1020
1017
// The end of the search date range. Defaults to `now`.
1021
1018
End param.Field [time.Time ] `query:"end" format:"date-time"`
1022
- // Filter messages by the provided disposition .
1019
+ // The dispositions the search filters by .
1023
1020
FinalDisposition param.Field [InvestigateListParamsFinalDisposition ] `query:"final_disposition"`
1024
- // Filter messages by actions applied to them
1021
+ // The message actions the search filters by.
1025
1022
MessageAction param.Field [InvestigateListParamsMessageAction ] `query:"message_action"`
1026
1023
MessageID param.Field [string ] `query:"message_id"`
1027
1024
Metric param.Field [string ] `query:"metric"`
1028
- // Page number of paginated results.
1025
+ // The page number of paginated results.
1029
1026
Page param.Field [int64 ] `query:"page"`
1030
- // Number of results to display .
1027
+ // The number of results per page .
1031
1028
PerPage param.Field [int64 ] `query:"per_page"`
1032
- // Space delimited query term(s) . The search is case-insensitive.
1029
+ // The space- delimited term used in the query . The search is case-insensitive.
1033
1030
//
1034
1031
// The content of the following email metadata fields are searched:
1035
1032
//
@@ -1068,7 +1065,7 @@ func (r InvestigateListParams) URLQuery() (v url.Values) {
1068
1065
})
1069
1066
}
1070
1067
1071
- // Filter messages by the provided disposition .
1068
+ // The dispositions the search filters by .
1072
1069
type InvestigateListParamsFinalDisposition string
1073
1070
1074
1071
const (
@@ -1087,7 +1084,7 @@ func (r InvestigateListParamsFinalDisposition) IsKnown() bool {
1087
1084
return false
1088
1085
}
1089
1086
1090
- // Filter messages by actions applied to them
1087
+ // The message actions the search filters by.
1091
1088
type InvestigateListParamsMessageAction string
1092
1089
1093
1090
const (
0 commit comments