sendTestPushEvent
This method sends a test event.
Test events always have the _testEvent_
property set to true
.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| String | No | Event type |
| Object | Yes | Test events are created from templates. This parameter can be used to replace data in the event template. |
Return value
This method returns an Object containing the details of the sent event and a Boolean that marks the event as a test.
Example
Request:
{ "params": { "eventType": "av", "data": { "malware_name": "Test malware name" } }, "jsonrpc": "2.0", "method": "sendTestPushEvent", "id": "ad12cb61-52b3-4209-a87a-93a8530d91cb" }
Response:
{
"id":"ad12cb61-52b3-4209-a87a-93a8530d91cb",
"jsonrpc":"2.0",
"result": {
"companyId": "59a14b271da197c6108b4567",
"computer_name": "FC-WIN7-X64-01",
"computer_fqdn": "fc-win7-x64-01",
"computer_ip": "10.17.46.196",
"computer_id": "59a1604e60369e06733f8abb",
"product_installed": "BEST",
"malware_type": "file",
"malware_name": "Test malware name",
"file_path": "C:\\eicar0000001.txt",
"hash": "8b3f191819931d1f2cef7289239b5f77c00b079847b9c2636e56854d1",
"final_status": "deleted",
"timestamp": "2017-09-08T12:01:36.000Z",
"module": "av",
"_testEvent_": true
}
}