Adding Errors from Smart Beat Operation
POST /error
Add errors that occurred during Smart Beat operation:
curl -k -XPOST https://<SBM_HOST>:7767/error
Header Input Parameters
| Name | Type | Description |
|---|---|---|
| ClientIP | string | IP address of the host sending the request |
Body Input Parameters
| Name | Type | Description |
|---|---|---|
| status | bool | Error presence status |
| guid | string | Unique Smart Beat identifier |
| errortimestamp | string | Error sending time |
| errors | object array | Array of objects with errors |
Objects in the errors array have the following structure:
| Name | Type | Description |
|---|---|---|
| app | string | Name of the resource where errors occurred |
| apperrors | string array | Error content |
Output Parameters
Status of error submission processing on Smart Beat Manager.
Examples
Example input parameters:
{
"status": true,
"guid": "12345",
"errortimestamp": "2020-01-01 00:00:30",
"errors":[
{
"app": "filebeat",
"apperrors": ["error1", "error2"]
},
{
"app": "scriptbeat",
"apperrors": ["error3", "error4"]
}
]
}