prefect_monte_carlo.utilities
Module to define Monte Carlo utility functions.
Classes
Functions
rule_uuid_from_name
async
Get the UUID of a Monte Carlo monitor rule from its name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rule_name |
str
|
Name of the Monte Carlo monitor rule. |
required |
monte_carlo_credentials |
MonteCarloCredentials
|
Credentials to authenticate with the Monte Carlo GraphQL API. |
required |
Source code in prefect_monte_carlo/utilities.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
validate_tags
Validate that Monte Carlo lineage node tags are in the correct format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tags |
List[Dict[str, str]]
|
List of user-defined tags to validate. |
required |
Raises:
Type | Description |
---|---|
MonteCarloIncorrectTagsFormatException
|
If the tags are not well-formatted. |
Source code in prefect_monte_carlo/utilities.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|