Documentation
¶
Overview ¶
Package deploy_dq_rule_template implements the deploy_dq_rule_template MCP tool: it instantiates a rule template as concrete rules across one or more job/column targets, using dialect-specific SQL resolved by the DQ service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
RuleTemplateName string `json:"ruleTemplateName" jsonschema:"Required. Name of the rule template to deploy (from list_data_quality_rule_templates)."`
Targets []Target `` /* 140-byte string literal not displayed */
Confirm bool `` /* 304-byte string literal not displayed */
}
Input is the tool's typed input.
type Outcome ¶
type Outcome struct {
JobName string `json:"jobName" jsonschema:"The target job."`
ColumnName string `json:"columnName,omitempty" jsonschema:"The target column, when set."`
DeployedRuleName string `json:"deployedRuleName,omitempty" jsonschema:"Name of the rule the server created for this target, when deployed."`
Status string `json:"status" jsonschema:"Per-target status reported by the DQ service (e.g. deployed or SKIPPED)."`
Reason string `json:"reason,omitempty" jsonschema:"Why a target was skipped or failed, when applicable."`
}
Outcome is the per-target result of a deploy.
type Output ¶
type Output struct {
Status OutputStatus `` /* 287-byte string literal not displayed */
Message string `json:"message" jsonschema:"Human-readable summary, including deployed vs skipped counts."`
Preview *Preview `` /* 127-byte string literal not displayed */
Outcomes []Outcome `` /* 139-byte string literal not displayed */
Deployed int `json:"deployed,omitempty" jsonschema:"Number of targets successfully deployed."`
Skipped int `json:"skipped,omitempty" jsonschema:"Number of targets skipped or failed."`
}
Output is the typed response.
type OutputStatus ¶
type OutputStatus string
OutputStatus is the overall outcome of a deploy_dq_rule_template call.
const ( // StatusSuccess means every target was deployed. StatusSuccess OutputStatus = "success" // StatusPartial means the deploy ran but some targets were skipped/failed // while others were deployed. StatusPartial OutputStatus = "partial" // StatusValidationError means the inputs failed validation before any write. StatusValidationError OutputStatus = "validation_error" // StatusError means the deployment failed due to a downstream DQ error. StatusError OutputStatus = "error" // StatusPreview means confirm was not set: the tool returned the template + // target list for review and deployed nothing. StatusPreview OutputStatus = "preview" )
Click to show internal directories.
Click to hide internal directories.