mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
61 lines
1.2 KiB
TypeScript
61 lines
1.2 KiB
TypeScript
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
|
import type { INodeTypeDescription } from 'n8n-workflow';
|
|
|
|
import * as alert from './alert';
|
|
import * as report from './report';
|
|
import * as search from './search';
|
|
import * as user from './user';
|
|
|
|
export const versionDescription: INodeTypeDescription = {
|
|
displayName: 'Splunk',
|
|
name: 'splunk',
|
|
icon: 'file:splunk.svg',
|
|
group: ['transform'],
|
|
version: 2,
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
description: 'Consume the Splunk Enterprise API',
|
|
defaults: {
|
|
name: 'Splunk',
|
|
},
|
|
inputs: ['main'],
|
|
outputs: ['main'],
|
|
credentials: [
|
|
{
|
|
name: 'splunkApi',
|
|
required: true,
|
|
},
|
|
],
|
|
properties: [
|
|
{
|
|
displayName: 'Resource',
|
|
name: 'resource',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
options: [
|
|
{
|
|
name: 'Alert',
|
|
value: 'alert',
|
|
},
|
|
{
|
|
name: 'Report',
|
|
value: 'report',
|
|
},
|
|
{
|
|
name: 'Search',
|
|
value: 'search',
|
|
},
|
|
{
|
|
name: 'User',
|
|
value: 'user',
|
|
},
|
|
],
|
|
default: 'search',
|
|
},
|
|
|
|
...alert.description,
|
|
...report.description,
|
|
...search.description,
|
|
...user.description,
|
|
],
|
|
};
|