Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 883 Bytes

README.md

File metadata and controls

52 lines (43 loc) · 883 Bytes

SMS-Webhook-api

Execute it in local env

make run

Webhook Post Request URL

Post :8080/{dep}/{groups}/sms

For grafana alert webhook usage

  • http://{sms-webhook-api}/v1/srep/grafana/sms

For argocd notification webhook usage

  • http://{sms-webhook-api}/v1/srep/argocd/sms

Where to store config

vi /config/dep_users.json
    {
      "depGroup": [
        {
          "sender": "xx",
          "appKey": "xx",
          "secretKey": "xx",
          "groupName": "{dep}",
          "users": [
            {
              "name": "rabbit",
              "phoneNo": "123",
              "email": "[email protected]"
            },
            {
              "name": "mouse",
              "phoneNo": "123",
              "email": "[email protected]"
            }
          ]
        }
      ]
    }