Sign up and get started with Confidence today! Create your account
Sign up and get started with Confidence today! Create your account
Create a new fact table. A fact table is a description of a dataset, specifically, it describes which columns correspond to entities, dimensions and measurements. It is the basis for describing metrics.
curl --request POST \
--url https://metrics.eu.confidence.dev/v1/factTables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sql": "<string>",
"displayName": "<string>",
"timestampColumn": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entities": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entity": "<string>"
}
],
"name": "<string>",
"description": "<string>",
"measures": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"displayName": "<string>",
"unit": {
"baseUnitMultiplier": 123,
"baseUnit": "BASE_UNIT_UNSPECIFIED",
"currencyCode": "<string>",
"customUnit": "<string>",
"entity": "<string>",
"factTable": "<string>"
},
"declaredType": "COLUMN_TYPE_UNSPECIFIED"
}
],
"dimensions": [
{
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
}
],
"factDataDeliveredUntilTime": {},
"labels": [
{}
],
"owner": "<string>",
"skipSqlPreview": true
}
'{
"sql": "<string>",
"displayName": "<string>",
"timestampColumn": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entities": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entity": "<string>"
}
],
"state": "TABLE_STATE_UNSPECIFIED",
"schemaValidationJob": "<string>",
"createTime": {},
"updateTime": {},
"creator": "<string>",
"updater": "<string>",
"name": "<string>",
"description": "<string>",
"measures": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"displayName": "<string>",
"unit": {
"baseUnitMultiplier": 123,
"baseUnit": "BASE_UNIT_UNSPECIFIED",
"currencyCode": "<string>",
"customUnit": "<string>",
"entity": "<string>",
"factTable": "<string>"
},
"declaredType": "COLUMN_TYPE_UNSPECIFIED"
}
],
"partitionedUpdateStrategyState": {
"currentPartitionLastCheckTime": {},
"existsCheckDuration": {},
"state": "STATE_UNSPECIFIED",
"usualLateness": {},
"count": 123
},
"dimensions": [
{
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
}
],
"error": {
"message": "<string>",
"details": [
"<string>"
]
},
"factDataDeliveredUntilTime": {},
"dataDeliveredUntilUpdateStrategyConfig": {
"strategy": "STRATEGY_UNSPECIFIED",
"disableEmptyPartitions": true,
"automaticUpdateConfig": {
"commitDelay": {},
"incrementDuration": {},
"changeThreshold": {
"value": "<string>"
}
},
"dailyUpdateConfig": {
"maxZeroDuration": {}
},
"hourlyUpdateConfig": {
"maxZeroDuration": {}
}
},
"deleteTime": {},
"labels": [
{}
],
"owner": "<string>",
"systemCreated": true
}Documentation Index
Fetch the complete documentation index at: https://confidence.spotify.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id to the give the created fact table. If a not set a random one will be generated.
A data warehouse-specific query to get the data of the fact table.
Human friendly name of the fact table.
The column of the fact table that represents the time the event occurred.
Show child attributes
Mapping between columns and the entities involved in the event.
Show child attributes
Unique identifier of the fact table.
For example: factTables/0smva5nxuhv4yts6paxt
Human readable description of the fact table.
Mapping between columns of the underlying table and measures.
Show child attributes
Mapping between columns and dimensions of the entities.
Show child attributes
The current maximum time point where there is available data for the fact table.
The strategy for updating fact_data_delivered_until_time in the fact
table.
Show child attributes
Custom labels for this fact table.
Show child attributes
The owner of the resource. If not set will default to the creator.
If set to true, skips the SQL preview query (and goes directly into TABLE_STATE_ACTIVE). When true, all columns must have their types explicitly specified.
Returns a FactTable.
A set of events from some business process, for example, a sale occurred.
A data warehouse-specific query to get the data of the fact table.
Human friendly name of the fact table.
The column of the fact table that represents the time the event occurred.
Show child attributes
Mapping between columns and the entities involved in the event.
Show child attributes
Current state of the fact table.
TABLE_STATE_UNSPECIFIED, TABLE_STATE_CREATING, TABLE_STATE_ACTIVE, TABLE_STATE_FAILED, TABLE_STATE_UPDATING, TABLE_STATE_DELETED Resource name of the sql job that was used to validate the schema of the fact table.
Time when the fact table was first created.
Time when the fact table was last updated.
Reference to the identity that created this fact table.
Reference to the identity that last updated this fact table.
Unique identifier of the fact table.
For example: factTables/0smva5nxuhv4yts6paxt
Human readable description of the fact table.
Mapping between columns of the underlying table and measures.
Show child attributes
Show child attributes
Mapping between columns and dimensions of the entities.
Show child attributes
Indicates whether an errors has occurred.
Show child attributes
The current maximum time point where there is available data for the fact table.
The strategy for updating fact_data_delivered_until_time in the fact
table.
Show child attributes
Time when the fact table table was deleted.
Custom labels for this fact table.
Show child attributes
The owner of the resource. If not set will default to the creator.
If this fact table is an automatically created fact table.
Was this page helpful?
curl --request POST \
--url https://metrics.eu.confidence.dev/v1/factTables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sql": "<string>",
"displayName": "<string>",
"timestampColumn": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entities": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entity": "<string>"
}
],
"name": "<string>",
"description": "<string>",
"measures": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"displayName": "<string>",
"unit": {
"baseUnitMultiplier": 123,
"baseUnit": "BASE_UNIT_UNSPECIFIED",
"currencyCode": "<string>",
"customUnit": "<string>",
"entity": "<string>",
"factTable": "<string>"
},
"declaredType": "COLUMN_TYPE_UNSPECIFIED"
}
],
"dimensions": [
{
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
}
],
"factDataDeliveredUntilTime": {},
"labels": [
{}
],
"owner": "<string>",
"skipSqlPreview": true
}
'{
"sql": "<string>",
"displayName": "<string>",
"timestampColumn": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entities": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"entity": "<string>"
}
],
"state": "TABLE_STATE_UNSPECIFIED",
"schemaValidationJob": "<string>",
"createTime": {},
"updateTime": {},
"creator": "<string>",
"updater": "<string>",
"name": "<string>",
"description": "<string>",
"measures": [
{
"column": {
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
},
"displayName": "<string>",
"unit": {
"baseUnitMultiplier": 123,
"baseUnit": "BASE_UNIT_UNSPECIFIED",
"currencyCode": "<string>",
"customUnit": "<string>",
"entity": "<string>",
"factTable": "<string>"
},
"declaredType": "COLUMN_TYPE_UNSPECIFIED"
}
],
"partitionedUpdateStrategyState": {
"currentPartitionLastCheckTime": {},
"existsCheckDuration": {},
"state": "STATE_UNSPECIFIED",
"usualLateness": {},
"count": 123
},
"dimensions": [
{
"name": "<string>",
"type": "COLUMN_TYPE_UNSPECIFIED",
"repeated": true
}
],
"error": {
"message": "<string>",
"details": [
"<string>"
]
},
"factDataDeliveredUntilTime": {},
"dataDeliveredUntilUpdateStrategyConfig": {
"strategy": "STRATEGY_UNSPECIFIED",
"disableEmptyPartitions": true,
"automaticUpdateConfig": {
"commitDelay": {},
"incrementDuration": {},
"changeThreshold": {
"value": "<string>"
}
},
"dailyUpdateConfig": {
"maxZeroDuration": {}
},
"hourlyUpdateConfig": {
"maxZeroDuration": {}
}
},
"deleteTime": {},
"labels": [
{}
],
"owner": "<string>",
"systemCreated": true
}