Files
supabase/apps/studio/data/analytics/constants.ts
Joshen Lim 1afaae6447 Chore/reports read replicas filter (#23711)
* 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>
2024-05-07 16:44:23 +08:00

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'