-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a83a976
commit 3ca8a65
Showing
4 changed files
with
170 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Add observables | ||
|
||
Add *Observable* to an *Alert*. | ||
|
||
## Query | ||
|
||
```plain | ||
POST /api/alert/{id}/artifact | ||
``` | ||
|
||
With: | ||
|
||
- `id`: Alert identifier | ||
|
||
## Request Body Example | ||
|
||
!!! Example "" | ||
|
||
```json | ||
|
||
``` | ||
|
||
|
||
|
||
## Response | ||
|
||
### Status codes | ||
|
||
- `201`: if *Alert* is created successfully | ||
- `401`: Authentication error | ||
|
||
### Response Body Example | ||
|
||
!!! Example "" | ||
|
||
```json | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Add observables | ||
|
||
Delete an *Observable* from an *Alert*. | ||
|
||
## Query | ||
|
||
```plain | ||
DELETE /api/alert/artifact/{id} | ||
``` | ||
|
||
With: | ||
|
||
- `id`: Observable identifier | ||
|
||
## Response | ||
|
||
### Status codes | ||
|
||
- `204`: if *Observable* is deleted successfully | ||
- `401`: Authentication error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Run Responder | ||
|
||
Run a Responder on an *Alert*. | ||
|
||
## Query | ||
|
||
```plain | ||
POST /api/connector/cortex/action | ||
``` | ||
|
||
|
||
## Request Body Example | ||
|
||
!!! Example "" | ||
|
||
```json | ||
{ | ||
"responderId": "05521ec727f75d69e828604dc5ae4c03", | ||
"objectType": "alert", | ||
"objectId": "~947478656" | ||
} | ||
``` | ||
|
||
The following fields are required: | ||
|
||
- `responderId`: (String) | ||
- `objectType`: "alert" | ||
- `objectId`: (String) | ||
|
||
## Response | ||
|
||
### Status codes | ||
|
||
- `200`: if *Responder* is run successfully | ||
- `401`: Authentication error | ||
|
||
### Response Body Example | ||
|
||
!!! Example "" | ||
|
||
```json | ||
{ | ||
"responderId": "05521ec727f75d69e828604dc5ae4bed", | ||
"responderName": "JIRA_Create_Ticket_1_0", | ||
"responderDefinition": "JIRA_Create_Ticket_1_0", | ||
"cortexId": "CORTEX_INTERNAL", | ||
"cortexJobId": "_v2EnHsB8Pn57ilsukA3", | ||
"objectType": "Alert", | ||
"objectId": "~947478656", | ||
"status": "Waiting", | ||
"startDate": 1630418550145, | ||
"operations": "[]", | ||
"report": "{}" | ||
} | ||
``` |