Adds a custom configuration for monitoring.
Input Parameters | Type | Default | Description |
---|---|---|---|
config_info | dict | None | Monitoring config info for an entire org or a project or a model. |
project_id | Optional [str] | None | The unique identifier for the project. |
model_id | Optional [str] | None | The unique identifier for the model. |
Info
add_monitoring_config can be applied at the model, project, or organization level.
- If project_id and model_id are specified, the configuration will be applied at the model level.
- If project_id is specified but model_id is not, the configuration will be applied at the project level.
- If neither project_id nor model_id are specified, the configuration will be applied at the organization level.
PROJECT_ID = 'example_project'
MODEL_ID = 'example_model'
monitoring_config = {
'min_bin_value': 3600,
'time_ranges': ['Day', 'Week', 'Month', 'Quarter', 'Year'],
'default_time_range': 7200
}
client.add_monitoring_config(
config_info=monitoring_config,
project_id=PROJECT_ID,
model_id=MODEL_ID
)