Returns
Returns the updated Metric object.Example
Parameters
string
required
The ID of the metric revision to exclude or include.
bool
required
True to exclude the revision from analytics. False to include it again.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Exclude or include a metric revision in analytics.
metric = galtea.metrics.set_analytics_exclusion(metric_id=metric_id, excluded=True)
print(f"Excluded from analytics at: {metric.excluded_from_analytics_at}")
# Restore it: its results go back into scores and coverage.
metric = galtea.metrics.set_analytics_exclusion(metric_id=metric_id, excluded=False)
True to exclude the revision from analytics. False to include it again.