Skip to content

Commit

Permalink
Merge pull request #1211 from aheuze/update_get_alert_case
Browse files Browse the repository at this point in the history
Get cases with get alert action
  • Loading branch information
aheuze authored Dec 11, 2024
2 parents 69bfe00 + 5a45e6c commit 2947fce
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions Sekoia.io/action_get_an_alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"stix": {
"in": "query",
"type": "boolean"
},
"cases": {
"in": "query",
"type": "boolean",
"description": "Get the cases associated with this alert",
"default": false
}
},
"required": [
Expand Down Expand Up @@ -714,6 +720,29 @@
},
"target": {
"type": "string"
},
"cases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"short_id": {
"type": "string"
},
"name": {
"type": "string"
},
"is_supplied": {
"type": "boolean"
},
"manual": {
"type": "boolean"
},
"status": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sekoia.io/sekoiaio/operation_center/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
{
"verb": "get",
"endpoint": base_url + "alerts/{uuid}",
"query_parameters": ["stix"],
"query_parameters": ["stix", "cases"],
},
)

Expand Down
1 change: 1 addition & 0 deletions Sekoia.io/tests/test_operation_center.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def test_get_alert_success():
expected_response = {
"community_uuid": "string",
"countermeasures": [],
"cases": [],
"updated_at": 0,
"source": "string",
"updated_by_type": "string",
Expand Down

0 comments on commit 2947fce

Please sign in to comment.