n8n-nodes-base
Version:
Base nodes of n8n
35 lines (31 loc) • 937 B
text/typescript
/**
* Grafana Node - Version 1
* Discriminator: resource=dashboard, operation=create
*/
interface Credentials {
grafanaApi: CredentialReference;
}
/** Create a dashboard */
export type GrafanaV1DashboardCreateParams = {
resource: 'dashboard';
operation: 'create';
/**
* Title of the dashboard to create
*/
title?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Folder to create the dashboard in - if the folder is unspecified, the dashboard will be saved to the General folder. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
folderId?: string | Expression<string>;
};
};
export type GrafanaV1DashboardCreateNode = {
type: 'n8n-nodes-base.grafana';
version: 1;
credentials?: Credentials;
config: NodeConfig<GrafanaV1DashboardCreateParams>;
};