forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
incident.graphql
77 lines (75 loc) · 1.73 KB
/
incident.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
}
tags {
...globalTagsFields
}
}
}
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
}
}
}
}