mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-01 12:06:29 +00:00

Co-authored-by: John Joyce <john@ip-192-168-1-149.us-west-2.compute.internal> Co-authored-by: John Joyce <john@Johns-MBP.attlocal.net> Co-authored-by: John Joyce <john@Johns-MacBook-Pro.local>
75 lines
1.7 KiB
GraphQL
75 lines
1.7 KiB
GraphQL
fragment incidentsFields on EntityIncidentsResult {
|
|
start
|
|
count
|
|
total
|
|
incidents {
|
|
urn
|
|
type
|
|
incidentType
|
|
customType
|
|
title
|
|
description
|
|
status {
|
|
state
|
|
message
|
|
lastUpdated {
|
|
time
|
|
actor
|
|
}
|
|
}
|
|
source {
|
|
type
|
|
}
|
|
created {
|
|
time
|
|
actor
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
fragment datasetSiblingIncidents on Dataset {
|
|
siblings {
|
|
isPrimary
|
|
siblings {
|
|
urn
|
|
type
|
|
... on Dataset {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getEntityIncidents($urn: String!, $start: Int!, $count: Int!, $state: IncidentState) {
|
|
entity(urn: $urn) {
|
|
... on Dataset {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
...datasetSiblingIncidents
|
|
}
|
|
... on DataJob {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
}
|
|
... on DataFlow {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
}
|
|
... on Dashboard {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
}
|
|
... on Chart {
|
|
incidents(start: $start, count: $count, state: $state) {
|
|
...incidentsFields
|
|
}
|
|
}
|
|
}
|
|
} |