1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "emailRecipients": [],
10 "actorNameInclude": [],
11 "taskNameInclude": [],
12 "emailSections": {
13 "showCostBreakdown": True,
14 "showSchemaChanges": True,
15 "showTrendAnalysis": True,
16 "showAnomalyDetection": True,
17 "showBuildChanges": True,
18 "showRunLinks": True,
19 "showFieldDiscovery": True,
20 },
21 "excludeFields": [],
22 "alerts": {
23 "changePercent": 5,
24 "yieldDropPercent": 20,
25 },
26}
27
28
29run = client.actor("hamza.alwan/actors-monitoring").call(run_input=run_input)
30
31
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36