datahub/datahub-web-react/src/graphql/assertion.graphql
John Joyce 08bdfbdf93
feat(ui): Supporting rendering custom assertion descriptions (#9722)
Co-authored-by: John Joyce <john@Johns-MBP.attlocal.net>
2024-01-25 15:25:31 -08:00

93 lines
1.8 KiB
GraphQL

fragment assertionDetails on Assertion {
urn
type
platform {
urn
properties {
displayName
logoUrl
}
info {
displayName
logoUrl
}
}
dataPlatformInstance {
...dataPlatformInstanceFields
}
info {
type
datasetAssertion {
scope
aggregation
operator
parameters {
value {
value
type
}
minValue {
value
type
}
maxValue {
value
type
}
}
fields {
urn
path
}
nativeType
nativeParameters {
key
value
}
logic
}
description
}
}
fragment assertionRunEventDetails on AssertionRunEvent {
timestampMillis
assertionUrn
status
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)
}