adding error & deploy notification
This commit is contained in:
@@ -25,7 +25,8 @@ It's built in Go and can be deployed as a container or managed service.
|
||||
}
|
||||
```
|
||||
|
||||
- **Endpoint**: `/template/notify/backup_template`
|
||||
### Send Backup Notification
|
||||
- **Endpoint**: `/template/notify/backup`
|
||||
- **Method**: `POST`
|
||||
- **Request Body**:
|
||||
```json
|
||||
@@ -42,6 +43,36 @@ It's built in Go and can be deployed as a container or managed service.
|
||||
}
|
||||
```
|
||||
|
||||
### Send Update Notification
|
||||
- **Endpoint**: `/template/notify/update`
|
||||
- **Method**: `POST`
|
||||
- **Request Body**:
|
||||
```json
|
||||
{
|
||||
"host": "Notification Title",
|
||||
"asset": "Notification Message",
|
||||
"time": 500 // in seconds
|
||||
}
|
||||
```
|
||||
|
||||
### Send Error Notification
|
||||
- **Endpoint**: `/template/notify/error`
|
||||
- **Method**: `POST`
|
||||
- **Request Body**:
|
||||
```json
|
||||
{
|
||||
"caller": "Who triggered the error",
|
||||
"message": "Error while moving file",
|
||||
"critical": true,
|
||||
"extra": [
|
||||
{
|
||||
"name": "Additional Info",
|
||||
"value": "Some extra information"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Setup & Usage
|
||||
|
||||
### Docker
|
||||
|
Reference in New Issue
Block a user