TP-52454 : Created Zenduty integration (#348)
* TP-52454| created zenduty integration * TP-52454| added migration script for external team table * TP-52454| added extra logs * TP-52454| modified logs * TP-52454|added extra logs * TP-52454| changed post url for zenduty * TP-52454| fixed bugs in zenduty client * TP-52454| created constants for environmental varibales * TP-52454| enabled zenduty if severity is less than or equal to the defined config
This commit is contained in:
committed by
GitHub
parent
6e783c993e
commit
8e7619f972
24
model/externalTeam/entity.go
Normal file
24
model/externalTeam/entity.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package externalTeam
|
||||
|
||||
import (
|
||||
"gorm.io/datatypes"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ExternalTeamEntity struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
ExternalTeamID string `gorm:"column:external_team_id"`
|
||||
ExternalTeamName string `gorm:"column:external_team_name"`
|
||||
Metadata datatypes.JSON `gorm:"column:metadata"`
|
||||
ProviderName string `gorm:"column:provider_name"`
|
||||
TeamID uint `gorm:"column:team_id"`
|
||||
IsActive bool `gorm:"column:is_active"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||
CreatedBy string `gorm:"column:created_by"`
|
||||
UpdatedBy string `gorm:"column:updated_by"`
|
||||
}
|
||||
|
||||
func (ExternalTeamEntity) TableName() string {
|
||||
return "external_team"
|
||||
}
|
||||
16
model/externalTeam/model.go
Normal file
16
model/externalTeam/model.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package externalTeam
|
||||
|
||||
import "gorm.io/datatypes"
|
||||
|
||||
type ExternalTeamDTO struct {
|
||||
ExternalTeamID string `json:"external_team_id,omitempty"`
|
||||
ExternalTeamName string `json:"external_team_name,omitempty"`
|
||||
Metadata datatypes.JSON `json:"metadata,omitempty"`
|
||||
ProviderName string `json:"provider_name,omitempty"`
|
||||
TeamID uint `json:"team_id,omitempty"`
|
||||
IsActive bool `json:"is_active,omitempty"`
|
||||
}
|
||||
|
||||
type ExternalTeamMetadata struct {
|
||||
ServiceId string `json:"service_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user