mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Add Grafana node (#2411)
* ✨ Create Grafana node * 👕 Fix lint * ⚡ Apply feedback * ⚡ Apply feedback * 👕 Fix lint * ⚡ Remove double import Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
28
packages/nodes-base/credentials/GrafanaApi.credentials.ts
Normal file
28
packages/nodes-base/credentials/GrafanaApi.credentials.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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,
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user