API Example Use Cases
Monte Carlo's UI is designed to be fully accessible through API calls. Every piece of information presented in the UI can be retrieved programmatically, empowering customers to leverage Monte Carlo’s data for custom integrations, automations, and analysis directly within their own environments.
By inspecting any MC page you can examine the queries used to populate the page, along with the variables they require. See this Knowledge Based Article for more suggestions on how to find which queries you need.
Query/Mutation Examples
The following subsections are some examples of queries and mutations that we often see our customers leveraging:
- Querying Alert Data
- Query Monitor Configurations and Results
- Query Asset Data
- Query Lineage Data
- Mutations for Updating Monitors and Alerts
Please note that the sample queries only show a subset of the fields available for brevity. You can use our API reference guide or introspection to see all available fields.
Monte Carlo Public GitHub Repository
Explore our public GitHub repository for a collection of Python scripts showcasing practical examples of Monte Carlo API calls. These scripts are designed for generic use cases, such as:
- Bulk updating alert configurations across multiple data assets.
- Automating incident resolution workflows.
- Extracting metadata or insights for custom reporting.
Whether you're just getting started with the API or looking to streamline your data observability processes, these examples provide a solid foundation to build your solutions.
Download PyCarlo SDK
In order to use these scripts, you will need to download Pycarlo, our SDK package. See more information here.
Updated 3 days ago