mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
a6fd5597af
* ✨ Create Grafana node * 👕 Fix lint * ⚡ Apply feedback * ⚡ Apply feedback * 👕 Fix lint * ⚡ Remove double import Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
29 lines
568 B
TypeScript
29 lines
568 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class GrafanaApi implements ICredentialType {
|
|
name = 'grafanaApi';
|
|
displayName = 'Grafana API';
|
|
documentationUrl = 'grafana';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Base URL',
|
|
name: 'baseUrl',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Base URL of your Grafana instance',
|
|
placeholder: 'e.g. https://n8n.grafana.net/',
|
|
required: true,
|
|
},
|
|
];
|
|
}
|