curl --request POST \
--url https://statsigapi.net/console/v1/ingestion \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"dataset": "Metrics",
"type": "redshift",
"source_name": "<string>",
"column_mapping": {
"unit_id": "<string>",
"id_type": "<string>",
"dateid": "<string>",
"metric_name": "<string>",
"metric_value": "null",
"numerator": "null",
"denominator": "null"
},
"query": "<string>",
"use_delta_sharing": true,
"share": "<string>",
"schema": "<string>",
"table": "<string>",
"enabled": true
}
'{
"type": "databricks",
"dataset": "Metrics",
"source_name": "ingestion-1",
"query": "SELECT * FROM TABLE",
"column_mapping": {
"unit_id": "string",
"id_type": "string",
"dateid": "string",
"metric_name": "string",
"metric_value": "string",
"numerator": "string",
"denominator": "string"
},
"use_delta_sharing": false,
"share": "string",
"schema": "string",
"table": "string",
"enabled": false
}curl --request POST \
--url https://statsigapi.net/console/v1/ingestion \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"dataset": "Metrics",
"type": "redshift",
"source_name": "<string>",
"column_mapping": {
"unit_id": "<string>",
"id_type": "<string>",
"dateid": "<string>",
"metric_name": "<string>",
"metric_value": "null",
"numerator": "null",
"denominator": "null"
},
"query": "<string>",
"use_delta_sharing": true,
"share": "<string>",
"schema": "<string>",
"table": "<string>",
"enabled": true
}
'{
"type": "databricks",
"dataset": "Metrics",
"source_name": "ingestion-1",
"query": "SELECT * FROM TABLE",
"column_mapping": {
"unit_id": "string",
"id_type": "string",
"dateid": "string",
"metric_name": "string",
"metric_value": "string",
"numerator": "string",
"denominator": "string"
},
"use_delta_sharing": false,
"share": "string",
"schema": "string",
"table": "string",
"enabled": false
}Optional header to respect review settings for mutation endpoints.
Metrics redshift, bigquery-v2, snowflake-v2, databricks, azure-synapse, s3, athena, adls Show child attributes
The unique user identifier this metric is for. This might not necessarily be a user_id - it could be a custom_id of some kind. Make sure this is in the same format as your logged unit_ids.
The id_type the unit_id represents. Must be valid id_type. Default Statsig types are user_id/stable_id, but you may have generated custom id_types. Make sure this matches (case sensitive) a customID in your project, or you won’t get experiment results.
Date of the daily metric, ISO formatted (ex. 2021-02-17). We’ll load custom metrics to whatever date you use here.
String format. Not null. Length < 128 characters.
Numeric value for the metric. This OR both of numerator and denominator need to be provided.
Required for ratio metrics. If present along with a denominator in any record, the metric will be treated as ratio and only calculated for users with non-null denominators
Required for ratio metrics. If present along with a numerator in any record, the metric will be treated as ratio and only calculated for users with non-null numerators.
true, false