System aspect types reference

This document provides a schema reference for the most commonly used built-in system aspect types in Knowledge Catalog (formerly Dataplex Universal Catalog). System aspect types are predefined templates for applying standardized metadata, called aspects, to your catalog entries. Use this reference to find the schemas and fields required when you apply system aspect types to entries using the Dataplex API. For a categorical list of all other built-in aspect types, see the Other built-in aspect types section of this document.

How to use system aspect types

When you reference system aspect types using the Dataplex API, specify the following values:

  • Project: dataplex-types
  • Location: global

For example, the full resource name for the schema aspect type is projects/dataplex-types/locations/global/aspectTypes/schema.

For a conceptual overview of aspect types and how they differ from custom aspect types, see About aspects and aspect types. To apply aspects to entries and manage custom aspect types, see Manage aspects and enrich metadata.

At a glance

The following table lists the prominent system aspect types covered in this reference:

Aspect type ID Description Category
schema The tabular schema of a data asset. Core Metadata
storage-bucket Storage-specific metadata for Cloud Storage buckets. Core Metadata
bigquery-table BigQuery-specific metadata for tables. Core Metadata
generic Generic entry resource metadata. Core Metadata
data-quality-scorecard Data quality details and scores for a data asset. Data Quality and Profiling
data-profile Data profile statistics and metrics. Data Quality and Profiling
graph-profile Profile statistics for graph data. Data Quality and Profiling
contacts Business contacts and stewards for an entry. Governance and Context
overview Rich text overview and business context. Governance and Context
descriptions Descriptions for entries and fields. Governance and Context
data-contract Data contract and SLA information. Governance and Context
refresh-cadence Refresh schedule and cadence metadata. Governance and Context
queries Queries associated with an entry. Governance and Context

Core metadata

The following aspect types represent fundamental schema and storage properties.

schema

Represents the structure of the data contained by the entry.

Aspect type ID: schema

Fields

Field Type Description
fields Array of fieldsItem objects Fields for the Schema
primaryKey primaryKeyObject Defines the primary key for the table, if present.
foreignKeys Array of foreignKeysItem objects Defines the foreign key constraints for the table.
checkConstraints Array of checkConstraintsItem objects Check constraints applied to the schema.
uniqueConstraints Array of uniqueConstraintsItem objects Unique constraints applied to the schema.

fieldsItem object

Field Type Description
name String Required. Name of the field.
description String Description of the field.
dataType String Required. Data type of the field.
metadataType Enum Required. Metadata type of the field. Valid values: BOOLEAN, NUMBER, STRING, BYTES, DATETIME, TIMESTAMP, GEOSPATIAL, STRUCT, RANGE, OTHER.
mode Enum Describes the mode of the field. Valid values: NULLABLE, REPEATED, REQUIRED.
defaultValue String Default value of the field.
annotations Map of String to String Annotations for the field.
semantic String Semantic type of the field, such as DIMENSION, MEASURE, METADATA, or OTHER.
rangeElementType String The element type for a RANGE metadata type, such as DATE, DATETIME, or TIMESTAMP.
synonyms Array of Strings Synonyms of the field.
fields Array of fieldsItem objects Sub-fields of this field. Uses the same fieldsItem structure recursively.

primaryKeyObject object

Field Type Description
fields Array of Strings Required. Field (column) names forming the primary key. The order in this array defines the key's ordinal positions for composite keys.
enforced Bool Whether or not the primary key constraint is being enforced.

foreignKeysItem object

Field Type Description
name String Name of the foreign key constraint.
description String Description of the foreign key.
referencedTable String Required. Resource name of the table this constraint references (for example, projects/PROJECT_ID/locations/LOCATION_ID/entryGroups/ENTRY_GROUP_ID/entries/ENTRY_ID).
fieldMappings Array of fieldMappingsItem objects Required. Mappings between local fields (columns) and the fields (columns) they reference in the foreign table.
enforced Bool Whether or not the foreign key constraint is being enforced.
onUpdateAction String The action the database takes when an UPDATE operation affects the key in the referenced table that is also present in the constrained table. Suggested values include NO_ACTION, RESTRICT, CASCADE, SET_NULL, and SET_DEFAULT.
onDeleteAction String The action the database takes when a DELETE operation affects the key in the referenced table that is also present in the constrained table. Suggested values include NO_ACTION, RESTRICT, CASCADE, SET_NULL, and SET_DEFAULT.

checkConstraintsItem object

Field Type Description
name String Name of the check constraint.
condition String Required. The condition that each row must satisfy, with literals redacted (for example, age > <REDACTED>).
enforced Bool Whether or not the check constraint is being enforced.

uniqueConstraintsItem object

Field Type Description
name String Name of the unique constraint.
fields Array of Strings Required. The fields over which the unique constraint is defined.
enforced Bool Whether or not the unique constraint is being enforced.

fieldMappingsItem object

Field Type Description
field String Required. Local field (column) name forming part of the foreign key.
referencedField String Required. Field (column) name in the referenced table.

Example

The following JSON shows how the schema aspect data is structured:

