Monitors
Create a Metric 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 Metric Monitor
POST
/
api
/
v1
/
monitors
/
create
/
metric
curl --request POST \
--url https://app.datafold.com/api/v1/monitors/create/metric \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"alert": {
"sensitivity": 50,
"type": "<string>"
},
"connection_id": 123,
"description": "<string>",
"enabled": true,
"metric": {
"filter": "<string>",
"metric": "row_count",
"table": "<string>",
"type": "table"
},
"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/metric \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"alert": {
"sensitivity": 50,
"type": "<string>"
},
"connection_id": 123,
"description": "<string>",
"enabled": true,
"metric": {
"filter": "<string>",
"metric": "row_count",
"table": "<string>",
"type": "table"
},
"name": "<string>",
"notifications": [
{
"features": [
"attach_csv"
],
"recipients": [
"<string>"
],
"type": "email"
}
],
"schedule": {
"interval": {
"every": "<string>",
"type": "hourly"
}
},
"tags": [
"<string>"
]
}'
{
"id": 123
}