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
}
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
}
Use the 'Authorization' header with the format 'Key <api-key>'
Successful Response
The response is of type object
.