Monitoring avatar

Monitoring

Try for free

No credit card required

View all Actors
Monitoring

Monitoring

apify/monitoring
Try for free

No credit card required

This actor monitors your actors' statuses, validates their datasets' data, and displays useful information in an interactive dashboard. And if something happens, you'll get notified via email or Slack.

Do you want to learn more about this Actor?

Get a demo

You can access the Monitoring programmatically from your own Python applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9    "dashboardStatisticsFrequency": "Every day at noon",
10    "validationCheckOptions": """/* global ow */
11// The `ow` variable represents the ow validation variable. More at https://sindresorhus.com/ow/index.html
12 [
13    {
14        filter: \"us\", // matches all targets with \"us\" pattern
15        minItemCount: 5000,
16        schema: {
17            url: ow.string.url,
18            description: ow.string,
19        },
20    },
21    {
22        Ids: [\"A1b2C3d4\", \"B1A2d45\"], // matches 2 targets with specific IDs
23        schema: {
24            itemId: ow.number,
25            region: ow.string,
26        },
27    },
28]""",
29    "validationCheckFrequency": "Per run",
30    "duplicationCheckFrequency": "Per run",
31}
32
33# Run the Actor and wait for it to finish
34run = client.actor("apify/monitoring").call(run_input=run_input)
35
36# Fetch and print Actor results from the run's dataset (if there are any)
37print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
38for item in client.dataset(run["defaultDatasetId"]).iterate_items():
39    print(item)
40
41# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Monitoring API in Python

The Apify API client for Python is the official library that allows you to use Monitoring API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Apify
Actor metrics
  • 3 monthly users
  • 13 stars
  • 75.0% runs succeeded
  • Created in Jul 2020
  • Modified 3 months ago
Categories