mirror of
https://github.com/supabase/supabase.git
synced 2026-07-03 03:24:24 +08:00
* Scaffold for API reports * Add support for filtering database reports by replicas * midway adding read replica support for custom reports * Refactor reports page to use react query and deprecate project content mobxstore * Reports add chart labels if metric is read replica specific * Give an easier way to remove charts from reports * make reports layout non-blocking * Update apps/studio/components/interfaces/Reports/Reports.tsx Co-authored-by: Alaister Young <alaister@users.noreply.github.com> --------- Co-authored-by: Alaister Young <a@alaisteryoung.com> Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
20 lines
406 B
TypeScript
20 lines
406 B
TypeScript
export type DataPoint = {
|
|
id?: string
|
|
loopId?: number | string
|
|
period_start: string
|
|
periodStartFormatted?: string
|
|
} & {
|
|
// Attribute name will be the key
|
|
[key: string]: string | number
|
|
}
|
|
|
|
export interface AnalyticsData {
|
|
data: DataPoint[]
|
|
format: string
|
|
total: number
|
|
yAxisLimit: number
|
|
hasNoData?: boolean
|
|
}
|
|
|
|
export type AnalyticsInterval = '1m' | '5m' | '10m' | '30m' | '1h' | '1d'
|