Skip to content

Commit

Permalink
chore(providers): improve squadcast provider capabilities (keephq#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd authored Jun 20, 2024
1 parent bab1054 commit c6327d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/providers/documentation/squadcast-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions keep/providers/squadcast_provider/squadcast_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _create_incidents(
headers: dict,
message: str,
description: str,
tags: dict = {},
priority: str = "",
status: str = "",
event_id: str = "",
Expand All @@ -123,6 +124,7 @@ def _create_incidents(
{
"message": message,
"description": description,
"tags": tags,
"priority": priority,
"status": status,
"event_id": event_id,
Expand Down Expand Up @@ -153,6 +155,7 @@ def _notify(
description: str = "",
incident_id: str = "",
priority: str = "",
tags: dict = {},
status: str = "",
event_id: str = "",
attachments: list = [],
Expand Down Expand Up @@ -187,6 +190,7 @@ def _notify(
headers=headers,
message=message,
description=description,
tags=tags,
priority=priority,
status=status,
event_id=event_id,
Expand Down

0 comments on commit c6327d4

Please sign in to comment.