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

feat(discord_gcp_alerts): include policy name in alert title #431

Merged
merged 3 commits into from
May 3, 2023

Conversation

felangel
Copy link
Contributor

@felangel felangel commented May 3, 2023

Description

  • feat(discord_gcp_alerts): include policy name in alert title

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel requested review from eseidel and bryanoltman May 3, 2023 15:09
@felangel felangel self-assigned this May 3, 2023
@felangel felangel enabled auto-merge (squash) May 3, 2023 15:14
final discordPayload = {
'embeds': [
{
'title': 'GCP Alert',
'title': '🚨 $policyName 🚨',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol. Much more descriptive!

@@ -94,7 +94,7 @@ void main() {
body: json.encode({
'embeds': [
{
'title': 'GCP Alert',
'title': '🚨 projects/12345/alertPolicies/12345 🚨',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this representative of what the titles will look like?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that was just the sample all of our policy names are much nicer like "Artifact Proxy Missing Artifact"

@felangel felangel merged commit 1cb8154 into main May 3, 2023
@felangel felangel deleted the feat/discord-gcp-alerts-policy-name branch May 3, 2023 15:23
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

Successfully merging this pull request may close these issues.

2 participants