This commit is contained in:
zxr
2026-08-24 22:04:01 +08:00
parent 695755546f
commit fb9c5b9255
4 changed files with 249 additions and 26 deletions

View File

@@ -18,6 +18,10 @@ export interface MessageRecord {
incidentId?: number
alertRecordId?: number
nextRetryAt?: string
occurrenceCount?: number
firstOccurredAt?: string
lastOccurredAt?: string
lastDeliveryId?: number
}
export type MessageListType = MessageRecord[]

View File

@@ -32,7 +32,7 @@ export const createNoticeChannel = (data: {
email_to?: string[]
email_cc?: string[]
email_bcc?: string[]
email_use_tls?: boolean
email_security_mode?: 'none' | 'starttls' | 'tls'
sms_provider?: string
sms_access_key_id?: string
sms_access_key_secret?: string
@@ -40,6 +40,7 @@ export const createNoticeChannel = (data: {
sms_template_code?: string
sms_phones?: string[]
in_app_targets?: string[]
in_app_aggregation_window?: number
}) => {
return request.post('/Alert/v1/channel/create', data)
}
@@ -67,7 +68,7 @@ export const updateNoticeChannel = (data: {
email_to?: string[]
email_cc?: string[]
email_bcc?: string[]
email_use_tls?: boolean
email_security_mode?: 'none' | 'starttls' | 'tls'
sms_provider?: string
sms_access_key_id?: string
sms_access_key_secret?: string
@@ -75,6 +76,7 @@ export const updateNoticeChannel = (data: {
sms_template_code?: string
sms_phones?: string[]
in_app_targets?: string[]
in_app_aggregation_window?: number
}) => {
return request.post('/Alert/v1/channel/update', data)
}