The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/packages_api/data/datalink.md

83 lines
1.7 KiB

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "DataLink"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## DataLink interface
Link configuration. The values may contain variables that need to be processed before running
<b>Signature</b>
```typescript
export interface DataLink
```
<b>Import</b>
```typescript
import { DataLink } from '@grafana/data';
```
<b>Properties</b>
| Property | Type | Description |
| --- | --- | --- |
| [meta](#meta-property) | <code>{</code><br/><code> datasourceUid?: string;</code><br/><code> }</code> | |
| [onBuildUrl](#onbuildurl-property) | <code>(event: DataLinkClickEvent) =&gt; string</code> | |
| [onClick](#onclick-property) | <code>(event: DataLinkClickEvent) =&gt; void</code> | |
| [targetBlank](#targetblank-property) | <code>boolean</code> | |
| [title](#title-property) | <code>string</code> | |
| [url](#url-property) | <code>string</code> | |
### meta property
<b>Signature</b>
```typescript
meta?: {
datasourceUid?: string;
};
```
### onBuildUrl property
<b>Signature</b>
```typescript
onBuildUrl?: (event: DataLinkClickEvent) => string;
```
### onClick property
<b>Signature</b>
```typescript
onClick?: (event: DataLinkClickEvent) => void;
```
### targetBlank property
<b>Signature</b>
```typescript
targetBlank?: boolean;
```
### title property
<b>Signature</b>
```typescript
title: string;
```
### url property
<b>Signature</b>
```typescript
url: string;
```