wecom

command
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

WeCom plugin

Delivers each alert to a WeCom (WeChat Work) group through a group robot.

Kind notification_channel, ability read, outbound hosts: qyapi.weixin.qq.com.

Config

Plugin-wide, non-secret, passed at install with --config:

{}

This plugin takes no config.

Channel target

The channel's target field holds the robot webhook URL (https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=...). It is sealed like any channel credential and sent per call. The plugin never stores or logs it.

levelrail-cli plugins install --manifest plugin.yaml --signature plugin.sig --config config.json --approve read
levelrail-cli channels create --name ops-wecom --kind plugin:wecom --notify-url 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=KEY'

Behaviour

  • 401 and 403 are permanent ("authentication failed").
  • 429 waits out a short Retry-After and retries, otherwise reports retryable.
  • 5xx and network errors retry twice, then report retryable.
  • Other 4xx are permanent and the response excerpt is shown with the credential redacted.

Build and sign locally with scripts/plugins-build.sh all wecom. Tests: go test ./plugins/wecom.

Documentation

Overview

Command wecom delivers alerts to a WeCom (WeChat Work) group through a group robot webhook.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL