Class WeChatConfig

    • Method Detail

      • getAgentID

        public String getAgentID()
        agentID defines the application agent ID within WeChat Work. This identifies which WeChat Work application will send the notifications.
      • setAgentID

        public void setAgentID​(String agentID)
        agentID defines the application agent ID within WeChat Work. This identifies which WeChat Work application will send the notifications.
      • getApiSecret

        public SecretKeySelector getApiSecret()
        WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
      • setApiSecret

        public void setApiSecret​(SecretKeySelector apiSecret)
        WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
      • getApiURL

        public String getApiURL()
        apiURL defines the WeChat API URL. When not specified, defaults to the standard WeChat Work API endpoint.
      • setApiURL

        public void setApiURL​(String apiURL)
        apiURL defines the WeChat API URL. When not specified, defaults to the standard WeChat Work API endpoint.
      • getCorpID

        public String getCorpID()
        corpID defines the corp id for authentication. This is the unique identifier for your WeChat Work organization.
      • setCorpID

        public void setCorpID​(String corpID)
        corpID defines the corp id for authentication. This is the unique identifier for your WeChat Work organization.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
      • getMessage

        public String getMessage()
        message defines the API request data as defined by the WeChat API. This contains the actual notification content to be sent.
      • setMessage

        public void setMessage​(String message)
        message defines the API request data as defined by the WeChat API. This contains the actual notification content to be sent.
      • getMessageType

        public String getMessageType()
        messageType defines the type of message to send. Valid values include "text", "markdown", and other WeChat Work supported message types.
      • setMessageType

        public void setMessageType​(String messageType)
        messageType defines the type of message to send. Valid values include "text", "markdown", and other WeChat Work supported message types.
      • getSendResolved

        public Boolean getSendResolved()
        sendResolved defines whether or not to notify about resolved alerts.
      • setSendResolved

        public void setSendResolved​(Boolean sendResolved)
        sendResolved defines whether or not to notify about resolved alerts.
      • getToParty

        public String getToParty()
        toParty defines the target department(s) to receive the notification. Can be a single department ID or multiple department IDs separated by '|'.
      • setToParty

        public void setToParty​(String toParty)
        toParty defines the target department(s) to receive the notification. Can be a single department ID or multiple department IDs separated by '|'.
      • getToTag

        public String getToTag()
        toTag defines the target tag(s) to receive the notification. Can be a single tag ID or multiple tag IDs separated by '|'.
      • setToTag

        public void setToTag​(String toTag)
        toTag defines the target tag(s) to receive the notification. Can be a single tag ID or multiple tag IDs separated by '|'.
      • getToUser

        public String getToUser()
        toUser defines the target user(s) to receive the notification. Can be a single user ID or multiple user IDs separated by '|'.
      • setToUser

        public void setToUser​(String toUser)
        toUser defines the target user(s) to receive the notification. Can be a single user ID or multiple user IDs separated by '|'.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)