Files
houston-be/model/team/model.go
Vijay Joshi fd2a977e82 INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents (#456)
* INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents

* INFRA-3705 : Self review

* INFRA-3705 : Fix tests:

* INFRA-3705 : UT's and minor constant changes

* INFRA-3705 : Add migration script
2024-09-17 10:01:07 +05:30

26 lines
1.1 KiB
Go

package team
import "gorm.io/datatypes"
type TeamDTO struct {
ID uint `json:"id"`
Name string `json:"name"`
SlackUserIds []string `json:"slack_user_ids"`
ConfluenceLink string `json:"confluence_link"`
OncallHandle string `json:"oncall_handle"`
PseOncallHandle string `json:"pse_oncall_handle"`
Active bool `json:"active"`
WebhookSlackChannel string `json:"webhook_slack_channel"`
ManagerHandle string `json:"manager_handle"`
CreatedBy string `json:"created_by"`
UpdatedBy string `json:"updated_by"`
TeamSeverityUpdateRule datatypes.JSON `json:"team_severity_update_strategy,omitempty"`
TeamType string `json:"team_type"`
}
type TeamSeverityUpdateRule struct {
Strategy []string `json:"strategy"`
AllowedUserIdsForSeverityChange []string `json:"allowed_user_ids_severity"`
AllowedUserIdsForResolve []string `json:"allowed_user_ids_resolve"`
}