{
  "fields": [
    {
      "name": "name_value",
      "description": "description_value",
      "dataType": "dataType_value",
      "metadataType": "value",
      "mode": "value",
      "defaultValue": "defaultValue_value",
      "annotations": {
        "key1": "label_value"
      },
      "semantic": "semantic_value",
      "rangeElementType": "rangeElementType_value",
      "synonyms": [
        "synonym_value"
      ],
      "fields": [
        {}
      ]
    }
  ],
  "primaryKey": {
    "fields": [
      "field_value"
    ],
    "enforced": true
  },
  "foreignKeys": [
    {
      "name": "name_value",
      "description": "description_value",
      "referencedTable": "referencedTable_value",
      "fieldMappings": [
        {
          "field": "field_value",
          "referencedField": "referencedField_value"
        }
      ],
      "enforced": true,
      "onUpdateAction": "onUpdateAction_value",
      "onDeleteAction": "onDeleteAction_value"
    }
  ],
  "checkConstraints": [
    {
      "name": "name_value",
      "condition": "condition_value",
      "enforced": true
    }
  ],
  "uniqueConstraints": [
    {
      "name": "name_value",
      "fields": [
        "field_value"
      ],
      "enforced": true
    }
  ]
}

storage-bucket

Aspect type for Cloud Storage bucket resources.

Aspect type ID: storage-bucket

Fields

Field Type Description
storageClass String Required. Default storage class of your bucket, such as STANDARD.
billingMode Enum Billing mode for the storage bucket. Valid values: DEFAULT, REQUESTER_PAYS.
versioningEnabled Bool If versioning has been enabled on the bucket or not.
lifecyclePolicies lifecyclePoliciesObject Lifecycle management policies for the bucket.

lifecyclePoliciesObject object

Field Type Description
rule Array of ruleItem objects Defines a lifecycle management rule. A rule is made of an action and the condition under which the action will be taken.

ruleItem object

Field Type Description
action actionObject The action to take when the lifecycle rule condition is met.
condition conditionObject The condition under which the lifecycle rule action is taken.

actionObject object

Field Type Description
type String The type of lifecycle action to take, such as Delete or SetStorageClass.
storageClass String The target storage class when the action type is SetStorageClass.

conditionObject object

Field Type Description
ageDays Int Age of an object in days
createdBeforeTimeNano Int Timestamp, in nanoseconds since epoch, before which an object was created.
isLive Bool If the value is true, the condition matches live objects. If false, it matches noncurrent objects. If not specified, it matches both.
numNewerVersions Int Number of versions (including the live version) newer than this version of the object.
matchesStorageClass Array of Strings Storage class of the object.
matchesPattern String A regular expression that satisfies the RE2 syntax.
daysSinceCustomTime Int Number of days elapsed since user-specified timestamp.
customTimeBeforeTimeNano Int Matches an object if user-specified timestamp is less than this value.
daysSinceNoncurrentTime Int Number of days elapsed since the noncurrent timestamp of an object.
noncurrentTimeBeforeTimeNano Int Timestamp, in nanoseconds since epoch, before which version of the object became non current.
matchesPrefix Array of Strings List of object name prefixes. If any prefix exactly matches the beginning of the object name, the condition evaluates to true.
matchesSuffix Array of Strings List of object name suffixes. If any suffix exactly matches the end of the object name, the condition evaluates to true.

Example

The following JSON shows how the storage-bucket aspect data is structured:

{
  "storageClass": "storageClass_value",
  "billingMode": "value",
  "versioningEnabled": true,
  "lifecyclePolicies": {
    "rule": [
      {
        "action": {
          "type": "type_value",
          "storageClass": "storageClass_value"
        },
        "condition": {
          "ageDays": 123,
          "createdBeforeTimeNano": 123,
          "isLive": true,
          "numNewerVersions": 123,
          "matchesStorageClass": [
            "storageClass_value"
          ],
          "matchesPattern": "matchesPattern_value",
          "daysSinceCustomTime": 123,
          "customTimeBeforeTimeNano": 123,
          "daysSinceNoncurrentTime": 123,
          "noncurrentTimeBeforeTimeNano": 123,
          "matchesPrefix": [
            "prefix_value"
          ],
          "matchesSuffix": [
            "suffix_value"
          ]
        }
      }
    ]
  }
}

bigquery-table

Metadata template for BigQuery tables. BigQuery columns are referred to as fields.

Aspect type ID: bigquery-table

Fields

Field Type Description
type Enum Required. Represents a type of BigQuery table, such as a BigQuery table, BigLake table, object table, or external table. Valid values: BIGLAKE_TABLE, BIGLAKE_OBJECT_TABLE, EXTERNAL_TABLE, TABLE.
clustering clusteringObject Properties of table clustering.
partitioning partitioningObject Captures partitioning properties of the table.
connectionId String The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connectionId can have the form PROJECT_ID.LOCATION_ID.CONNECTION_ID or projects/PROJECT_ID/locations/LOCATION_ID/connections/CONNECTION_ID.
sharding shardingObject Captures sharding properties of the table.
isShard Bool If this is an individual shard of a date sharded table.
tableType String String representing the Table type.
expirationTime Datetime Captures the time when the table expires if it exists.

