diff --git a/docs/providers/documentation/squadcast-provider.mdx b/docs/providers/documentation/squadcast-provider.mdx index 26cc7e2c6..d7154ad47 100644 --- a/docs/providers/documentation/squadcast-provider.mdx +++ b/docs/providers/documentation/squadcast-provider.mdx @@ -9,14 +9,15 @@ description: "Squadcast provider is a provider used for creating issues in Squad The `notify` function take following parameters as inputs: - `notify_type` (required): Takes either of `incident` or `notes` depending on weather you want to create an incident or a note. -1. ##### parametres for `incident` +1. ##### parameters for `incident` - `message` (required): This will be the incident message. - `description` (required): This will be the incident description. + - `tags` (optional): Tags for the incident. It should be a dict format. - `priority` (optional): Priority of the incident. - `status` (optional): Status of the event. - `event_id` (optional): event_id is used to resolve an incident - `additional_json` (optional): Additional JSON data to be sent with the incident. -2. ##### parametres for `notes` +2. ##### parameters for `notes` - `message` (required): The message of the note. - `incident_id` (required): Id of the incident where the Note has to be created. - `attachments` (optional): List of attachments for the notes. diff --git a/keep/providers/squadcast_provider/squadcast_provider.py b/keep/providers/squadcast_provider/squadcast_provider.py index 49ed495a9..1cb71db6b 100644 --- a/keep/providers/squadcast_provider/squadcast_provider.py +++ b/keep/providers/squadcast_provider/squadcast_provider.py @@ -114,6 +114,7 @@ def _create_incidents( headers: dict, message: str, description: str, + tags: dict = {}, priority: str = "", status: str = "", event_id: str = "", @@ -123,6 +124,7 @@ def _create_incidents( { "message": message, "description": description, + "tags": tags, "priority": priority, "status": status, "event_id": event_id, @@ -153,6 +155,7 @@ def _notify( description: str = "", incident_id: str = "", priority: str = "", + tags: dict = {}, status: str = "", event_id: str = "", attachments: list = [], @@ -187,6 +190,7 @@ def _notify( headers=headers, message=message, description=description, + tags=tags, priority=priority, status=status, event_id=event_id,