Class DingTalkConf

  • All Implemented Interfaces:

    
    public class DingTalkConf
    
                        
    Since:

    2023-02-21

    Author:

    trydofor

    • Constructor Detail

      • DingTalkConf

        DingTalkConf()
    • Method Detail

      • getDryrun

         String getDryrun()

        the dryrun prefix of subject. merge if null, `empty` means disable.

      • setDryrun

         void setDryrun(String dryrun)

        the dryrun prefix of subject. merge if null, `empty` means disable.

      • setDigestSecret

         void setDigestSecret(String digestSecret)

        secret of message digest, `empty` means disable.

      • getAccessToken

         String getAccessToken()

        the DingTalk access_token used to send the alert, `empty` means disable.

      • setAccessToken

         void setAccessToken(String accessToken)

        the DingTalk access_token used to send the alert, `empty` means disable.

      • getNoticeKeyword

         String getNoticeKeyword()

        custom keywords, to successfully send message must contain at least 1 keyword.

      • setNoticeKeyword

         void setNoticeKeyword(String noticeKeyword)

        custom keywords, to successfully send message must contain at least 1 keyword.

      • setMsgType

         void setMsgType(String msgType)

        message type, support `text`|`markdown`

      • getNoticeMobiles

         Map<String, String> getNoticeMobiles()

        notified person and his phone number, non-member's phone number will be desensitized. It is automatically added to the text eg. @155xxxx

      • setNoticeMobiles

         void setNoticeMobiles(Map<String, String> noticeMobiles)

        notified person and his phone number, non-member's phone number will be desensitized. It is automatically added to the text eg. @155xxxx

      • merge

         void merge(DingTalkConf that)

        if this.property is invalid, then use that.property. except for 'noticeMobiles' which merge value only if key matches.