Skip to content

Commit 147e36d

Browse files
maxcoldefd6
andauthored
fix code formatting
Co-authored-by: Dan Kortschak <[email protected]>
1 parent c01cc6b commit 147e36d

File tree

1 file changed

+31
-31
lines changed
  • packages/wiz/data_stream/cloud_configuration_finding_full_posture/agent/stream

1 file changed

+31
-31
lines changed

packages/wiz/data_stream/cloud_configuration_finding_full_posture/agent/stream/cel.yml.hbs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -93,41 +93,41 @@ program: |
9393
}
9494
}.encode_json()
9595
).do_request().as(resp, resp.StatusCode == 200 ?
96-
resp.Body.decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
97-
{
98-
"events": body.data.configurationFindings.nodes.map(e, {
99-
"message": e.encode_json(),
100-
}),
101-
"end_cursor": {
102-
?"value": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false) ?
103-
body.?data.configurationFindings.pageInfo.endCursor
104-
:
105-
optional.none()
106-
},
107-
"want_more": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false),
108-
}
109-
:
110-
{
111-
"events": [],
112-
"want_more": false,
113-
}
114-
)
115-
:
96+
resp.Body.decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
11697
{
117-
"events": {
118-
"error": {
119-
"code": string(resp.StatusCode),
120-
"id": string(resp.Status),
121-
"message": "POST " + state.url.trim_right("/") + "/graphql:" + (
122-
size(resp.Body) != 0 ?
123-
string(resp.Body)
124-
:
125-
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
126-
),
127-
},
98+
"events": body.data.configurationFindings.nodes.map(e, {
99+
"message": e.encode_json(),
100+
}),
101+
"end_cursor": {
102+
?"value": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false) ?
103+
body.?data.configurationFindings.pageInfo.endCursor
104+
:
105+
optional.none()
128106
},
107+
"want_more": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false),
108+
}
109+
:
110+
{
111+
"events": [],
129112
"want_more": false,
130113
}
114+
)
115+
:
116+
{
117+
"events": {
118+
"error": {
119+
"code": string(resp.StatusCode),
120+
"id": string(resp.Status),
121+
"message": "POST " + state.url.trim_right("/") + "/graphql:" + (
122+
size(resp.Body) != 0 ?
123+
string(resp.Body)
124+
:
125+
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
126+
),
127+
},
128+
},
129+
"want_more": false,
130+
}
131131
)
132132
)
133133
tags:

0 commit comments

Comments
 (0)