Skip to content

Commit

Permalink
feat: [google-cloud-dataplex] added DataQualityResult.score, dimensio…
Browse files Browse the repository at this point in the history
…n_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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 17, 2023
1 parent c858b5a commit b2dade2
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.8.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.8.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,13 @@ class EventType(proto.Enum):
BigQuery set iam policy for policy tag.
ACCESS_POLICY_UPDATE (14):
Access policy update event.
GOVERNANCE_RULE_MATCHED_RESOURCES (15):
Number of resources matched with particular
Query.
GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS (16):
Rule processing exceeds the allowed limit.
GOVERNANCE_RULE_ERRORS (17):
Rule processing errors.
"""
EVENT_TYPE_UNSPECIFIED = 0
RESOURCE_IAM_POLICY_UPDATE = 1
Expand All @@ -627,6 +634,9 @@ class EventType(proto.Enum):
BIGQUERY_POLICY_TAG_DELETE = 12
BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13
ACCESS_POLICY_UPDATE = 14
GOVERNANCE_RULE_MATCHED_RESOURCES = 15
GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16
GOVERNANCE_RULE_ERRORS = 17

class Entity(proto.Message):
r"""Information about Entity resource that the log event is
Expand Down Expand Up @@ -844,6 +854,25 @@ class DataQualityResult(proto.Message):
key of the map is the name of the dimension. The value is
the bool value depicting whether the dimension result was
``pass`` or not.
score (float):
The table-level data quality score for the data scan job.
The data quality score ranges between [0, 100] (up to two
decimal points).
dimension_score (MutableMapping[str, float]):
The score of each dimension for data quality result. The key
of the map is the name of the dimension. The value is the
data quality score for the dimension.
The score ranges between [0, 100] (up to two decimal
points).
column_score (MutableMapping[str, float]):
The score of each column scanned in the data scan job. The
key of the map is the name of the column. The value is the
data quality score for the column.
The score ranges between [0, 100] (up to two decimal
points).
"""

row_count: int = proto.Field(
Expand All @@ -859,6 +888,20 @@ class DataQualityResult(proto.Message):
proto.BOOL,
number=3,
)
score: float = proto.Field(
proto.FLOAT,
number=4,
)
dimension_score: MutableMapping[str, float] = proto.MapField(
proto.STRING,
proto.FLOAT,
number=5,
)
column_score: MutableMapping[str, float] = proto.MapField(
proto.STRING,
proto.FLOAT,
number=6,
)

class DataProfileAppliedConfigs(proto.Message):
r"""Applied configs for data profile type data scan job.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-dataplex",
"version": "1.8.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit b2dade2

Please sign in to comment.