通知渠道 Notify Channel
https://aiops.com/integration.html
https://docs.erda.cloud/2.0/manual/msp/guides/apm/alert-notify-channel.html
https://github.com/yangpeng14/DevOps/blob/master/kubernetes/PrometheusAlert%E5%A4%9A%E6%B8%A0%E9%81%93%E5%91%8A%E8%AD%A6%E9%80%9A%E7%9F%A5%E7%A5%9E%E5%99%A8.md
https://www.alibabacloud.com/help/zh/log-service/latest/notification-methods
https://antchain.antgroup.com/docs/2/209963
钉钉数字一体化 https://www.dingtalk.com
- 钉钉,DingdingOutlined
- DingtalkSquareFilled
- 短信 MessageFilled
- 电话,PhoneOutlined
- PhoneTwoTone
- 邮件,MailTwoTone
- SMTP,发送;发消息给邮件服务器上的 SMTP Service
- POP3/IMAP 接收
- 企业微信,QQ
- QqSquareFilled
- WechatFilled
- 飞书
const options = [
{
label: <><DingdingOutlined style={{color: '#0983ff'}} /> 钉钉</>,
value: "ding",
},
{
label: <><MailTwoTone /> 邮件</>,
value: "mail",
},
{
label: <><PhoneTwoTone rotate={90} style={{ color: '#0ce463' }} /> 电话</>,
value: "phone",
},
{
label: <><MessageFilled style={{ color: '#0ce463' }} /> 短信</>,
value: "message",
}
];
tagRender
Select tagRender 自定义选择标签的样式
https://ant-design.antgroup.com/components/select-cn#components-select-demo-custom-tag-render
import React from "react";
// import PropTypes from "prop-types";
import { Select as AntdSelect, Tag } from "antd";
import {
PhoneTwoTone,
DingdingOutlined,
MailTwoTone,
MessageFilled
} from "@ant-design/icons";
import type { CustomTagProps } from "rc-select/lib/BaseSelect";
const options = [
{
label: "钉钉",
value: "ding",
icon: <DingdingOutlined />,
color: "processing"
},
{
label: "邮件",
value: "mail",
icon: <MailTwoTone />,
color: "warning"
},
{
label: "电话",
value: "phone",
icon: <PhoneTwoTone rotate={90} />,
color: "red"
},
{
label: "短信",
value: "message",
icon: <MessageFilled />,
color: "lime"
}
];
Select.propTypes = {};
function Select() {
function tagRender(props: CustomTagProps) {
const { label, value, closable, onClose } = props;
const item = options.find(it => it.value === value) ?? {};
const onPreventMouseDown = (event: React.MouseEvent<HTMLSpanElement>) => {
event.preventDefault();
event.stopPropagation();
};
return (
<Tag
bordered={false}
color={item.color}
onMouseDown={onPreventMouseDown}
closable={closable}
onClose={onClose}
icon={item.icon}
>
{label}
</Tag>
);
}
return (
<AntdSelect
options={options}
mode="multiple"
className="w-full"
tagRender={tagRender}
/>
);
}
export default Select;
邮件
SMTP,发送;发消息给邮件服务器上的 SMTP Service
POP3/IMAP 接收
SMTP,Simple Mail Transfer Protocal
POP,Post Office Protocol 邮局通讯协议
https://www.sohu.com/a/323407215_657867