Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Add maxDataPoints to the Table panel #385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions grafonnet/table_panel.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @param datasource (optional) Datasource
* @param min_span (optional) Min span
* @param styles (optional) Array of styles for the panel
* @param maxDataPoints (optional) If the data source supports it, sets the maximum number of data points for each series returned
* @param columns (optional) Array of columns for the panel
* @param sort (optional) Sorting instruction for the panel
* @param transform (optional) Allow table manipulation to present data as desired
Expand Down Expand Up @@ -39,6 +40,7 @@
transparent=false,
columns=[],
sort=null,
maxDataPoints=null,
time_from=null,
time_shift=null,
links=[],
Expand All @@ -53,6 +55,7 @@
],
styles: styles,
columns: columns,
[if maxDataPoints != null then 'maxDataPoints']: maxDataPoints,
timeFrom: time_from,
timeShift: time_shift,
links: links,
Expand Down