-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6,229 changed files
with
79,619 additions
and
58,385 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# TODO: Complete comments to all of these types. | ||
|
||
extend type Query { | ||
""" | ||
Deprecated, use appConfig Query instead | ||
Whether the analytics feature is enabled in the UI | ||
""" | ||
isAnalyticsEnabled: Boolean! @deprecated | ||
|
||
""" | ||
Retrieves a set of server driven Analytics Charts to render in the UI | ||
""" | ||
getAnalyticsCharts: [AnalyticsChartGroup!]! | ||
|
||
""" | ||
Retrieves a set of server driven Analytics Highlight Cards to render in the UI | ||
""" | ||
getHighlights: [Highlight!]! | ||
|
||
""" | ||
Retrieves a set of charts regarding the ingested metadata | ||
""" | ||
getMetadataAnalyticsCharts(input: MetadataAnalyticsInput!): [AnalyticsChartGroup!]! | ||
} | ||
|
||
""" | ||
Input to fetch metadata analytics charts | ||
""" | ||
input MetadataAnalyticsInput { | ||
""" | ||
Entity type to fetch analytics for (If empty, queries across all entities) | ||
""" | ||
entityType: EntityType | ||
|
||
""" | ||
Urn of the domain to fetch analytics for (If empty or GLOBAL, queries across all domains) | ||
""" | ||
domain: String | ||
|
||
""" | ||
Search query to filter down result (If empty, does not apply any search query) | ||
""" | ||
query: String | ||
} | ||
|
||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
union AnalyticsChart = TimeSeriesChart | BarChart | TableChart | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type AnalyticsChartGroup { | ||
groupId: String! | ||
title: String! | ||
charts: [AnalyticsChart!]! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
enum DateInterval { | ||
SECOND | ||
MINUTE | ||
HOUR | ||
DAY | ||
WEEK | ||
MONTH | ||
YEAR | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type DateRange { | ||
start: String! | ||
end: String! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type NumericDataPoint { | ||
x: String! | ||
y: Int! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type NamedLine { | ||
name: String! | ||
data: [NumericDataPoint!]! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type TimeSeriesChart { | ||
title: String! | ||
lines: [NamedLine!]! | ||
dateRange: DateRange! | ||
interval: DateInterval! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type BarSegment { | ||
label: String! | ||
value: Int! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type NamedBar { | ||
name: String! | ||
segments: [BarSegment!]! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type BarChart { | ||
title: String! | ||
bars: [NamedBar!]! | ||
} | ||
|
||
|
||
""" | ||
Parameters required to specify the page to land once clicked | ||
""" | ||
type LinkParams { | ||
""" | ||
Context to define the search page | ||
""" | ||
searchParams: SearchParams | ||
|
||
""" | ||
Context to define the entity profile page | ||
""" | ||
entityProfileParams: EntityProfileParams | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type Cell { | ||
value: String! | ||
entity: Entity | ||
linkParams: LinkParams | ||
} | ||
|
||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type Row { | ||
# DEPRECATED All values are expected to be strings. | ||
values: [String!]! | ||
|
||
# More detailed information about each cell in the row | ||
cells: [Cell!] | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type TableChart { | ||
title: String! | ||
columns: [String!]! | ||
rows: [Row!]! | ||
} | ||
|
||
""" | ||
For consumption by UI only | ||
""" | ||
type Highlight { | ||
value: Int! | ||
title: String! | ||
body: String! | ||
} |
Oops, something went wrong.