Skip to content

Commit

Permalink
Update 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed Oct 30, 2024
1 parent 73087bf commit 169a89b
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 9 deletions.
59 changes: 50 additions & 9 deletions versions/0.9.3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Specification
- [Model Object](#model-object)
- [Field Object](#field-object)
- [Definition Object](#definition-object)
- [Schema Object](#schema-object)
- [Schema Object (DEPRECATED)](#schema-object-deprecated)
- [Example Object](#example-object)
- [Service Level Object](#service-levels-object)
- [Quality Object](#quality-object)
Expand All @@ -302,7 +302,7 @@ It is _RECOMMENDED_ that the root document be named: `datacontract.yaml`.
| terms | [Terms Object](#terms-object) | Specifies the terms and conditions of the data contract. |
| models | Map[`string`, [Model Object](#model-object)] | Specifies the logical data model. |
| definitions | Map[`string`, [Definition Object](#definition-object)] | Specifies definitions. |
| schema | [Schema Object](#schema-object) | Specifies the physical schema. The specification supports different schema format. |
| schema | [Schema Object (DEPRECATED)](#schema-object-deprecated) | Specifies the physical schema. The specification supports different schema format. |
| examples | Array of [Example Objects](#example-object) | Specifies example data sets for the data model. The specification supports different example types. |
| servicelevels | [Service Levels Object](#service-levels-object) | Specifies the service level of the provided data |
| quality | [Quality Object](#quality-object) | Specifies the quality attributes and checks. The specification supports different quality check DSLs. |
Expand Down Expand Up @@ -409,12 +409,53 @@ servers:
#### Redshift Server Object
| Field | Type | Description |
|----------|----------|-------------|
| type | `string` | `redshift` |
| account | `string` | |
| database | `string` | |
| schema | `string` | |
| Field | Type | Description |
|-------------------|----------|---------------------------------------------------------------------------------------------------------------------|
| type | `string` | `redshift` |
| account | `string` | |
| database | `string` | |
| schema | `string` | |
| clusterIdentifier | `string` | Identifier of the cluster. <br /> Example: `analytics-cluster` |
| host | `string` | Host of the cluster. <br /> Example: `analytics-cluster.example.eu-west-1.redshift.amazonaws.com` |
| port | `number` | Port of the cluster. <br /> Example: `5439` |
| endpoint | `string` | Endpoint of the cluster <br /> Example: `analytics-cluster.example.eu-west-1.redshift.amazonaws.com:5439/analytics` |

Example, specifying an endpoint:

```yaml
servers:
analytics:
type: redshift
account: '123456789012'
database: analytics
schema: analytics
endpoint: analytics-cluster.example.eu-west-1.redshift.amazonaws.com:5439/analytics
```

Example, specifying the cluster identifier:

```yaml
servers:
analytics:
type: redshift
account: '123456789012'
database: analytics
schema: analytics
clusterIdentifier: analytics-cluster
```

Example, specifying the cluster host:

```yaml
servers:
analytics:
type: redshift
account: '123456789012'
database: analytics
schema: analytics
host: analytics-cluster.example.eu-west-1.redshift.amazonaws.com
port: 5439
```

#### Azure Server Object

Expand Down Expand Up @@ -878,7 +919,7 @@ One can either describe each service level informally using the `description` fi
|--------------|-----------------------------------------------|-------------------------------------------------------------------------|
| availability | [Availability Object](#availability-object) | The promised uptime of the system that provides the data |
| retention | [Retention Object](#retention-object) | The period how long data will be available. |
| latency | [Latency Object](#latency-object) | The maximum amount of time from the the source to its destination. |
| latency | [Latency Object](#latency-object) | The maximum amount of time from the source to its destination. |
| freshness | [Freshness Object](#freshness-object) | The maximum age of the youngest entry. |
| frequency | [Frequency Object](#frequency-object) | The update frequency. |
| support | [Support Object](#support-object) | The times when support is provided. |
Expand Down
26 changes: 26 additions & 0 deletions versions/0.9.3/datacontract.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,39 @@
"type": "string",
"description": "An optional string describing the server."
},
"host": {
"type": "string",
"description": "An optional string describing the host name."
},
"database": {
"type": "string",
"description": "An optional string describing the server."
},
"schema": {
"type": "string",
"description": "An optional string describing the server."
},
"clusterIdentifier": {
"type": "string",
"description": "An optional string describing the cluster's identifier.",
"examples": [
"redshift-prod-eu",
"analytics-cluster"
]
},
"port": {
"type": "integer",
"description": "An optional string describing the cluster's port.",
"examples": [
5439
]
},
"endpoint": {
"type": "string",
"description": "An optional string describing the cluster's endpoint.",
"examples": [
"analytics-cluster.example.eu-west-1.redshift.amazonaws.com:5439/analytics"
]
}
},
"additionalProperties": true,
Expand Down

0 comments on commit 169a89b

Please sign in to comment.