Skip to content

Commit

Permalink
add_or_update_checkpoint with expectation_suite_ge_cloud_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dctalbot committed Dec 8, 2023
1 parent a0d74c1 commit 7709a3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docusaurus/docs/cloud/checkpoints/manage_checkpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ To learn more about Checkpoints, see [Checkpoint](../../terms/checkpoint.md).
"name": checkpoint_name,
"validations": [{
"expectation_suite_name": expectation_suite.expectation_suite_name,
"expectation_suite_ge_cloud_id": expectation_suite.ge_cloud_id,
"batch_request": {
"expectation_suite_ge_cloud_id": expectation_suite.ge_cloud_id,
"batch_request": {
"datasource_name": "<data_source_name>",
"data_asset_name": "<data_asset_name>",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,7 @@ def add_or_update_checkpoint( # noqa: PLR0913
notify_on: str | None = ...,
notify_with: str | list[str] | None = ...,
expectation_suite_id: str | None = ...,
expectation_suite_ge_cloud_id: str | None = ...,
default_validation_id: str | None = ...,
validator: Validator | None = ...,
checkpoint: None = ...,
Expand Down Expand Up @@ -1772,6 +1773,7 @@ def add_or_update_checkpoint( # noqa: PLR0913
notify_on: None = ...,
notify_with: None = ...,
expectation_suite_id: None = ...,
expectation_suite_ge_cloud_id: None = ...,
default_validation_id: None = ...,
validator: Validator | None = ...,
checkpoint: Checkpoint = ...,
Expand Down Expand Up @@ -1811,6 +1813,7 @@ def add_or_update_checkpoint( # noqa: PLR0913
notify_on: str | None = None,
notify_with: str | list[str] | None = None,
expectation_suite_id: str | None = None,
expectation_suite_ge_cloud_id: str | None = None,
default_validation_id: str | None = None,
validator: Validator | None = None,
checkpoint: Checkpoint | None = None,
Expand All @@ -1837,13 +1840,18 @@ def add_or_update_checkpoint( # noqa: PLR0913
notify_on: The notify on setting to use in generating this checkpoint. This is only used for SimpleCheckpoint configuration.
notify_with: The notify with setting to use in generating this checkpoint. This is only used for SimpleCheckpoint configuration.
expectation_suite_id: The expectation suite GE Cloud ID to use in generating this checkpoint.
expectation_suite_ge_cloud_id: An alias for `expectation_suite_id`.
default_validation_id: The default validation ID to use in generating this checkpoint.
validator: An existing validator used to generate a validations list.
checkpoint: An existing checkpoint you wish to persist.
Returns:
A new Checkpoint or an updated once (depending on whether or not it existed before this method call).
"""
expectation_suite_id = self._resolve_id_and_ge_cloud_id(
id=expectation_suite_id, ge_cloud_id=expectation_suite_ge_cloud_id
)

checkpoint = self._resolve_add_checkpoint_args(
name=name,
id=id,
Expand Down Expand Up @@ -2080,7 +2088,7 @@ def run_checkpoint( # noqa: PLR0913
run_time: The date/time of the run
result_format: One of several supported formatting directives for expectation validation results
ge_cloud_id: Great Expectations Cloud id for the checkpoint
expectation_suite_ge_cloud_id: Great Expectations Cloud id for the expectation suite
expectation_suite_ge_cloud_id: An alias for `expectation_suite_id`.
id: Great Expectations Cloud id for the checkpoint (preferred over `ge_cloud_id`)
expectation_suite_id: Great Expectations Cloud id for the expectation suite (preferred over `expectation_suite_ge_cloud_id`)
**kwargs: Additional kwargs to pass to the validation operator
Expand Down

0 comments on commit 7709a3d

Please sign in to comment.