TriggerSqlTestRunAgain
curl --request POST \
--url https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"executionId": "<string>"
}
'import requests
url = "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again"
payload = { "executionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({executionId: '<string>'})
};
fetch('https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'executionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again"
payload := strings.NewReader("{\n \"executionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"executionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"executionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"sqlTestResult": {
"sqlTestId": "<string>",
"entityIds": [
{
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"entityId": "<string>"
}
],
"rowsCount": 123,
"executionId": "<string>",
"executedAt": "2023-01-15T01:30:15.01Z",
"errorMessage": "<string>",
"resultData": "<string>",
"timeValues": {
"executedAt": "2023-01-15T01:30:15.01Z",
"lastExecutedAt": "2023-01-15T01:30:15.01Z",
"lastPassedAt": "2023-01-15T01:30:15.01Z",
"lookbackCapped": true
},
"rerunOfExecutionId": "<string>"
},
"status": "DATACHECK_STATUS_UNSPECIFIED",
"message": "<string>",
"monitorResult": {
"monitorId": "<string>",
"monitorName": "<string>",
"monitorPath": "<string>",
"metricsVersion": 123,
"entityId": {
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"entityId": "<string>"
},
"executionId": "<string>",
"executedAt": "2023-01-15T01:30:15.01Z",
"predictions": [
{
"status": "DATACHECK_STATUS_UNSPECIFIED",
"message": "<string>",
"value": 123,
"expected": 123,
"field": "<string>",
"segment": "<string>"
}
]
}
}
}synq.datachecks.v1.TriggerService
TriggerSqlTestRunAgain
Run a SQL test again with the time placeholder values of an earlier execution.
Use it after a data fix, or to triage a failure, so the run checks the same
rows as the earlier execution. The test runs with its current SQL.
{{ executed_at }}, {{ last_executed_at }} and {{ last_passed_at }} get
the values the earlier execution used. Later scheduled runs do not take their
time values from this run.
POST
/
api
/
datachecks
/
scheduler
/
v1
/
trigger
/
sql-test-run-again
TriggerSqlTestRunAgain
curl --request POST \
--url https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"executionId": "<string>"
}
'import requests
url = "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again"
payload = { "executionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({executionId: '<string>'})
};
fetch('https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'executionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again"
payload := strings.NewReader("{\n \"executionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"executionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/datachecks/scheduler/v1/trigger/sql-test-run-again")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"executionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"sqlTestResult": {
"sqlTestId": "<string>",
"entityIds": [
{
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"entityId": "<string>"
}
],
"rowsCount": 123,
"executionId": "<string>",
"executedAt": "2023-01-15T01:30:15.01Z",
"errorMessage": "<string>",
"resultData": "<string>",
"timeValues": {
"executedAt": "2023-01-15T01:30:15.01Z",
"lastExecutedAt": "2023-01-15T01:30:15.01Z",
"lastPassedAt": "2023-01-15T01:30:15.01Z",
"lookbackCapped": true
},
"rerunOfExecutionId": "<string>"
},
"status": "DATACHECK_STATUS_UNSPECIFIED",
"message": "<string>",
"monitorResult": {
"monitorId": "<string>",
"monitorName": "<string>",
"monitorPath": "<string>",
"metricsVersion": 123,
"entityId": {
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"entityId": "<string>"
},
"executionId": "<string>",
"executedAt": "2023-01-15T01:30:15.01Z",
"predictions": [
{
"status": "DATACHECK_STATUS_UNSPECIFIED",
"message": "<string>",
"value": 123,
"expected": 123,
"field": "<string>",
"segment": "<string>"
}
]
}
}
}Authorizations
Body
application/json