mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
6123e00e6c
* update granularity * 2min interval client side * fix type error * fix type errors * fix type error * correct typing * fix type * add tests to ggregate to 2 min fn * cleanup * cleanup2 * prettier
18 lines
372 B
TypeScript
18 lines
372 B
TypeScript
export type DataPoint = {
|
|
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' | '2m' | '5m' | '10m' | '30m' | '1h' | '1d'
|