Monitors
Create a Data Diff Monitor
Audit Logs
Data sources
Data diffs
Explore
BI
- GETList all integrations
- POSTCreate a DBT BI integration
- PUTUpdate a DBT BI integration
- POSTCreate a Hightouch integration
- PUTUpdate a Hightouch integration
- POSTCreate a Looker integration
- PUTUpdate a Looker integration
- POSTCreate a Mode Analytics integration
- PUTUpdate a Mode Analytics integration
- POSTCreate a Power BI integration
- PUTRename a Power BI integration
- POSTCreate a Tableau integration
- PUTUpdate a Tableau integration
- GETGet an integration
- DELRemove an integration
- GETSync a BI integration
Monitors
Create a Data Diff Monitor
POST
/
api
/
v1
/
monitors
/
create
/
diff
curl --request POST \
--url https://app.datafold.com/api/v1/monitors/create/diff \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"alert": {
"different_rows_count": 123,
"different_rows_percent": 123
},
"datadiff": {
"column_remapping": {},
"columns_to_compare": [
"<string>"
],
"dataset_a": {
"connection_id": 123,
"filter": "<string>",
"session_parameters": {},
"table": "<string>",
"time_travel_point": "<string>"
},
"dataset_b": {
"connection_id": 123,
"filter": "<string>",
"session_parameters": {},
"table": "<string>",
"time_travel_point": "<string>"
},
"ignore_string_case": false,
"materialize_results": false,
"primary_key": [
"<string>"
],
"sampling": {
"confidence": 123,
"threshold": 123,
"tolerance": 123
},
"timeseries_dimension_column": "<string>",
"tolerance": {
"float": {
"column_tolerance": {},
"default": {
"type": "<string>",
"value": 123
}
}
}
},
"description": "<string>",
"enabled": true,
"name": "<string>",
"notifications": [
{
"features": [
"attach_csv"
],
"recipients": [
"<string>"
],
"type": "email"
}
],
"schedule": {
"interval": {
"every": "<string>",
"type": "hourly"
}
},
"tags": [
"<string>"
]
}'
{
"id": 123
}
Authorizations
Use the 'Authorization' header with the format 'Key <api-key>'
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://app.datafold.com/api/v1/monitors/create/diff \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"alert": {
"different_rows_count": 123,
"different_rows_percent": 123
},
"datadiff": {
"column_remapping": {},
"columns_to_compare": [
"<string>"
],
"dataset_a": {
"connection_id": 123,
"filter": "<string>",
"session_parameters": {},
"table": "<string>",
"time_travel_point": "<string>"
},
"dataset_b": {
"connection_id": 123,
"filter": "<string>",
"session_parameters": {},
"table": "<string>",
"time_travel_point": "<string>"
},
"ignore_string_case": false,
"materialize_results": false,
"primary_key": [
"<string>"
],
"sampling": {
"confidence": 123,
"threshold": 123,
"tolerance": 123
},
"timeseries_dimension_column": "<string>",
"tolerance": {
"float": {
"column_tolerance": {},
"default": {
"type": "<string>",
"value": 123
}
}
}
},
"description": "<string>",
"enabled": true,
"name": "<string>",
"notifications": [
{
"features": [
"attach_csv"
],
"recipients": [
"<string>"
],
"type": "email"
}
],
"schedule": {
"interval": {
"every": "<string>",
"type": "hourly"
}
},
"tags": [
"<string>"
]
}'
{
"id": 123
}