Monitoring Runner avatar
Monitoring Runner
Try for free

No credit card required

View all Actors
Monitoring Runner

Monitoring Runner

apify/monitoring-runner
Try for free

No credit card required

The monitoring runner is a part of the Apify Monitoring Suite (apify/monitoring). See its readme for more information and how to use this.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "limit": 1000,
8  "checkersInput": {
9    "RESOURCE_STATS_CHECKER": {},
10    "DEDUPLICATION_CHECKER": {
11      "uniqueKey": "email"
12    },
13    "SCHEMA_VALIDATOR_CHECKER": {
14      "options": [
15        {
16          "resourceList": [
17            "id",
18            "id"
19          ],
20          "resourceRegex": "",
21          "minItemCount": 100,
22          "maxItemCount": 5000,
23          "validationSchema": "{ address: String, open: Boolean }"
24        }
25      ]
26    }
27  },
28  "reportersInput": {
29    "EMAIL_REPORTER": {
30      "sendMailInput": {
31        "to": "info@apify.com",
32        "subject": "My monitoring task report"
33      }
34    },
35    "SLACK_REPORTER": {
36      "slackInput": {
37        "token": "Your token",
38        "message": "Hey, look what I have done!",
39        "channel": "#monitoring"
40      }
41    },
42    "DASHBOARD_REPORTER": {
43      "notifyOnUpdate": true
44    }
45  }
46}
47EOF
48
49# Run the Actor using an HTTP API
50# See the full API reference at https://docs.apify.com/api/v2
51curl "https://api.apify.com/v2/acts/apify~monitoring-runner/runs?token=$API_TOKEN" \
52  -X POST \
53  -d @input.json \
54  -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
  • 37 monthly users
  • 15 stars
  • 97.5% runs succeeded
  • Created in Aug 2020
  • Modified about 1 month ago
Categories