clusteringObject object

Field Type Description
columns Array of Strings The columns used to cluster the table.

partitioningObject object

Field Type Description
columns Array of Strings Columns to be partitioned.
interval Enum Partition interval. Valid values: DAY, HOUR, MONTH, YEAR, RANGE.
expirationMs Int Time in milliseconds after which the partition expires.
requirePartitionFilter Bool If true, queries over this table require a partition filter.

shardingObject object

Field Type Description
prefix String Prefix of the sharded table.
numShards Int The number of shards.
latestShardResource String BigQuery resource name of the latest shard.

Example

The following JSON shows how the bigquery-table aspect data is structured:

{
  "type": "value",
  "clustering": {
    "columns": [
      "column_value"
    ]
  },
  "partitioning": {
    "columns": [
      "column_value"
    ],
    "interval": "value",
    "expirationMs": 123,
    "requirePartitionFilter": true
  },
  "connectionId": "connectionId_value",
  "sharding": {
    "prefix": "prefix_value",
    "numShards": 123,
    "latestShardResource": "latestShardResource_value"
  },
  "isShard": false,
  "tableType": "tableType_value",
  "expirationTime": "value"
}

generic

Aspect type for generic entry resources.

Aspect type ID: generic

Fields

Field Type Description
type String Freeform field to store user specified type.
system String Represents system of custom entry

Example

The following JSON shows how the generic aspect data is structured:

{
  "type": "type_value",
  "system": "system_value"
}

Data quality and profiling

The following aspect types capture data quality scores, metrics, and profile statistics.

data-quality-scorecard

Data quality details for a data asset.

Aspect type ID: data-quality-scorecard

Fields

Field Type Description
job jobObject Details about the job that generated the scorecard.
score Double The overall data quality score. The score ranges between [0, 100].
status Enum Required. Status of the data quality scorecard indicating if it passed or failed the quality threshold. Valid values: PASS, FAIL, UNKNOWN, NOT_APPLICABLE.
dimensions Array of dimensionsItem (scorecard-level) objects A list of results at the dimension level.
columns Array of columnsItem objects List of results at the column level.
qualityAttributes Map of String to Map Additional data quality metadata and execution attributes grouped by category.

jobObject object

Field Type Description
name String Resource name of the data quality job.
runTime Datetime Run time of the data quality job.

dimensionsItem object (scorecard-level)

Field Type Description
name String Name of the dimension, such as ACCURACY, COMPLETENESS, CONSISTENCY, FRESHNESS, UNIQUENESS, VALIDITY, or VOLUME.
score Double Overall dimension level score. The score ranges between [0, 100].
status Enum Status of the dimension indicating if it passed or failed the quality threshold. Valid values: PASS, FAIL, UNKNOWN, NOT_APPLICABLE.
details Map of String to Map Granular details and metrics for this dimension grouped by category.
evaluatedAssetCount Int Number of assets evaluated for this dimension.

columnsItem object

Field Type Description
name String Name of the column.
score Double Overall column level score. The score ranges between [0, 100].
status Enum Status of the column indicating if it passed or failed the quality threshold. Valid values: PASS, FAIL, UNKNOWN, NOT_APPLICABLE.
dimensions Array of dimensionsItem (column-level) objects List of dimension scores for the column.

dimensionsItem object (column-level)

Field Type Description
name String Name of the dimension, such as ACCURACY, COMPLETENESS, CONSISTENCY, FRESHNESS, UNIQUENESS, VALIDITY, or VOLUME.
score Double Score for the dimension. The score ranges between [0, 100].
status Enum Status of the dimension indicating if it passed or failed the quality threshold. Valid values: PASS, FAIL, UNKNOWN, NOT_APPLICABLE.

Example

The following JSON shows how the data-quality-scorecard aspect data is structured:

{
  "job": {
    "name": "name_value",
    "runTime": "value"
  },
  "score": 95.5,
  "status": "value",
  "dimensions": [
    {
      "name": "name_value",
      "score": 95.5,
      "status": "value",
      "details": {
        "key1": {
          "key1": "item_value"
        }
      },
      "evaluatedAssetCount": 123
    }
  ],
  "columns": [
    {
      "name": "name_value",
      "score": 95.5,
      "status": "value",
      "dimensions": [
        {
          "name": "name_value",
          "score": 95.5,
          "status": "value"
        }
      ]
    }
  ],
  "qualityAttributes": {
    "key1": {
      "key1": "item_value"
    }
  }
}

data-profile

Data profile for a data asset.

Aspect type ID: data-profile

Fields

Field Type Description
job jobObject Details about the job that generated the data profile.
sourceDataInfo sourceDataInfoObject Information about the source data scanned to generate the profile.
fields Map of String to profileObject Map of column names to their data profiles.
profileAttributes Map of String to Map Additional profile properties and metrics grouped by category.

jobObject object

Field Type Description
name String Required. Resource name for the data profile job.
runTime Datetime Required. Run time of the data profile job.

