46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
package dto
|
|
|
|
import "encoding/json"
|
|
|
|
type AlertChannelOption struct {
|
|
ID uint64 `json:"id,string"`
|
|
SourceDB string `json:"sourceDb"`
|
|
Account string `json:"account"`
|
|
}
|
|
|
|
type AlertIgnoreRequest struct {
|
|
IDs []json.Number `json:"ids"`
|
|
}
|
|
type AlertGapRequest struct {
|
|
Enabled bool `json:"enabled"`
|
|
Days int `json:"days"`
|
|
}
|
|
type AlertExemptionQuery struct {
|
|
Page int `form:"pageNum"`
|
|
PageSize int `form:"pageSize"`
|
|
Name string `form:"channelName"`
|
|
Active *bool `form:"active"`
|
|
}
|
|
type AlertExemptionRequest struct {
|
|
SourceDB string `json:"sourceDb"`
|
|
PromoteID json.Number `json:"promoteId"`
|
|
Reason string `json:"reason"`
|
|
}
|
|
type AlertExemptionResponse struct {
|
|
ID uint64 `json:"id,string"`
|
|
SourceDB string `json:"sourceDb"`
|
|
PromoteID uint64 `json:"promoteId,string"`
|
|
ChannelName string `json:"channelName"`
|
|
AddedName string `json:"addedName"`
|
|
AddedAt *string `json:"addedAt"`
|
|
Reason string `json:"reason"`
|
|
Active bool `json:"active"`
|
|
RemovedName string `json:"removedName"`
|
|
RemovedAt *string `json:"removedAt"`
|
|
RemoveReason string `json:"removeReason"`
|
|
}
|
|
type AlertExemptionPage struct {
|
|
Rows []*AlertExemptionResponse `json:"rows"`
|
|
Total int64 `json:"total"`
|
|
}
|