|
| 1 | +apiVersion: "v3.0.2" |
| 2 | +kind: "DataContract" |
| 3 | +id: "valid_odcs" |
| 4 | +name: "Valid ODCS data contract" |
| 5 | +version: "2.0.0" |
| 6 | +status: "draft" |
| 7 | +tenant: "company-A" |
| 8 | +tags: |
| 9 | +- "datalocation:EU" |
| 10 | +description: |
| 11 | + purpose: "This data can be used for analytical purposes" |
| 12 | + usage: "Use this to analyze shipments" |
| 13 | + limitations: "Not suitable for real-time use cases" |
| 14 | + authoritativeDefinitions: |
| 15 | + - type: "Data Guidelines" |
| 16 | + url: "https://example.com/data-guidelines.html" |
| 17 | + customProperties: |
| 18 | + - property: "github_link" |
| 19 | + value: "https://github.example.com/shipment-specification.yaml" |
| 20 | +customProperties: |
| 21 | +- property: "additionalField" |
| 22 | + value: "some value in a new major contract" |
| 23 | +- property: "owner" |
| 24 | + value: "fulfillment" |
| 25 | +schema: |
| 26 | +- name: "shipments2" |
| 27 | + physicalType: "table" |
| 28 | + physicalName: "shipments_v2" |
| 29 | + businessName: "Shipments" |
| 30 | + description: "This table contains shipment data, including details about shipment IDs, associated orders, delivery dates, carriers, tracking numbers, statuses, and additional shipment information in JSON format." |
| 31 | + dataGranularityDescription: "Not Aggregated" |
| 32 | + tags: |
| 33 | + - "pii" |
| 34 | + quality: |
| 35 | + - type: "sql" |
| 36 | + description: "Table shall contain at least 1 row" |
| 37 | + query: "SELECT COUNT(*) FROM shipments" |
| 38 | + thresholdType: "mustBeGreaterThanOrEqualTo" |
| 39 | + mustBeGreaterThanOrEqualTo: 1 |
| 40 | + properties: |
| 41 | + - name: "shipment_id" |
| 42 | + businessName: "Shipment ID" |
| 43 | + physicalName: "sid" |
| 44 | + logicalType: "string" |
| 45 | + description: "Unique identifier for each shipment." |
| 46 | + required: false |
| 47 | + unique: false |
| 48 | + physicalType: "uuid" |
| 49 | + primaryKey: true |
| 50 | + partitioned: false |
| 51 | + classification: "internal" |
| 52 | + examples: |
| 53 | + - "123e4567-e89b-12d3-a456-426614174000" |
| 54 | + criticalDataElement: false |
| 55 | + tags: |
| 56 | + - "businesskey" |
| 57 | + authoritativeDefinitions: |
| 58 | + - type: "definition" |
| 59 | + url: "https://datamesh-manager-demo.azurecontainerapps.io/demo440238121320/definitions/fulfillment/shipment_id" |
| 60 | + - name: "order_id" |
| 61 | + physicalName: "oid" |
| 62 | + physicalType: "text" |
| 63 | + primaryKey: false |
| 64 | + partitioned: false |
| 65 | + authoritativeDefinitions: |
| 66 | + - type: "definition" |
| 67 | + url: "https://datamesh-manager-demo.azurecontainerapps.io/demo440238121320/definitions/sales/order_id" |
| 68 | + - name: "delivery_date" |
| 69 | + businessName: "Delivery Date" |
| 70 | + logicalType: "date" |
| 71 | + description: "The actual or expected delivery date of the shipment." |
| 72 | + required: false |
| 73 | + unique: false |
| 74 | + physicalType: "timestamp_tz" |
| 75 | + primaryKey: false |
| 76 | + partitioned: false |
| 77 | + classification: "internal" |
| 78 | + examples: |
| 79 | + - "2023-10-01T10:00:00Z" |
| 80 | + criticalDataElement: false |
| 81 | + - name: "carrier" |
| 82 | + businessName: "Carrier" |
| 83 | + logicalType: "string" |
| 84 | + description: "The shipping carrier used for the delivery." |
| 85 | + required: false |
| 86 | + unique: false |
| 87 | + physicalType: "text" |
| 88 | + primaryKey: false |
| 89 | + partitioned: false |
| 90 | + classification: "internal" |
| 91 | + examples: |
| 92 | + - "FedEx" |
| 93 | + - "UPS" |
| 94 | + criticalDataElement: false |
| 95 | + - name: "tracking_number" |
| 96 | + businessName: "Tracking Number" |
| 97 | + logicalType: "string" |
| 98 | + description: "Tracking number provided by the carrier." |
| 99 | + required: false |
| 100 | + unique: false |
| 101 | + physicalType: "text" |
| 102 | + primaryKey: false |
| 103 | + partitioned: false |
| 104 | + classification: "restricted" |
| 105 | + examples: |
| 106 | + - "1Z999AA10123456784" |
| 107 | + criticalDataElement: false |
| 108 | + customProperties: |
| 109 | + - property: "external" |
| 110 | + value: "true" |
| 111 | + - name: "status" |
| 112 | + businessName: "Status" |
| 113 | + logicalType: "string" |
| 114 | + description: "Current status of the shipment." |
| 115 | + required: false |
| 116 | + unique: false |
| 117 | + physicalType: "text" |
| 118 | + primaryKey: false |
| 119 | + partitioned: false |
| 120 | + classification: "internal" |
| 121 | + examples: |
| 122 | + - "Delivered" |
| 123 | + - "In Transit" |
| 124 | + criticalDataElement: false |
| 125 | + - name: "inline_object_definition" |
| 126 | + businessName: "Inline Object Definition" |
| 127 | + logicalType: "object" |
| 128 | + description: "A JSON representation of additional shipment info" |
| 129 | + required: false |
| 130 | + unique: false |
| 131 | + physicalType: "json" |
| 132 | + primaryKey: false |
| 133 | + partitioned: false |
| 134 | + partitionKeyPosition: -1 |
| 135 | + classification: "internal" |
| 136 | + examples: |
| 137 | + - "{\"destination\": \"New York\"}" |
| 138 | + criticalDataElement: false |
| 139 | + quality: |
| 140 | + - type: "text" |
| 141 | + description: "{field} must contain the field \"destination\"" |
| 142 | + - name: "address" |
| 143 | + businessName: "Shipment Address" |
| 144 | + logicalType: "object" |
| 145 | + description: "Shipping address details." |
| 146 | + required: true |
| 147 | + physicalType: "JSON" |
| 148 | + classification: "restricted" |
| 149 | + properties: |
| 150 | + - name: "street" |
| 151 | + businessName: "Street" |
| 152 | + logicalType: "string" |
| 153 | + description: "Street address." |
| 154 | + required: true |
| 155 | + unique: false |
| 156 | + physicalType: "text" |
| 157 | + primaryKey: false |
| 158 | + partitioned: false |
| 159 | + classification: "restricted" |
| 160 | + examples: |
| 161 | + - "Marienplatz 1" |
| 162 | + - name: "city" |
| 163 | + businessName: "City" |
| 164 | + logicalType: "string" |
| 165 | + description: "City of the shipping address." |
| 166 | + required: true |
| 167 | + unique: false |
| 168 | + physicalType: "text" |
| 169 | + primaryKey: false |
| 170 | + partitioned: false |
| 171 | + classification: "restricted" |
| 172 | + examples: |
| 173 | + - "Munich" |
| 174 | + - name: "country" |
| 175 | + businessName: "Country" |
| 176 | + logicalType: "string" |
| 177 | + description: "Country of the shipping address." |
| 178 | + required: true |
| 179 | + physicalType: "text" |
| 180 | + primaryKey: false |
| 181 | + partitioned: false |
| 182 | + classification: "restricted" |
| 183 | + examples: |
| 184 | + - "DE" |
| 185 | +servers: |
| 186 | +- server: "production" |
| 187 | + type: "bigquery" |
| 188 | + environment: "production" |
| 189 | + dataset: "shipments_v1" |
| 190 | + project: "acme_shipments_prod" |
| 191 | +support: |
| 192 | +- channel: "slackname" |
| 193 | + url: "http://find.me.here" |
| 194 | + tool: "slack" |
| 195 | + scope: "interactive" |
| 196 | +authoritativeDefinitions: |
| 197 | +- type: "Guidelines" |
| 198 | + url: "https://example.com/guidelines" |
| 199 | +price: |
| 200 | + priceAmount: 1 |
| 201 | + priceCurrency: "EUR" |
| 202 | + priceUnit: "Per 1000 requests" |
| 203 | +team: |
| 204 | +- username: "vimportant" |
| 205 | + role: "administrator" |
| 206 | + dateIn: "2020-01-01" |
| 207 | +- username: "nimportant" |
| 208 | + role: "reader" |
| 209 | + dateIn: "2020-01-01" |
| 210 | + dateOut: "2024-10-10" |
| 211 | +slaProperties: |
| 212 | +- property: "availability" |
| 213 | + value: "95%" |
| 214 | + unit: "%" |
| 215 | + driver: "operational" |
0 commit comments