Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

PanelModel interface

Signature

typescript
export interface PanelModel<TOptions = any, TCustomFieldConfig = any> 

Import

typescript
import { PanelModel } from '@grafana/data';

Properties

PropertyTypeDescription
alertanyalerting v1 object
datasourceDataSourceRef | nullThe datasource used in all targets
descriptionstringDescription
fieldConfigFieldConfigSource<TCustomFieldConfig>Field options configuration
idnumberID of the panel within the current dashboard
optionsTOptionsPanel options
pluginVersionstringVersion of the panel plugin
targetsDataQuery[]The queries in a panel
titlestringPanel title

alert property

alerting v1 object

Signature

typescript
alert?: any;

datasource property

The datasource used in all targets

Signature

typescript
datasource?: DataSourceRef | null;

description property

Description

Signature

typescript
description?: string;

fieldConfig property

Field options configuration

Signature

typescript
fieldConfig: FieldConfigSource<TCustomFieldConfig>;

id property

ID of the panel within the current dashboard

Signature

typescript
id: number;

options property

Panel options

Signature

typescript
options: TOptions;

pluginVersion property

Version of the panel plugin

Signature

typescript
pluginVersion?: string;

targets property

The queries in a panel

Signature

typescript
targets?: DataQuery[];

title property

Panel title

Signature

typescript
title?: string;