DataDog Logs Monitor fails to send alerts for all errors within evaluation window - notifications

Would like to get some help with DataDog failing to send alerts for all errors within a specified evaluation window.
Given the above DataDog Logs Monitor Edit screen, have specified a 5mins evaluation window for alerts to be sent. However, an alert is sent only for the first alert sent within the 5 minute window. Any additional errors triggered within the same window are not sending additional alerts.
Do you guys know if it's default DataDog behaviour or this can be changed somewhere.
Thanks

Related

Colab audio alarm or pop up notification to remind the user to click captcha button when popped up, prevent inactivity

From March 2021 google colab has added a captcha that randomly pops up after some time. So it is difficult or not possible to programmatically prevent Google Colab from disconnecting on a timeout. So there's no option other than opening the tab and clicking the captcha button. I often run model which take more training time and sometimes miss going back to it in 90 mins. The captcha can be popped up even while the training is not completed and soon terminates after a few minutes if not clicked.
Are there any solutions so that I can at least get an audio notification when I get a captcha in colab or if not pop-up message in browser or OS so that I can know about the inactivity?
I had found some ways get notified at some target lines in the notebook, say after training is completed. One is the colab browser notification feature, can be checked to true in settings. Other one is an audio solution, you just add these 2 lines of code found here to get an alarm when the code executes at any line in a cell.
What I am looking for is an alarm or pop up message in case of captcha.
This is probably a half-correct answer, but here's my shot at solving this
This article discusses how to bypass Captcha's, and has some code that clicks the check box if a captcha is found. I think it could be modified to have a sound alert instead.
However, Captchas were made to counter these sort of tools, plus I'm not sure about the legality implications etc, so I wouldn't recommend it.
The use of the below js increased the time before google sent a recaptcha for me. Btw, I set this as a bookmark, to call it whenever I need to. Executing the js bit in the console should be equivalent.
javascript:void(setInterval(function(){ console.log("Connect pushed"); document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click(); },60000))

Error detection in AS400

I now basics of VBA and use it to send or get data in AS 400, but I am not so advanced to understand documentation of IBM "Host Access Class Library". I want to know how can I detect error in AS400 for now I am using script below or skip errors by self, outside of running macro.
Sub check_error()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLPS.wait 100
autECLSession.autECLPS.SendKeys "[reset]"
End Sub
When error appear I cannot use some commands like autECLOIA.WaitForInputReady, So instead I use 'wait 100' in my 'check_error' but it not always work. So how can I detect error, is there any command to do that? Or a method to handle it?
This is a massive topic that, unfortunately, depends on the application. There are so many ways that errors can be presented to the user on a 5250 display that one method can not fit all circumstances. It might be best to just ask us about your specific use case rather than all use cases.
However, let me give you a high level view of some of the ways errors can be presented.
External Message Queue
This is when the program sends a status message to the *EXT message Queue. These messages are displayed on the last line of the display. They do not appear in the job log, and are typically not used for exceptions, but they also do not end the program.
Program Message Queue
An application can define a message subfile which is a record format that displays on the screen between lines 1 and 24 on an 80x24 screen, or between lines 1 and 27 on a 132x27 screen. Where it appears, and the number of display lines it uses are defined in the display file DDS. The appearance of a message in this message subfile may be the only indication of an error, but it may contain informational messages as well. You are going to have to determine which it is by the text of the message. In conjunction with the message, a field may also be reverse imaged, or colored in a way that indicates an error, but the keyboard is not locked, and there is no audible indication that there is a problem.
DDS Error Messages
DDS error messages can be defined that lock the keyboard, reverse image the field, and display an error message. These messages can be displayed on any line as well, which is configurable in the DDS. In addition to the typical display lines, there is an addition line: 25 on a 80x24 screen, and 28 on a 132x27 screen, that is accessible to these messages.
Custom Error Messages
And sometimes an error is indicated in a completely custom way, for example by populating a text field somewhere on the screen.
The point is that you need to know your application, and how it provides user feedback, and without that knowledge, we can't help you.

Handling alert/dialogue box when you are not sure about their time of occurrence

Is there a way to handle dialogue box that are displayed due to some background check the system keeps doing.
Ex: I have a async job that is running and on its completion it throws an alert that its done and it blocks the rest of the window until I click ok on it, because of this my rest of the tests starts to fail.
Looking for something like if you don’t find the element you are looking for , for more than 3 secs then check if some alert box is present.

Where should the text of the network command output appear?

I recently added the ability for a FBP runtime that I am building to send the network protocol commands output and error. When using app.flowhub.io for the client, the error message shows up in a message window but I don't see the message that accompanies the output command when it is sent. The websocket frame sent to the noflo ui from my runtime looks like:
{"protocol":"network","payload":{"type":"message","message":"Hello"},"command":"output"}
Where should I expect to see the message text for an output command?
The network output and errors should show in the right hand panel, under the runtime connection info. You may need to press the eye icon to open it.
However I believe only strings are supported.

How to handle popup messages thrown from web applications in vb.net?

I am developing a tool to automate testing of a web application. I want to handle the popup messages thrown in error scenarios. The problem am facing is after a button click a popup message is thrown, but only after a response is given to the message box(ie clicking on any buttons in the message box) the execution continues, till then the web browser is busy waiting for a response. Please suggest.
You could have your application inject some javascript into the page that overrides the default alert/confirm function. This would allow you to run code before the alert is shown or completely override the functionality so that the alert isn't shown at all.
See this custom alert demonstration for an easy example of how to override the default alert function.