Skip to content

Commit

Permalink
merge in master, resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Apr 29, 2022
2 parents 4989900 + c34a1ba commit 8d64aea
Show file tree
Hide file tree
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.
185 changes: 185 additions & 0 deletions datahub-graphql-core/bin/main/analytics.graphql
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!
}
Loading

0 comments on commit 8d64aea

Please sign in to comment.