import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getPortsBandwidthUsage operation
 */
export const getPortsBandwidthUsageDescription: INodeProperties[] = [
	{
		displayName: 'Serial',
		name: 'serial',
		type: 'string',
		required: true,
		default: '',
		displayOptions: {
			show: {
				resource: ['gateway'],
				domain: ['monitoring'],
				operation: ['getPortsBandwidthUsage'],
			},
		},
		description: 'Serial number of gateway to be queried',
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				resource: ['gateway'],
				domain: ['monitoring'],
				operation: ['getPortsBandwidthUsage'],
			},
		},
		options: [
			{
				displayName: 'From Timestamp',
				name: 'from_timestamp',
				type: 'number',
				default: '',
				description: 'Need information from this timestamp. Timestamp is epoch in seconds.',
			},
			{
				displayName: 'To Timestamp',
				name: 'to_timestamp',
				type: 'number',
				default: '',
				description: 'Need information to this timestamp. Timestamp is epoch in seconds.',
			},
			{
				displayName: 'Port',
				name: 'port',
				type: 'string',
				default: '',
				description: 'Filter by Port (example GE0/0/1)',
			},
		],
	},
];
