Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Variables for the Webhook Body #65

Open
quorn23 opened this issue Dec 8, 2024 · 0 comments
Open

[FR] Variables for the Webhook Body #65

quorn23 opened this issue Dec 8, 2024 · 0 comments

Comments

@quorn23
Copy link

quorn23 commented Dec 8, 2024

Would be great to have some variables available for the Webhooks.

iE DB Name, Backup Size, Duration etc. Basically what the "Executions" page provides.

This way we can have it dynamically filled out.

Thanks for consideration.

Edit to add an example:

  "embeds": [
    {
      "title": "✅ Database Backup Successful",
      "description": "The database backup has completed successfully.",
      "color": 3066993,
      "fields": [
        {
          "name": "Database Name",
          "value": "$databasename",
          "inline": true
        },
        {
          "name": "Backup Size",
          "value": "$size",
          "inline": true
        },
        {
          "name": "Duration",
          "value": "$duration",
          "inline": true
        }
      ],
      "footer": {
        "text": "Backup System",
        "icon_url": "https://example.com/img/postgres.png"
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant