Get Aggregated Scorecard
curl --request POST \
--url https://api.example.com/api/data-readiness/metrics/scorecard \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"asset_fqn": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weight_overrides": {}
}
'import requests
url = "https://api.example.com/api/data-readiness/metrics/scorecard"
payload = {
"asset_fqn": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weight_overrides": {}
}
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({
asset_fqn: '<string>',
as_of: '2023-11-07T05:31:56Z',
workflow_run_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
weight_overrides: {}
})
};
fetch('https://api.example.com/api/data-readiness/metrics/scorecard', 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://api.example.com/api/data-readiness/metrics/scorecard",
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([
'asset_fqn' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'workflow_run_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'weight_overrides' => [
]
]),
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://api.example.com/api/data-readiness/metrics/scorecard"
payload := strings.NewReader("{\n \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\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://api.example.com/api/data-readiness/metrics/scorecard")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/metrics/scorecard")
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 \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\n}"
response = http.request(request)
puts response.read_body{
"overall_score": "0.82",
"scope": "service",
"entity": {
"service": "production_db",
"database_name": "analytics",
"schema_name": "public",
"table_name": "customers"
},
"dimensions": [
{
"dimension_id": "550e8400-e29b-41d4-a716-446655440021",
"name": "completeness",
"fqn": "dimensions.completeness",
"assessment_type": "metadata",
"weight": "0.25",
"numerator": 170,
"denominator": 200,
"score": "0.85",
"metrics": [
{
"metric_definition_id": "550e8400-e29b-41d4-a716-446655440020",
"name": "has_description",
"fqn": "metrics.completeness.has_description",
"numerator": 85,
"denominator": 100,
"score": "0.85",
"asset_count": 100,
"display_name": "Has Description",
"unit": "percent",
"purpose": "<string>",
"description": "<string>"
}
],
"display_name": "Completeness",
"purpose": "<string>",
"description": "<string>"
}
],
"as_of": "2024-01-15T10:30:00Z",
"workflow_run_id": "550e8400-e29b-41d4-a716-446655440023"
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}Metrics
Get Aggregated Scorecard
Returns aggregated metric scores at the requested scope level.
POST
/
api
/
data-readiness
/
metrics
/
scorecard
Get Aggregated Scorecard
curl --request POST \
--url https://api.example.com/api/data-readiness/metrics/scorecard \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"asset_fqn": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weight_overrides": {}
}
'import requests
url = "https://api.example.com/api/data-readiness/metrics/scorecard"
payload = {
"asset_fqn": "<string>",
"as_of": "2023-11-07T05:31:56Z",
"workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weight_overrides": {}
}
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({
asset_fqn: '<string>',
as_of: '2023-11-07T05:31:56Z',
workflow_run_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
weight_overrides: {}
})
};
fetch('https://api.example.com/api/data-readiness/metrics/scorecard', 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://api.example.com/api/data-readiness/metrics/scorecard",
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([
'asset_fqn' => '<string>',
'as_of' => '2023-11-07T05:31:56Z',
'workflow_run_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'weight_overrides' => [
]
]),
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://api.example.com/api/data-readiness/metrics/scorecard"
payload := strings.NewReader("{\n \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\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://api.example.com/api/data-readiness/metrics/scorecard")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/metrics/scorecard")
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 \"asset_fqn\": \"<string>\",\n \"as_of\": \"2023-11-07T05:31:56Z\",\n \"workflow_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"weight_overrides\": {}\n}"
response = http.request(request)
puts response.read_body{
"overall_score": "0.82",
"scope": "service",
"entity": {
"service": "production_db",
"database_name": "analytics",
"schema_name": "public",
"table_name": "customers"
},
"dimensions": [
{
"dimension_id": "550e8400-e29b-41d4-a716-446655440021",
"name": "completeness",
"fqn": "dimensions.completeness",
"assessment_type": "metadata",
"weight": "0.25",
"numerator": 170,
"denominator": 200,
"score": "0.85",
"metrics": [
{
"metric_definition_id": "550e8400-e29b-41d4-a716-446655440020",
"name": "has_description",
"fqn": "metrics.completeness.has_description",
"numerator": 85,
"denominator": 100,
"score": "0.85",
"asset_count": 100,
"display_name": "Has Description",
"unit": "percent",
"purpose": "<string>",
"description": "<string>"
}
],
"display_name": "Completeness",
"purpose": "<string>",
"description": "<string>"
}
],
"as_of": "2024-01-15T10:30:00Z",
"workflow_run_id": "550e8400-e29b-41d4-a716-446655440023"
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}Authorizations
Body
application/json
Request body for the scorecard endpoint.
Response
Successful Response
Aggregated scores at the requested scope.
Was this page helpful?