sourceDataInfoObject object

Field Type Description
scope Enum Required. The scope of the profile, which indicates the data sample used to generate the profile. Valid values: PREVIEW, SAMPLED, ALL.
scannedRows Int Required. The number of rows scanned to generate this profile. This might be a subset of the total rows if sampling was enabled.
samplingPercentage Double The sampling percentage used to generate this profile.

profileObject object

Field Type Description
uniqueness Double The percentage of unique values in the column, rounded to two decimal places.
nullness Double The percentage of null values in the column, rounded to two decimal places.
topN topNObject The most frequently occurring non-null values in the column.
numeric numericObject Numeric statistics for the column.
string stringObject String and byte statistics for the column.
datetime datetimeObject Datetime statistics for the column.
array arrayObject Array statistics for the column.
fields Map of String to profileObject Profiles of the nested fields under this field, if any. Uses the same profileObject structure recursively.
metrics Map of String to Map Granular or custom column metrics grouped by category.

topNObject object

Field Type Description
values Array of Strings String representation of the values.
percentages Array of Doubles The percentage of occurrences of each value in the column, rounded to two decimal places.
counts Array of Ints The number of occurrences of each value in the column.

numericObject object

Field Type Description
min Double The minimum value in the column.
max Double The maximum value in the column.
avg Double The average value in the column.
stdDev Double The standard deviation of the column, rounded to two decimal places.
median Double The median value of the column.
quartiles Array of Doubles A list of 3 quartile values for the column: the 25th, 50th (median), and 75th percentiles.

stringObject object

Field Type Description
length lengthObject (string) Length statistics for strings or bytes in the column.
pattern String Format or regular expression that commonly describes values within the column.
infoType String Semantic classification of the data within the string column.

lengthObject object (string)

Field Type Description
min Int The minimum length of a string or bytes in the column.
max Int The maximum length of a string or bytes in the column.
avg Double The average length of a string or bytes in the column.

datetimeObject object

Field Type Description
min Datetime The earliest timestamp value in the column.
max Datetime The latest timestamp value in the column.
format String The most common format of the values in the column.

arrayObject object

Field Type Description
length lengthObject (array) Length statistics for arrays in the column.

lengthObject object (array)

Field Type Description
min Int The minimum length of arrays in the column.
max Int The maximum length of arrays in the column.
avg Double The average length of arrays in the column.

Example

The following JSON shows how the data-profile aspect data is structured:

{
  "job": {
    "name": "name_value",
    "runTime": "value"
  },
  "sourceDataInfo": {
    "scope": "value",
    "scannedRows": 123,
    "samplingPercentage": 100.0
  },
  "fields": {
    "key1": {
      "uniqueness": 100.0,
      "nullness": 0.0,
      "topN": {
        "values": [
          "value_value"
        ],
        "percentages": [
          50.0
        ],
        "counts": [
          123
        ]
      },
      "numeric": {
        "min": 0.0,
        "max": 100.0,
        "avg": 50.0,
        "stdDev": 10.0,
        "median": 50.0,
        "quartiles": [
          25.0,
          50.0,
          75.0
        ]
      },
      "string": {
        "length": {
          "min": 123,
          "max": 123,
          "avg": 10.5
        },
        "pattern": "pattern_value",
        "infoType": "infoType_value"
      },
      "datetime": {
        "min": "value",
        "max": "value",
        "format": "format_value"
      },
      "array": {
        "length": {
          "min": 123,
          "max": 123,
          "avg": 5.0
        }
      },
      "fields": {
        "key1": {}
      },
      "metrics": {
        "key1": {
          "key1": "item_value"
        }
      }
    }
  },
  "profileAttributes": {
    "key1": {
      "key1": "item_value"
    }
  }
}

graph-profile

The Graph Profile aspect type.

Aspect type ID: graph-profile

Fields

Field Type Description
nodeTypes Array of nodeTypesItem objects The types of nodes in the graph.
edgeTypes Array of edgeTypesItem objects The types of edges (relationships) in the graph.

nodeTypesItem object

Field Type Description
name String Required. Name of the node type, such as Person Node.
fields Array of fieldsItem objects Fields of the node type.
extractionHints extractionHintsObject (node-level) Extraction hints for the node type.
description String Description of the node type.
primaryKeys Array of Strings Field names forming the primary keys. The order in this array defines the key's ordinal positions for composite keys.

edgeTypesItem object

Field Type Description
name String Required. Name of the edge type.
sourceNodeType String Required. Source node type of the edge.
targetNodeType String Required. Target node type of the edge.
fields Array of fieldsItem objects Fields of the edge type. Uses the same fieldsItem structure as nodeTypesItem.
extractionHints extractionHintsObject (edge-level) Extraction hints for the edge type.
description String Description of the edge type.
foreignKeys Array of foreignKeysItem objects Defines the foreign key constraints for the edge.

fieldsItem object

