How to configure separate Grafana email alerts for Firing and Resolved - grafana

I have configured Grafana alerts (version 9.0.6). Each alert has a label called "group". In the notification policies, I have switched on "Override grouping" option and set the "Group by" to "group". Now, if two "sites" (the query in the alert groups data by a tag called "site") raises alerts together in which site A is in "Firing" state and the site B has returned to "Resolved" state, I get one email containing both sites. I'd like to receive two separate emails for each group, one for those that are firing and the other for thise that have been resolved.
How do I do that?

Related

How to customize alert schemas for Azure Logic Apps

I have this Logic App that usually runs once the same time everyday. I need an email to be sent to a set of recipients every time the app runs. For this, I created an action group and added the email addresses of the recipients with the Notification type Email/SMS/Push/Voice. Here, there's an option called "Enable the common alert schema."
I then saved that Action Group. Then I created an alert rule for the condition "Triggers Fired" so that the alert would be activated whenever the trigger is fired, and added that action group to this alert rule.
I am now getting the alert as an email, but I need only a set of information to be received when the trigger fires. When I Enable the common alert schema option, it sends an alert with a template. When I Disable it, I still cannot edit the alert schema there. How should I edit the alert schema to contain only the information I need?
Using logic app compose action you can customize alert schema.
I have reproduced issue from my side and below are steps I followed,
Created Logic app as shown below,
Configured this logic app to an action group.
In logic app, Using compose action formed a customized schema as shown below,
Without compose action the schema is in below format,
With Compose action the schema is in below format,

Is there way to further customise notification subscriptions?

Good morning.
I have a client who has a very specific notification that they want sent out.
There is a custom multi-value control on their Feature WIT that allows the user to select one or more values (that correspond with internal team names). They want a notification to be sent to a custom email address of the team that has been selected. See screenshots below.
The problem is that when creating the notification subscription, the only filter option available for that field is "changes" and I'm unable to get the value that has been selected.
Essentially I'd like to be able to do something like: "If 'ContributingTeam' = [ABC] then [send email to custom address]" but I can only do "If 'ContributingTeam' changes then [send email to custom address] but this doesn't help because I need to send the notification to a different email address depending on which team is selected.
I'm not able to reproduce your issue on my side, the drop down seems normal for the field used for Multivalue control:
Please check whether you choose the correct field, and check what type you used for the field. Also, try to create a new field and try again.

Prevent Dynamic CRM Workflow from sending an email to a Disabled User

I am using Microsoft Dynamic CRM Online and have a workflow issue. When the status of a case is modified, there is a workflow that kicks off to send members of the case team an e-mail. The problem is, it is sending the message to members of the team that have been recently disabled.
Example: User Jack Bauer is added to Case FOX24. One month later, Jack's account is marked as disabled. The following week, the status of the case is updated and a workflow is triggered to send team members an e-mail.
Is there a way inside a workflow to prevent the email from being sent if the user is disabled?
So far, I haven't found anyway to stop the email.
I solved my problem by creating a child workflow to remove any disabled users from the case specific attributes before the email is sent. The new process contains the nine checks for disabled users as well as an Update Record action for each check to {clear} the value of the associated attribute. It is marked as "Run on demand" so users can clean the Case record anytime they desire.
The child workflow will be called once per email in the parent workflow because they are sent using different timeout periods. Even if a user is disabled in the week or so between the first and second message, they shouldn't receive the messages.
Add a condition into the workflow which checks the status of the record in the 'To' field of the email.

VSTS: Query based on observing user

I am working on some simple queries for Visual Studio Team Services. Is there a way to change the query result based on which user views it?
I know about the #Me operator but for this specific case I want to look for unassigned work items and filter them by current user.
There are 3 backlogs, and user A,B and C. User A is responsible to assign tasks for backlog1, user B for backlog2. I want to have a single dashboard with a query showing the unassigned task. So if user A opens the dashboard it should show all unassigned tasks for backlog1 and for user B all tasks from backlog2.
Microsoft has recently added the #Me token to all fields related to users.
This enables creating queries for the observing user - and in extension - personalised queries on the dashboard.
Additional info and the related docs can be found here

Using SmartSheet API for "Smarter" email notifications

Currently in SmartSheet, users are able to assign email notifications to users, which are triggered when "Anything Changes" or a pre-specified column changes in a sheet.
While this is useful, there is a common business case where a sheet administrator needs to notify users based on the contents of a cell. For example, if the drop down option in Column A is set to Option A, User A gets notified, or if set to Option B, User B gets notified, etc.
Is this sort of conditional notification logic possible in the SmartSheet API v2.0?
The Smartsheet API doesn't currently support creating or managing alerts (i.e., notifications and reminders). So, to achieve the type of scenario you've described, you'd need to create an integration that:
is able to know when the specified changes occur in the Sheet (ex: Column A is set to Option A for any row)
contains the logic to determine which user(s) to email (ex: if Column A is set to Option A for any row, then email User A)
sends the email(s)
At a high level, you have a couple of different options for accomplishing what I've outlined above:
Poll Smartsheet periodically (ex: hourly) to determine if the Sheet has changed (Get Sheet Version) and if it has changed, evaluate sheet data (Get Sheet); if data meets your criteria for sending email(s), then send email(s).
Alternatively, you could use "Smartsheet Webhooks" such that your integration will be notified when changes occur in the Sheet, then react to such notifications by subsequently using the API to evaluate sheet data (Get Sheet or Get Row); if data meets your criteria for sending email(s), then send email(s). Smartsheet Webhooks are currently in Private Beta -- if you'd like to be considered for the private beta, you can apply by completing this web form.