mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-02 22:37:58 +00:00
277 lines
5.1 KiB
GraphQL
277 lines
5.1 KiB
GraphQL
fragment assertionInfo on AssertionInfo {
|
|
type
|
|
description
|
|
lastUpdated {
|
|
time
|
|
actor
|
|
}
|
|
datasetAssertion {
|
|
datasetUrn
|
|
scope
|
|
aggregation
|
|
operator
|
|
parameters {
|
|
value {
|
|
value
|
|
type
|
|
}
|
|
minValue {
|
|
value
|
|
type
|
|
}
|
|
maxValue {
|
|
value
|
|
type
|
|
}
|
|
}
|
|
fields {
|
|
urn
|
|
path
|
|
}
|
|
nativeType
|
|
nativeParameters {
|
|
key
|
|
value
|
|
}
|
|
logic
|
|
}
|
|
freshnessAssertion {
|
|
type
|
|
entityUrn
|
|
schedule {
|
|
type
|
|
cron {
|
|
cron
|
|
timezone
|
|
}
|
|
fixedInterval {
|
|
unit
|
|
multiple
|
|
}
|
|
}
|
|
filter {
|
|
type
|
|
sql
|
|
}
|
|
}
|
|
sqlAssertion {
|
|
type
|
|
entityUrn
|
|
statement
|
|
changeType
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
}
|
|
fieldAssertion {
|
|
type
|
|
entityUrn
|
|
filter {
|
|
type
|
|
sql
|
|
}
|
|
fieldValuesAssertion {
|
|
field {
|
|
path
|
|
type
|
|
nativeType
|
|
}
|
|
transform {
|
|
type
|
|
}
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
failThreshold {
|
|
type
|
|
value
|
|
}
|
|
excludeNulls
|
|
}
|
|
fieldMetricAssertion {
|
|
field {
|
|
path
|
|
type
|
|
nativeType
|
|
}
|
|
metric
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
}
|
|
}
|
|
volumeAssertion {
|
|
type
|
|
entityUrn
|
|
filter {
|
|
type
|
|
sql
|
|
}
|
|
rowCountTotal {
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
}
|
|
rowCountChange {
|
|
type
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
}
|
|
incrementingSegmentRowCountTotal {
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
segment {
|
|
...incrementingSegmentSpecDetails
|
|
}
|
|
}
|
|
incrementingSegmentRowCountChange {
|
|
type
|
|
operator
|
|
parameters {
|
|
...assertionStdParametersDetails
|
|
}
|
|
segment {
|
|
...incrementingSegmentSpecDetails
|
|
}
|
|
}
|
|
}
|
|
schemaAssertion {
|
|
entityUrn
|
|
compatibility
|
|
fields {
|
|
path
|
|
type
|
|
nativeType
|
|
}
|
|
schema {
|
|
fields {
|
|
fieldPath
|
|
type
|
|
nativeDataType
|
|
}
|
|
}
|
|
}
|
|
source {
|
|
type
|
|
created {
|
|
time
|
|
actor
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment assertionDetails on Assertion {
|
|
urn
|
|
type
|
|
platform {
|
|
urn
|
|
properties {
|
|
displayName
|
|
logoUrl
|
|
}
|
|
info {
|
|
displayName
|
|
logoUrl
|
|
}
|
|
}
|
|
dataPlatformInstance {
|
|
...dataPlatformInstanceFields
|
|
}
|
|
info {
|
|
...assertionInfo
|
|
}
|
|
tags {
|
|
...globalTagsFields
|
|
}
|
|
}
|
|
|
|
fragment incrementingSegmentSpecDetails on IncrementingSegmentSpec {
|
|
field {
|
|
path
|
|
type
|
|
nativeType
|
|
}
|
|
transformer {
|
|
type
|
|
nativeType
|
|
}
|
|
}
|
|
|
|
fragment assertionStdParametersDetails on AssertionStdParameters {
|
|
value {
|
|
value
|
|
type
|
|
}
|
|
minValue {
|
|
value
|
|
type
|
|
}
|
|
maxValue {
|
|
value
|
|
type
|
|
}
|
|
}
|
|
|
|
fragment assertionRunEventDetails on AssertionRunEvent {
|
|
timestampMillis
|
|
lastObservedMillis
|
|
assertionUrn
|
|
status
|
|
runId
|
|
runtimeContext {
|
|
key
|
|
value
|
|
}
|
|
result {
|
|
type
|
|
actualAggValue
|
|
rowCount
|
|
missingCount
|
|
unexpectedCount
|
|
externalUrl
|
|
nativeResults {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
}
|
|
|
|
query getAssertionRuns($assertionUrn: String!, $startTime: Long, $endTime: Long, $limit: Int) {
|
|
assertion(urn: $assertionUrn) {
|
|
urn
|
|
...assertionDetails
|
|
runEvents(status: COMPLETE, startTimeMillis: $startTime, endTimeMillis: $endTime, limit: $limit) {
|
|
total
|
|
failed
|
|
succeeded
|
|
runEvents {
|
|
...assertionRunEventDetails
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation deleteAssertion($urn: String!) {
|
|
deleteAssertion(urn: $urn)
|
|
}
|
|
|
|
fragment assertionDetailsWithRunEvents on Assertion {
|
|
...assertionDetails
|
|
runEvents(status: COMPLETE, limit: 1) {
|
|
total
|
|
failed
|
|
succeeded
|
|
runEvents {
|
|
...assertionRunEventDetails
|
|
}
|
|
}
|
|
}
|