Field Type Description
name String Required. Name of the field.
description String Description of the field.
dataType String Required. The data type of the field, such as STRING, INTEGER, or DATE.
metadataType Enum Required. Metadata type of the field. Valid values: BOOLEAN, NUMBER, STRING, BYTES, DATETIME, TIMESTAMP, GEOSPATIAL, STRUCT, OTHER.
mode Enum The mode of the field. Valid values: NULLABLE, REPEATED, REQUIRED.
extractionHints extractionHintsObject (field-level) Extraction hints for the field.
fields Array of fieldsItem objects Sub-fields of this field (for STRUCT types). Uses the same fieldsItem structure recursively.

extractionHintsObject object (node-level)

Field Type Description
cardinality String How many instances to extract from the source data.

extractionHintsObject object (edge-level)

Field Type Description
cardinality String How many instances to extract from a document.

foreignKeysItem object

Field Type Description
name String Name of the foreign key constraint.
description String Description of the foreign key.
referencedNodeType String Required. The node type this constraint references.
fieldMappings Array of fieldMappingsItem objects Required. Mappings between local fields and the fields they reference in the referenced node type.

extractionHintsObject object (field-level)

Field Type Description
normalization String Normalization hint for the field, such as as ISO 3166-1 alpha-2 code.
synthesis String Synthesis hint for the field, such as MD5(another_attribute_name).

fieldMappingsItem object

Field Type Description
field String Required. Local field name forming part of the foreign key.
referencedField String Required. Field name in the referenced node type.

Example

The following JSON shows how the graph-profile aspect data is structured:

{
  "nodeTypes": [
    {
      "name": "name_value",
      "fields": [
        {
          "name": "name_value",
          "description": "description_value",
          "dataType": "dataType_value",
          "metadataType": "value",
          "mode": "value",
          "extractionHints": {
            "normalization": "normalization_value",
            "synthesis": "synthesis_value"
          },
          "fields": [
            {}
          ]
        }
      ],
      "extractionHints": {
        "cardinality": "cardinality_value"
      },
      "description": "description_value",
      "primaryKeys": [
        "field_value"
      ]
    }
  ],
  "edgeTypes": [
    {
      "name": "name_value",
      "sourceNodeType": "sourceNodeType_value",
      "targetNodeType": "targetNodeType_value",
      "fields": [
        {}
      ],
      "extractionHints": {
        "cardinality": "cardinality_value"
      },
      "description": "description_value",
      "foreignKeys": [
        {
          "name": "name_value",
          "description": "description_value",
          "referencedNodeType": "referencedNodeType_value",
          "fieldMappings": [
            {
              "field": "field_value",
              "referencedField": "referencedField_value"
            }
          ]
        }
      ]
    }
  ]
}

Governance and context

The following aspect types provide business context, ownership, descriptions, and operational governance information.

contacts

Business contacts part of business context of an entry

Aspect type ID: contacts

Fields

Field Type Description
identities Array of identitiesItem objects Identities of the business contacts

identitiesItem object

Field Type Description
role String Required. Designation of the person, such as owner, steward, producer, or admin.
name String Required. Name of the contact person for the entry. This is unvalidated freeform text.
id String Email ID or freeform ID of the contact person.

Example

The following JSON shows how the contacts aspect data is structured:

{
  "identities": [
    {
      "role": "role_value",
      "name": "name_value",
      "id": "id_value"
    }
  ]
}

overview

Overview part of the business context of an entry

Aspect type ID: overview

Fields

Field Type Description
content String Entry overview with support for rich text. The overview must only contain Unicode characters, and should be formatted using HTML. The maximum length is 100 KiB as this value holds HTML descriptions including encoded images.
links Array of linksItem objects Source System Links for this Entry.
contentType Enum Format of the content. Valid values: MARKDOWN, HTML.
examples Array of examplesItem objects Sample questions or use cases that show what the entry is for. Each record holds one example.

linksItem object

Field Type Description
url String Required. URL of the link.
title String Title of the link.

examplesItem object

Field Type Description
title String Short label for the example.
content String Required. The example itself.
contentType String Format of the example's content, such as MARKDOWN or HTML.

Example

The following JSON shows how the overview aspect data is structured:

{
  "content": "content_value",
  "links": [
    {
      "url": "url_value",
      "title": "title_value"
    }
  ],
  "contentType": "value",
  "examples": [
    {
      "title": "title_value",
      "content": "content_value",
      "contentType": "contentType_value"
    }
  ]
}

descriptions

Descriptions for the entry and its schema.

Aspect type ID: descriptions

Fields

Field Type Description
description String Required. Description for the entry.
fields Array of fieldsItem objects Top level fields in the schema.
userManaged Bool Required. Indicates whether the metadata is managed by the user or not. If true, Knowledge Catalog doesn't update the metadata.
job jobObject Details about the job that generated the content.

fieldsItem object

Field Type Description
name String Required. The name of the field.
description String Required. Description for the field.
fields Array of fieldsItem objects Nested fields. Uses the same fieldsItem structure recursively.

jobObject object

Field Type Description
name String Required. Name of the job.
runTime Datetime Required. Start time of the job.

Example

The following JSON shows how the descriptions aspect data is structured:

{
  "description": "description_value",
  "fields": [
    {
      "name": "name_value",
      "description": "description_value",
      "fields": [
        {}
      ]
    }
  ],
  "userManaged": true,
  "job": {
    "name": "name_value",
    "runTime": "value"
  }
}

data-contract

Defines the data contract for a resource, including quality expectations, SLA, schema and metadata drift expectations, and roles.

Aspect type ID: data-contract

Fields

Field Type Description
version String Required. Version of the data contract (for example, 1.0.0). Updated when the contract is published.
description String Human-readable description of the data contract.
dataQuality dataQualityObject Data quality expectations for the data contract.
refreshCadence refreshCadenceObject SLA expectations for data freshness and refresh frequency.
customMetadata Map of String to String User-defined key-value pairs allowing customers to attach arbitrary custom attributes, tags, or properties to the contract.

dataQualityObject object

Field Type Description
overallScoreThreshold Double Minimum acceptable overall data quality score. The score ranges between [0, 100].
dimensions Array of dimensionsItem objects Data quality expectations for each dimension.

refreshCadenceObject object

Field Type Description
frequency Enum Frequency at which the resource is expected to be refreshed. Valid values: Daily, Weekly, Monthly, Quarterly, Half Yearly, Yearly.
refreshTime String Maximum acceptable time when the resource is updated (for example, 23:30 PST).
thresholdInMinutes Int Maximum acceptable delay in data delivery. Integer value only.
cronSchedule String Cron expression defining the exact schedule for data refresh. Recommended format: {minute} {hour} {day-of-month} {month} {day-of-week} {year (optional)}.

dimensionsItem object

Field Type Description
name String Required. Name of the data quality dimension, such as ACCURACY, COMPLETENESS, CONSISTENCY, FRESHNESS, UNIQUENESS, VALIDITY, or VOLUME.
threshold Double Minimum acceptable score for the dimension. The score ranges between [0, 100].

Example

The following JSON shows how the data-contract aspect data is structured:

{
  "version": "version_value",
  "description": "description_value",
  "dataQuality": {
    "overallScoreThreshold": 95.5,
    "dimensions": [
      {
        "name": "name_value",
        "threshold": 95.5
      }
    ]
  },
  "refreshCadence": {
    "frequency": "value",
    "refreshTime": "refreshTime_value",
    "thresholdInMinutes": 123,
    "cronSchedule": "cronSchedule_value"
  },
  "customMetadata": {
    "key1": "value_value"
  }
}

refresh-cadence

Define refresh expectations for the data product

Aspect type ID: refresh-cadence

Fields

Field Type Description
frequency Enum Frequency at which the data product is refreshed. Valid values: Daily, Weekly, Monthly, Quarterly, Half Yearly, Yearly.
refreshTime String Maximum acceptable time when data is updated (for example, 23:30 PST).
thresholdInMinutes Int Measurable limit for the acceptable delay in data delivery. Integer value only.
cronSchedule String Optionally use a cron expression to define the exact schedule for when the new batch of data is refreshed. Recommended format: {minute} {hour} {day-of-month} {month} {day-of-week} {year (optional)}.

Example

The following JSON shows how the refresh-cadence aspect data is structured:

{
  "frequency": "value",
  "refreshTime": "refreshTime_value",
  "thresholdInMinutes": 123,
  "cronSchedule": "cronSchedule_value"
}

queries

A data aspect containing a set of sample SQL queries tailored to analyze the data in the entry.

Aspect type ID: queries

Fields

Field Type Description
queries Array of queriesItem objects Required. A list of SQL queries.
userManaged Bool Required. Indicates whether the metadata is managed by the user or not. If true, Knowledge Catalog doesn't update the metadata.
job jobObject Details about the job that last updated the metadata.

queriesItem object

Field Type Description
description String Required. Description of the query.
sql String Required. The SQL query.
source Enum Required. Indicates how this query was generated. Knowledge Catalog won't update queries generated by users. Valid values: AGENT, USER.
sqlDialect Enum The SQL dialect of the query. Valid values: GOOGLE_SQL, SPARK_SQL, DATABRICKS_SQL, SNOWFLAKE_SQL.

jobObject object

Field Type Description
name String Required. Name of the job.
runTime Datetime Required. Start time of the job.

Example

The following JSON shows how the queries aspect data is structured:

{
  "queries": [
    {
      "description": "description_value",
      "sql": "sql_value",
      "source": "value",
      "sqlDialect": "value"
    }
  ],
  "userManaged": true,
  "job": {
    "name": "name_value",
    "runTime": "value"
  }
}

View schemas for other aspect types

If you need the detailed schema (metadataTemplate) for an aspect type that is not fully documented in this reference, you can retrieve its definition dynamically using the Google Cloud CLI or the Dataplex API.

Because all system aspect types are centrally managed by Google, they reside in the dataplex-types project and global location.

gcloud CLI

To view the full schema of a system aspect type, use the gcloud dataplex aspect-types describe command. For more information, see gcloud dataplex aspect-types describe.

gcloud dataplex aspect-types describe ASPECT_TYPE_ID \
    --project=dataplex-types \
    --location=global

Replace the following:

  • ASPECT_TYPE_ID: the ID of the system aspect type to view, such as generic or schema.

The output is similar to the following, where metadataTemplate.recordFields defines the fields for the aspect type:

createTime: '2024-01-01T00:00:00Z'
metadataTemplate:
  name: GenericEntry
  recordFields:
  - annotations:
      description: Freeform field to store user specified type.
      displayName: Type
    index: 1
    name: type
    type: string
  - annotations:
      description: Represents system of custom entry
      displayName: System
    index: 2
    name: system
    type: string
  type: record
name: projects/dataplex-types/locations/global/aspectTypes/generic
# Several lines omitted

REST

To view the full schema of a system aspect type, use the projects.locations.aspectTypes.get method. For more information, see projects.locations.aspectTypes.get.

Before using any of the request data, make the following replacements:

  • ASPECT_TYPE_ID: the ID of the system aspect type to view, such as generic or schema.

HTTP method and URL:

GET https://dataplex.googleapis.com/v1/projects/dataplex-types/locations/global/aspectTypes/ASPECT_TYPE_ID

To send your request, expand one of these options:

You should receive a JSON response similar to the following:

{
  "name": "projects/dataplex-types/locations/global/aspectTypes/generic",
  "createTime": "2024-01-01T00:00:00Z",
  "metadataTemplate": {
    "name": "GenericEntry",
    "type": "record",
    "recordFields": [
      {
        "name": "type",
        "type": "string",
        "index": 1,
        "annotations": {
          "description": "Freeform field to store user specified type.",
          "displayName": "Type"
        }
      },
      {
        "name": "system",
        "type": "string",
        "index": 2,
        "annotations": {
          "description": "Represents system of custom entry",
          "displayName": "System"
        }
      }
    ]
  }
}

Other built-in aspect types

The following system aspect types are also available in Knowledge Catalog. While their full payload schemas are not detailed here, you can identify them by their Aspect Type ID. Use the following filter to quickly find related aspect types.

