This query returns a list of recent alerts when your AirVisual device's PM2.5 concentration was above a value you provide. Note: this query will only return future events after this Applet is created.API endpoint slug IQAir.recent_history_of_high_pm2_5_alerts Runtime method performQuery("IQAir.recent_history_of_high_pm2_5_alerts")
Query fields Label Threshold Slug threshold Required true Can have default value true
Ingredients Slug created_at Filter code IQAir.recentHistoryOfHighPm25Alerts.CreatedAt Type Date with time (ISO8601) Example 2020-07-08T04:17:06.000+05:00 Slug value Filter code IQAir.recentHistoryOfHighPm25Alerts.Value Type String Example 124 Slug node_name Filter code IQAir.recentHistoryOfHighPm25Alerts.DeviceName Type String Example Home Slug metric Filter code IQAir.recentHistoryOfHighPm25Alerts.Metric Type String Example AQI Slug threshold Filter code IQAir.recentHistoryOfHighPm25Alerts.Threshold Type String Example 50 Slug unit Filter code IQAir.recentHistoryOfHighPm25Alerts.Unit Type String Example ppm