bigeye-cli 0.7.1__tar.gz → 0.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/PKG-INFO +2 -2
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/CLI_DOCS.md +1 -1
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/metric/metric_commands.py +20 -21
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/pyproject.toml +1 -1
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/LICENSE +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/__main__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/__version__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/bigconfig/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/bigconfig/bigconfig_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/bigconfig/bigconfig_options.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/catalog/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/catalog/catalog_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/collections/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/collections/collection_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/configure/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/configure/configure_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/deltas/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/deltas/deltas_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/enums.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/exceptions/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/exceptions/exceptions.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/functions.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/global_options.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/issues/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/issues/issue_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/lineage/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/lineage/lineage_commands.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/metric/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/model/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/model/cicd_conf.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/model/github_report.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/model/vendor_report.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/workspace/__init__.py +0 -0
- {bigeye_cli-0.7.1 → bigeye_cli-0.7.2}/bigeye_cli/workspace/workspace_commands.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bigeye-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: Bigeye CLI offers developer tools for maintaining your developer workspace.
|
|
5
5
|
Home-page: https://docs.bigeye.com/docs
|
|
6
6
|
License: Proprietary
|
|
@@ -18,7 +18,7 @@ Requires-Dist: rich (>=14.1.0,<15.0.0)
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# **Bigeye CLI**
|
|
21
|
-
Version: 0.7.
|
|
21
|
+
Version: 0.7.2
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
24
|
**Setting up your local/build environment**
|
|
@@ -16,6 +16,7 @@ from bigeye_cli.enums import MetricFileType
|
|
|
16
16
|
from bigeye_sdk.controller.metric_controller import MetricController
|
|
17
17
|
from bigeye_sdk.functions.metric_functions import get_file_name_for_metric
|
|
18
18
|
from bigeye_sdk.functions.bigconfig_functions import build_fq_name
|
|
19
|
+
from bigeye_sdk.generated.com.bigeye.models._generated_root import NamedSchedule
|
|
19
20
|
from bigeye_sdk.model.dbt_schema import (
|
|
20
21
|
SimpleDbtSchema,
|
|
21
22
|
relationships_test_names,
|
|
@@ -183,32 +184,30 @@ def upsert_from_path(
|
|
|
183
184
|
"Row creation time is managed in the metricConfiguration with the 'rctOverride' field.",
|
|
184
185
|
DeprecationWarning
|
|
185
186
|
)
|
|
187
|
+
named_schedules = {s.name.strip().lower(): s.id for s in client.get_named_schedule().named_schedules}
|
|
186
188
|
|
|
187
189
|
for m in mil.metrics:
|
|
188
190
|
mc = m.metric_configuration
|
|
191
|
+
try:
|
|
192
|
+
mc.id = 0
|
|
193
|
+
mc.warehouse_id = target_warehouse_id
|
|
194
|
+
mc.dataset_id = t_ix[m.metric_metadata.dataset_name].id
|
|
195
|
+
|
|
196
|
+
if mc.metric_schedule.named_schedule.id != 0:
|
|
197
|
+
if mc.metric_schedule.named_schedule.name.strip().lower() in named_schedules:
|
|
198
|
+
mc.metric_schedule.named_schedule = NamedSchedule(id=named_schedules.get(
|
|
199
|
+
mc.metric_schedule.named_schedule.name.strip().lower())
|
|
200
|
+
)
|
|
201
|
+
else:
|
|
202
|
+
log.info(f"Named schedule {mc.metric_schedule.named_schedule.name} "
|
|
203
|
+
f"not found in workspace {client.config.workspace_id}. Creating...")
|
|
204
|
+
mc.metric_schedule.named_schedule.id = client.create_named_schedule(
|
|
205
|
+
name=mc.metric_schedule.named_schedule.name, cron=mc.metric_schedule.named_schedule.cron).id
|
|
189
206
|
|
|
190
|
-
log.info(mc)
|
|
191
207
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
filters=mc.filters,
|
|
196
|
-
group_bys=mc.group_bys,
|
|
197
|
-
thresholds=mc.thresholds,
|
|
198
|
-
notification_channels=mc.notification_channels,
|
|
199
|
-
warehouse_id=target_warehouse_id,
|
|
200
|
-
dataset_id=t_ix[m.metric_metadata.dataset_name].id,
|
|
201
|
-
metric_type=mc.metric_type,
|
|
202
|
-
parameters=mc.parameters,
|
|
203
|
-
lookback=mc.lookback,
|
|
204
|
-
lookback_type=mc.lookback_type,
|
|
205
|
-
metric_creation_state=mc.metric_creation_state,
|
|
206
|
-
grain_seconds=mc.grain_seconds,
|
|
207
|
-
muted_until_epoch_seconds=mc.muted_until_epoch_seconds,
|
|
208
|
-
name=mc.name,
|
|
209
|
-
description=mc.description,
|
|
210
|
-
rct_override=mc.rct_override
|
|
211
|
-
)
|
|
208
|
+
log.info(f"Updated metric configuration: {mc}")
|
|
209
|
+
|
|
210
|
+
rmc = client.upsert_metric(metric_configuration=mc)
|
|
212
211
|
|
|
213
212
|
if update_collections:
|
|
214
213
|
for c in m.collections:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|