Skip to content

Commit

Permalink
integer workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kcreddy committed Jul 5, 2024
1 parent bd49b97 commit 509d71e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"jsonrpc":"2.0","method":"addEvents","params":{"events":[{"companyId":"59a14b271da197c6108b4567","computer_name":"FC-EXCHANGE-01","computer_fqdn":"fc-exchange-01.fc.dom","computer_ip":"192.168.0.1","computer_id":"59b7d9bfa849af3a1465b7e4","product_installed":"BEST","aph_type":"phishing","url":"http://example.com/account/support/","status":"aph_blocked","last_blocked":"2023-09-13T08:49:43.000Z","count":1,"module":"aph"},{"computer_name":"FC-EXCHANGE-02","computer_fqdn":"fc-exchange-02.fc.dom","computer_ip":"192.168.0.2","computer_id":"59b7d9bfa849af3a1465b7e5","product_installed":"BEST","aph_type":"phishing","url":"http://example.com/account/supports/","status":"aph_blocked","last_blocked":"2023-09-14T08:49:43.000Z","count":1,"companyId":"623c18fb12fb8700396d6376","module":"aph","_testEvent_":true}]},"id":150537}
{"jsonrpc":"2.0","method":"addEvents","params":{"events":[{"companyId":"59a14b271da197c6108b4567","computer_name":"FC-EXCHANGE-01","computer_fqdn":"fc-exchange-01.fc.dom","computer_ip":"192.168.0.1","computer_id":"59b7d9bfa849af3a1465b7e4","product_installed":"BEST","aph_type":"phishing","url":"http://example.com/account/support/","status":"aph_blocked","last_blocked":"2023-09-13T08:49:43.000Z","count":1,"module":"aph"},{"computer_name":"FC-EXCHANGE-02","computer_fqdn":"fc-exchange-02.fc.dom","computer_ip":"192.168.0.2","computer_id":"59b7d9bfa849af3a1465b7e5","product_installed":"BEST","aph_type":"phishing","url":"http://example.com/account/supports/","status":"aph_blocked","last_blocked":"2023-09-14T08:49:43.000Z","companyId":"623c18fb12fb8700396d6376","module":"aph","count":1,"_testEvent_":true}]},"id":150537}
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ ssl: {{ssl}}
program: |
has(obj.jsonrpc) ?
obj.params.events.map(e, {
"message": e
"message": {"count": int(e.count), "companyId": e.companyId}
})
:
[{"message": "Not jsonrpc formatted message root1"}]
[{
"message": {"error": "Not jsonrpc formatted message root1"}
}]

{{!-- debug("HAS_OBJECT-JSONRPC", has(obj.jsonrpc)) ?
[{"message": debug("OBJECT-ID", obj.id)}] --}}
Expand Down

0 comments on commit 509d71e

Please sign in to comment.