mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
39 lines
795 B
TypeScript
39 lines
795 B
TypeScript
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,
|
|
];
|