sendTestPushEvent
This method sends a test event.
Test events always have the _testEvent_ property set to true.
Parameters
Parameter | Type | Optional | Description |
|---|---|---|---|
| String | No | The type of the event you want tot send a test for. Possible values:
|
| Object | Yes | Test events are created from templates. This parameter can be used to overwrite data in the returned event example. |
General parameters
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| This parameter adds an identifier to the request, linking it to its corresponding response. The target replies with the same value in the response, allowing easy call tracking. | Mandatory | String | No additional requirements |
| The name of the method you are using to send the request. | Mandatory | String | Possible values:
|
| The version of JSON-RPC used by the request and the response. | Mandatory | Integer | Possible values:
|
| An object containing the configuration of the request. | Mandatory | Object | No additional requirements. |
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
Send a test push event, overwriting the malware_name attribute with the Test malware name value.
{
"params": {
"eventType": "av",
"data": {
"malware_name": "Test malware name"
}
},
"jsonrpc": "2.0",
"method": "sendTestPushEvent",
"id": "ad12cb61-52b3-4209-a87a-93a8530d91cb"
} Send a test push event without overwriting any attributes.
{
"params": {
"eventType": "av",
},
"jsonrpc": "2.0",
"method": "sendTestPushEvent",
"id": "ad12cb61-52b3-4209-a87a-93a8530d91cb"
} Responses