I have the following scenarios:
"Alert when x falls below 50% of target value in 5 minutes"
"Alert when x falls below 10% of target value in 1 hour"
"Alert when x exceeds target value"
How can I achieve this using the PI AF API:
1. A time weighted query? Run it every few minutes? Sample/Link?
2. Analysis Rules?
Note: There's no requirement to actually provide a notification - though, maybe in the future. This is just for the purposes of a dashboard style display.