feat(Splunk Node): Overhaul (#9813)
This commit is contained in:
38
packages/nodes-base/nodes/Splunk/v2/actions/alert/index.ts
Normal file
38
packages/nodes-base/nodes/Splunk/v2/actions/alert/index.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import * as getReport from './getReport.operation';
|
||||
import * as getMetrics from './getMetrics.operation';
|
||||
|
||||
export { getReport, getMetrics };
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['alert'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get Fired Alerts',
|
||||
value: 'getReport',
|
||||
description: 'Retrieve a fired alerts report',
|
||||
action: 'Get a fired alerts report',
|
||||
},
|
||||
{
|
||||
name: 'Get Metrics',
|
||||
value: 'getMetrics',
|
||||
description: 'Retrieve metrics',
|
||||
action: 'Get metrics',
|
||||
},
|
||||
],
|
||||
default: 'getReport',
|
||||
},
|
||||
|
||||
...getReport.description,
|
||||
...getMetrics.description,
|
||||
];
|
||||
Reference in New Issue
Block a user