Skip to content

Commit df38cc1

Browse files
authored
added full response as string (#464)
Signed-off-by: Afek Berger <[email protected]>
1 parent 2a40177 commit df38cc1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

armotypes/runtimeincidents.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ type HttpRuleAlert struct {
121121
} `json:"request,omitempty" bson:"request,omitempty"`
122122

123123
Response struct {
124-
StatusCode int `json:"statusCode,omitempty" bson:"statusCode,omitempty"` // e.g., 200
125-
Header map[string]string `json:"header,omitempty" bson:"header,omitempty"` // e.g., "Content-Type" -> ["application/json"]
126-
Body string `json:"body,omitempty" bson:"body,omitempty"` // e.g., "<html>...</html>"
127-
Proto string `json:"proto,omitempty" bson:"proto,omitempty"` // e.g., "HTTP/1.1"
124+
StatusCode int `json:"statusCode,omitempty" bson:"statusCode,omitempty"` // e.g., 200
125+
Header map[string]string `json:"header,omitempty" bson:"header,omitempty"` // e.g., "Content-Type" -> ["application/json"]
126+
Body string `json:"body,omitempty" bson:"body,omitempty"` // e.g., "<html>...</html>"
127+
Proto string `json:"proto,omitempty" bson:"proto,omitempty"` // e.g., "HTTP/1.1"
128+
FullResponse string `json:"fullResponse,omitempty" bson:"fullResponse,omitempty"` // e.g., "{...}"
128129
} `json:"response,omitempty" bson:"response,omitempty"`
129130

130131
SourcePodInfo RuntimeAlertK8sDetails `json:"sourcePodInfo,omitempty" bson:"podInfo,omitempty"`

0 commit comments

Comments
 (0)