Skip to content

Commit b2dade2

Browse files
feat: [google-cloud-dataplex] added DataQualityResult.score, dimension_score, column_score (#12032)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: added DataQualityResult.score, dimension_score, column_score feat: new event types GOVERNANCE_RULE_MATCHED_RESOURCES, GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS, GOVERNANCE_RULE_ERRORS END_COMMIT_OVERRIDE chore: updated service and timeout settings PiperOrigin-RevId: 583444130 Source-Link: googleapis/googleapis@2f91fd5 Source-Link: googleapis/googleapis-gen@84ec5be Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiI4NGVjNWJlOTg4MTlmMmI3ZTRiOGJiYWNhZGUyNjhlZjUwMGJmN2YwIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c858b5a commit b2dade2

File tree

4 files changed

+46
-3
lines changed

4 files changed

+46
-3
lines changed

packages/google-cloud-dataplex/google/cloud/dataplex/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/logs.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,13 @@ class EventType(proto.Enum):
613613
BigQuery set iam policy for policy tag.
614614
ACCESS_POLICY_UPDATE (14):
615615
Access policy update event.
616+
GOVERNANCE_RULE_MATCHED_RESOURCES (15):
617+
Number of resources matched with particular
618+
Query.
619+
GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS (16):
620+
Rule processing exceeds the allowed limit.
621+
GOVERNANCE_RULE_ERRORS (17):
622+
Rule processing errors.
616623
"""
617624
EVENT_TYPE_UNSPECIFIED = 0
618625
RESOURCE_IAM_POLICY_UPDATE = 1
@@ -627,6 +634,9 @@ class EventType(proto.Enum):
627634
BIGQUERY_POLICY_TAG_DELETE = 12
628635
BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13
629636
ACCESS_POLICY_UPDATE = 14
637+
GOVERNANCE_RULE_MATCHED_RESOURCES = 15
638+
GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16
639+
GOVERNANCE_RULE_ERRORS = 17
630640

631641
class Entity(proto.Message):
632642
r"""Information about Entity resource that the log event is
@@ -844,6 +854,25 @@ class DataQualityResult(proto.Message):
844854
key of the map is the name of the dimension. The value is
845855
the bool value depicting whether the dimension result was
846856
``pass`` or not.
857+
score (float):
858+
The table-level data quality score for the data scan job.
859+
860+
The data quality score ranges between [0, 100] (up to two
861+
decimal points).
862+
dimension_score (MutableMapping[str, float]):
863+
The score of each dimension for data quality result. The key
864+
of the map is the name of the dimension. The value is the
865+
data quality score for the dimension.
866+
867+
The score ranges between [0, 100] (up to two decimal
868+
points).
869+
column_score (MutableMapping[str, float]):
870+
The score of each column scanned in the data scan job. The
871+
key of the map is the name of the column. The value is the
872+
data quality score for the column.
873+
874+
The score ranges between [0, 100] (up to two decimal
875+
points).
847876
"""
848877

849878
row_count: int = proto.Field(
@@ -859,6 +888,20 @@ class DataQualityResult(proto.Message):
859888
proto.BOOL,
860889
number=3,
861890
)
891+
score: float = proto.Field(
892+
proto.FLOAT,
893+
number=4,
894+
)
895+
dimension_score: MutableMapping[str, float] = proto.MapField(
896+
proto.STRING,
897+
proto.FLOAT,
898+
number=5,
899+
)
900+
column_score: MutableMapping[str, float] = proto.MapField(
901+
proto.STRING,
902+
proto.FLOAT,
903+
number=6,
904+
)
862905

863906
class DataProfileAppliedConfigs(proto.Message):
864907
r"""Applied configs for data profile type data scan job.

packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_google.cloud.dataplex.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dataplex",
11-
"version": "1.8.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)