How to make alert fire only for subscription and not for resources under it? - azure-monitoring

I had created an alert with a specific subscription as 'scope'. The condition of the alert was
Whenever the Activity Log has an event with Category='Administrative', Signal name='Create role assignment (roleAssignments)'
But the alert was getting fired even when a new role was getting added to any resources under the subscription. I wanted it to fire specifically when a new role is added to the subscription exclusively , how to make it happen?

Related

ArrowDB - how to get event listener of a chat sent to group?

I'm developing a real time chat app using Titanium Appcelerator. I have everything working with ArrowDB and one user can send another user a message through a group.
https://docs.appcelerator.com/arrowdb/latest/#!/api/Chats
However there doesn't seem to be a method or listener to identify when a new message has been sent to the group.
What I'd like to see is when the other user is typing, and as soon as the message is sent it bubbles up on the recipients chat window. Exactly like how iMessage works.
The only way I can pull new messages from the group to the local users device is to have a refresh button or to use a setInterval with a function call to refresh the messages.
obviously this is not a great way to handle the situation as with a few hundred users every month this would make for hundreds of thousands of api calls and probably not good for device performance.
Does anyone have any ideas how to get real time chat working? Is there a method or event listener I am missing that isn't document?
Push notifications only work while the app is in the background, so this is not an option unfortunately.

google-calendar API inform of event reminder

I need to integrate with google calendar, I have the basic stuff with API happening, but now realised that a reminder only informs via email, SMS
So the google api "push notification", POSTs to a URL wont work with reminders...
So how can I inform in my app that a reminder is triggered, is there a work around?, checking email is not very scalable. And polling the google calendar server, is not scalable either?, I will have to poll each user account on my solution?
How to notify of reminder with API?, thanks
[what are "pop ups" as other notifier method on above link for google-calendar?]
Regarding your question about popup, it is stated that reminders are sent via a UI popup.
EventReminder[] reminderOverrides = new EventReminder[] {
new EventReminder().setMethod("email").setMinutes(24 * 60),
new EventReminder().setMethod("popup").setMinutes(10),
};
You may refer with this SO thread: How to Create a Reminder Notification wherein you need AlarmManager to schedule your notification at a regular bases (daily, weekly,..) and a Service to launch your notification when the AlarmManager goes off.

Mark Liferay Notification as Read programmatically

I want the notification to be marked as read after the user Approves or Rejects the Notification. Here on click of approve or reject I am calling an action url. The method is called Successfully but the notification is still displayed as not read. The Notification screen is as below:
Please Help. Thanks in Advance.

Interactive Notification issue - automatically clears all notification while action on single notification

I have implemented interactive notification using two actions. When app is not running, and i get 4-5 notifications on lock screen, then if I submit any one action, it clears all notifications automatically, this should not be done. I have just called one webservice on that action. Not clearing all notifications manually, still having same issue.
Video Link https://www.dropbox.com/s/fszdsgnrn7rfb2h/Voicee_issue.MOV?dl=0
You can find my code here :
https://www.dropbox.com/s/5gp5tzcryhlwtyk/appdelegate.rtf?dl=0

Creating a Metro app which updates itself Periodically and not placed in lock screen

As mentioned here:
It seems that a background task will only run using a TimeTrigger if the user has placed your app on the lock screen.
So, how can I create a Calendar like app without background task? I mean an app which:
updates its tile Periodically (e.g. once a day)?
updates its tile even when it's not running?
You should create a maintenance trigger. These triggers will only fire once every two hours and will only fire if the machine is on AC power. When your trigger runs, you could look for upcoming appointments and create scheduled toast notifications.
var scheduledToast = new Windows.UI.Notifications.ScheduledToastNotification(toastXml, startTime);
You could update the tile as well with a ScheduledTileNotifcation() call. Unfortunately, I don't think there is a way to remove a notification so if the user deletes an appointment prior to the scheduled notification, I don't think you can remove it. I'm looking deeper into that and will comment here if I find an answer.
However, I would think for a calendar app you would want it to use a TimeTrigger and be placed on the lock screen since I would want to receive appointment reminders at any time and regardless of being plugged in or not.
Is there a reason you do not want to use the TimeTrigger?
You can schedule periodic updates of an application's tile without being on the start screen. See this article for Notification Delivery methods. Then, once the app is launched, you could update the calendar in general.