Add per_domain flag to report config
This commit is contained in:
parent
0bf67f6107
commit
e03c7bc434
3 changed files with 32 additions and 1 deletions
|
@ -133,6 +133,9 @@ def _generate_interval(interval: str, domain: Optional[str] = None) -> None:
|
|||
if "{bucket}" not in definition["query"] or definition.get("global"):
|
||||
# Global reports are generated separately
|
||||
continue
|
||||
if domain and not definition.get("per_domain", True):
|
||||
# Skip reports marked as not applicable to per-domain runs
|
||||
continue
|
||||
|
||||
name = definition["name"]
|
||||
query = definition["query"].replace("{bucket}", bucket)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue