Data standard management skill
You can use natural language to instruct code agents such as Qoder and CodeX to perform full lifecycle management of Dataphin data standards. These operations include creating, revising, publishing, deactivating, deleting, and querying standards. This document describes the features, prerequisites, usage examples, and results of this capability, and provides a list of inputs in the appendix.
Introduction
The data standard management capability lets you use natural language to manage the full lifecycle of Dataphin data standards, including creating, revising, submitting for approval, publishing, deactivating, deleting, and querying. You can also configure metadata monitoring, which validates only the metadata itself, or quality monitoring, which validates actual table data against specified metrics and thresholds. Each data standard is organized under a standard template and a standard set.
Use cases:
-
Query the list of data standards or the details of a specific standard to find existing ones and avoid creating duplicates.
-
Create a data standard, which is in the
Draftstate after creation, and configure metadata monitoring or quality monitoring for it. -
Submit a standard for approval and publish it to promote it from the development stage to the production stage.
-
Revise an existing standard, or deactivate or delete it.
The field combinations for metadata monitoring and quality monitoring differ, so you must select a monitoring type before configuration. When querying a list of standards, you must specify a stage (development or production). The delete action cannot be rolled back, but a deactivated standard can be republished. Publishing involves submitting for approval, followed by automatic publication by default. You must poll to confirm the final effective status.
Prerequisites
-
Your account has the required permissions to manage data standards.
-
The target standard template and standard set already exist. You must reference them when you create or revise a data standard.
-
Before you revise, publish, deactivate, or delete an existing standard, you must first query for its identifier and current status.
Examples
You can use natural language to describe your requirements to the code agent. The following are example commands that you can use directly:
-
"Show me all data standards in the development stage."
-
"Create a customer ID standard under the customer information standard set and publish it to production."
-
"Change the description for the order amount standard and republish it."
-
"Deactivate the old customer ID standard, and add the review comment 'Replaced by a new standard'."
Interaction steps:
-
After you issue a command, the code agent confirms the intended action (querying, creating, revising, publishing, deactivating, or deleting) and the target standard.
-
If the operation involves an existing standard, the code agent first queries the standard list or its details to find the target standard's identifier and current status.
-
When you create or revise a standard, the code agent confirms the standard template, standard set, and monitoring configuration, if required.
-
Before executing a write operation, the code agent summarizes the planned actions and their impact, including whether the operation can be rolled back, and prompts you for confirmation.
-
After you confirm, the code agent executes the operation and then verifies that the standard's status is updated as expected.
Results
After the operation is complete, you can expect the following results:
-
Response: After a successful operation, the system returns the identifier and status of the data standard. The code agent then queries the standard again to confirm this information.
-
Final status: After creation, the standard is in the
Draftstate. After publishing, the standard is submitted for approval from the development stage and moves to the production stage. After a revision, the target fields are updated. After deactivation, the standard is disabled but can be republished. After deletion, the standard is no longer discoverable. -
Verification: You can log in to Dataphin and navigate to
Asset Governance > Data Standardto view the standard and its status. For publish operations, you can poll the status in the production stage to confirm the change.
A success message from the command line only indicates that the request has been received. The publishing process can involve asynchronous status changes. Always refer to the Dataphin UI for the definitive status.
Appendix: Inputs
The following table lists the information that might be required when you manage data standards. This is for reference only. In practice, the code agent automatically identifies the required information from your instructions and prompts you if anything is missing. You do not need to provide information for items that are generated by the system.
|
Parameter |
Required |
Description |
Example |
|
Tenant ID |
Yes |
The ID of the target Dataphin tenant. It is a 19-digit number. |
1234567890123456789 |
|
Standard template |
Required when creating or revising. |
The standard template to which the data standard belongs. This template must already exist. |
Basic Field Standard Template |
|
Standard set |
Required when creating or revising. |
The standard set to which the data standard belongs. This set must already exist. |
Customer Information Standard Set |
|
Target standard |
Required for operations on an existing standard. |
The data standard to revise, publish, deactivate, delete, or query. You can provide its name or code. |
Customer ID Standard |
|
Standard status |
Required when revising. |
The standard's current status, which is required for a revision. |
|
|
Monitoring configuration |
No |
The metadata monitoring or quality monitoring rules associated with the standard. |
Quality Monitoring |
|
Review comments |
Required when publishing or deactivating. |
The review comments for a publish or deactivate operation. Maximum length: 128 characters. |
Initial publish |
|
Standard stage |
Required for querying a list. |
The stage specified when querying a list of standards: |
Development |