Category Aspect type ID Description
Analytics and AI Models bigquery-model Metadata template for BigQuery models.
Analytics and AI Models data-domain Core system attributes for a Knowledge Catalog Data Domain Entry. The presence of this aspect type on an Entry signifies that it represents a Data Domain resource.
Analytics and AI Models looker-model Aspect type for Looker Model resource
Analytics and AI Models vertexai-dataset VertexAI Dataset details
Analytics and AI Models vertexai-feature-group VertexAI Feature Group details
Analytics and AI Models vertexai-feature-online-store VertexAI Feature Online Store details
Analytics and AI Models vertexai-feature-view VertexAI Feature View details
Analytics and AI Models vertexai-model-version VertexAI Model Version details
Cloud Storage storage-folder Aspect type for GCS folder resource.
Data Quality and Profiling data-quality-rule-template Represents template which can be reused across multiple data quality rules
Databases and Data Warehouses alloydb-cluster Aspect type for Alloy DB Cluster resource
Databases and Data Warehouses alloydb-database Aspect type for AlloyDB Database resource
Databases and Data Warehouses alloydb-instance Aspect type for Alloy DB Instance resource
Databases and Data Warehouses alloydb-schema Aspect type for Alloy DB Schema resource
Databases and Data Warehouses alloydb-table Aspect type for Alloy DB Table resource
Databases and Data Warehouses alloydb-view Aspect type for Alloy DB View resource
Databases and Data Warehouses biglake-catalog Aspect type for BigLake Catalog resource
Databases and Data Warehouses biglake-namespace Aspect type for BigLake Namespace resource
Databases and Data Warehouses biglake-table Metadata template for BigLake tables.
Databases and Data Warehouses bigquery-connection Metadata template for BigQuery connectors that let you query data stored outside of BigQuery in Google Cloud services like Cloud Storage or Spanner, or in third-party sources like AWS or Azure. These external connections use the BigQuery Connection API.
Databases and Data Warehouses bigquery-data-policy Metadata template for BigQuery Data Policy.
Databases and Data Warehouses bigquery-dataset Metadata template for BigQuery datasets that are used to organize and control access to your tables and views.
Databases and Data Warehouses bigquery-policy Metadata template for BigQuery policies that stores policy counts of Row Access Policy, Data Policy, and Tag.
Databases and Data Warehouses bigquery-routine Metadata template for BigQuery routines that include the following: stored procedures, user-defined functions (UDFs), including remote functions, table functions.
Databases and Data Warehouses bigquery-row-access-policy Metadata template for BigQuery Row Level Security Policy.
Databases and Data Warehouses bigquery-view Metadata template for BigQuery views.
Databases and Data Warehouses cloud-bigtable-authorized-view Metadata for a Cloud Bigtable Authorized View.
Databases and Data Warehouses cloud-bigtable-instance Bigtable instance details
Databases and Data Warehouses cloud-bigtable-logical-view Metadata for a Bigtable Logical View.
Databases and Data Warehouses cloud-bigtable-materialized-view Metadata for a Bigtable Materialized View.
Databases and Data Warehouses cloud-bigtable-table Bigtable Table resource specific parameters
Databases and Data Warehouses cloud-spanner-database Spanner Database resource specific parameters
Databases and Data Warehouses cloud-spanner-graph Spanner Graph resource specific parameters
Databases and Data Warehouses cloud-spanner-instance Spanner Instance resource specific parameters
Databases and Data Warehouses cloud-spanner-table Spanner Table resource specific parameters
Databases and Data Warehouses cloud-spanner-view Spanner View resource specific parameters
Databases and Data Warehouses cloudsql-database Aspect type for Cloud SQL Database resource
Databases and Data Warehouses cloudsql-instance Aspect type for Cloud SQL Instance resource
Databases and Data Warehouses cloudsql-schema Aspect type for Cloud SQL Schema resource
Databases and Data Warehouses cloudsql-table Aspect type for Cloud SQL Table resource
Databases and Data Warehouses cloudsql-view Aspect type for Cloud SQL View resource
Databases and Data Warehouses database-data-policy Captures the data access behavior of a database asset.
Databases and Data Warehouses dataproc-metastore-database Dataproc Metastore Database resource specific parameters
Databases and Data Warehouses dataproc-metastore-service Dataproc Metastore Service resource specific parameters
Databases and Data Warehouses dataproc-metastore-table Dataproc Metastore Table resource specific parameters
Databases and Data Warehouses firestore-collectiongroup Firestore Collection Group resource specific parameters
Databases and Data Warehouses firestore-database Firestore Database resource specific parameters
Databases and Data Warehouses query-template Aspect type for Query Template resource
Databases and Data Warehouses sql-access Metadata about the SQL resources
Databases and Data Warehouses sql-triggers Represents the automated procedural logic that executes in response to specific events.
General and Business Context analytics-hub AnalyticsHub entry types shared parameters
General and Business Context analytics-hub-exchange AnalyticsHub Exchange resource specific parameters
General and Business Context analytics-hub-listing AnalyticsHub Listing resource
General and Business Context aspecttype-aspect Aspect Type resource specific parameters
General and Business Context certification Certification status of the asset represented by the entry.
General and Business Context data-product Represents a Data Product and its packaged assets
General and Business Context dataform-code-asset Aspect type for the Dataform code asset resource
General and Business Context dataform-folder Aspect type for the Dataform folder resource
General and Business Context dataform-repository Aspect type for the Dataform repository resource
General and Business Context dataform-team-folder Aspect type for the Dataform team folder resource
General and Business Context dataform-workspace Aspect type for the Dataform workspace resource
General and Business Context document Document Aspect Type
General and Business Context entrygroup-aspect Entry Group resource specific parameters
General and Business Context entrytype-aspect Aspect type for Entry Type resource
General and Business Context geminidataanalytics-dataagent Aspect Type for a Data Agent resource in GeminiDataAnalytics
General and Business Context glossary-aspect Aspect type for Glossary resource.
General and Business Context glossary-category-aspect Aspect type for Glossary Category resource.
General and Business Context glossary-term-aspect Aspect type for Glossary Term resource.
General and Business Context graph-schema Represents the structure of the graph contained by the Entry
General and Business Context guidelines Guidelines to the Large Language Models
General and Business Context looker-agent Aspect type for Looker Agent resource
General and Business Context looker-dashboard Aspect type for Looker Dashboard resource
General and Business Context looker-dashboard-element Aspect type for Looker Dashboard Element Resource
General and Business Context looker-explore Aspect type for Looker Explore resource
General and Business Context looker-instance Aspect type for Looker Instance resource
General and Business Context looker-look Aspect type for Looker Look resource
General and Business Context looker-lookml-dashboard Aspect type for Looker LookML Dashboard resource
General and Business Context looker-lookml-dashboard-element Aspect type for Looker LookML Dashboard Element Resource
General and Business Context looker-lookml-project Aspect type for Looker LookML Project resource
General and Business Context looker-view Aspect type for Looker View resource
General and Business Context sap-csn Entity metadata and modeling annotations from SAP Core Schema Notation (CSN).
General and Business Context schema-join Describes all possible schema joins between two catalog entries.
General and Business Context search-filter Aspect type for persisting saved search filters
General and Business Context secondary-indexes Aspect type for secondary database indexes.
General and Business Context storage Metadata about the system physically storing the data represented by the Entry
General and Business Context structured-data Aspect containing dynamic, schemaless structured data.
General and Business Context usage The usage metrics of the source Entry.
Governance and Security data-rules Represents data rules that the data corresponding to the entry should conform to
Governance and Security sensitive-data-protection-profile Insights from the Sensitive Data Protection profile associated with the entry
Lineage and Processing sensitive-data-protection-job-result Result of a Sensitive Data Protection job
Streaming and Messaging datastream-connection-profile Aspect Type for Datastream Connection Profile resource
Streaming and Messaging datastream-private-connection Aspect Type for Datastream Private Connection resource
Streaming and Messaging datastream-stream Aspect Type for Datastream Stream resource
Streaming and Messaging pubsub-topic Aspect type for Pub Sub Topic resource