Skip to main content

Properties

bucketing?

optional bucketing?: "minute" | "hour" | "day" | "week" | "month"

Description

Time bucket granularity for aggregation

chart_id

chart_id: string

Description

The unique identifier of the chart to update

dateRange?

optional dateRange?: { relative: string; } | { $gte: string | number; $lte: string | number; }

Description

Time range to query

description?

optional description?: string

Description

Description of what the chart shows

func?

optional func?: string

Description

Aggregation function to apply (e.g. sum, avg, median, min, max)

groupBy?

optional groupBy?: string | null

Description

Field to group results by

metric?

optional metric?: string

Description

Name of the metric to visualize

name?

optional name?: string

Description

Display name for the chart

owner_id?

optional owner_id?: string

Description

ID of the user who owns this chart

query?

optional query?: object[]

field

field: string
Description
Name of the field to filter on

operator

operator: string
Description
Comparison operator (e.g. is, is not, contains, greater than, less than)

type

type: string
Description
Data type of the field (e.g. string, number)

value

value: string | null
Description
Value to compare against

Description

Filters to apply to the chart data