Documentation
¶
Index ¶
- type Client
- type FeiShu
- func (receiver *FeiShu) CloseCli(alertChannelName string)
- func (receiver *FeiShu) GetCli(alertChannelName string) (*lark.Client, error)
- func (receiver *FeiShu) Init(alertChannelName, appid, appSecret string)
- func (receiver *FeiShu) Notify(ctx context.Context, notifyReq *types.NotifyReq) (result *types.NotifySendResult, err error)
- func (receiver *FeiShu) UpdateCli(alertChannelName, appid, appSecret string)
- type FeiShuContent
- type FeishuCard
- type FeishuCardDataContent
- type FeishuCardLink
- type Feishuer
- type Notifyer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeiShu ¶
type FeiShu struct {
// contains filtered or unexported fields
}
type FeiShuContent ¶
type FeiShuContent struct {
Type string `json:"type"`
Data FeishuCardDataContent `json:"data"`
}
FeiShuContent 飞书卡片模版request
type FeishuCard ¶
type FeishuCard struct {
// contains filtered or unexported fields
}
func SendCard ¶
func SendCard(cli *lark.Client) *FeishuCard
type FeishuCardDataContent ¶
type FeishuCardDataContent struct {
TemplateId string `json:"template_id" yaml:"template_id"`
TemplateNersionName string `json:"template_version_name" yaml:"template_version_name"`
TemplateVariable map[string]any `json:"template_variable" yaml:"template_variable"`
}
func RenderingAlertContent ¶
func RenderingAlertContent() *FeishuCardDataContent
func (*FeishuCardDataContent) Build ¶
func (receiver *FeishuCardDataContent) Build(ctx context.Context, alert any, alertTpl string) (*FeiShuContent, error)
type FeishuCardLink ¶
Click to show internal directories.
Click to hide internal directories.