UNPKG

n8n-nodes-arubacentralnextgen

Version:

n8n community node for Aruba Central NextGen API integration with modern monitoring and management capabilities

116 lines (115 loc) 3.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.siteHealthFields = exports.siteHealthOperations = void 0; // Operations for Site Health resource exports.siteHealthOperations = { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { domain: ['monitoring'], resource: ['siteHealth'], }, }, options: [ { name: 'List Sites with Health Overview', value: 'listSitesHealthOverview', description: 'Get a list of health information for each site', action: 'List sites with health overview', }, { name: 'Get Site Information', value: 'getSiteInformation', description: 'Get detailed health information for a specific site', action: 'Get site information', }, { name: 'List Sites with Device Health', value: 'listSitesDeviceHealth', description: 'Get a list of sites with device health performance', action: 'List sites with device health', }, { name: 'Get Device Health Overview', value: 'getDeviceHealthOverview', description: 'Get health overview of devices by type (switches, gateways, access points)', action: 'Get device health overview', }, ], default: 'listSitesHealthOverview', }; // Properties for Site Health resource exports.siteHealthFields = [ // Site ID field - for getSiteInformation operation { displayName: 'Site ID', name: 'siteId', type: 'string', default: '', required: true, description: 'UUID identifier of the site for which information is requested', displayOptions: { show: { domain: ['monitoring'], resource: ['siteHealth'], operation: ['getSiteInformation'], }, }, }, // Limit field - for list operations with pagination { displayName: 'Limit', name: 'limit', type: 'number', default: 100, description: 'Number of sites to return per request (maximum 100)', typeOptions: { minValue: 1, maxValue: 100, }, displayOptions: { show: { domain: ['monitoring'], resource: ['siteHealth'], operation: ['listSitesHealthOverview', 'listSitesDeviceHealth'], }, }, }, // Offset field - for list operations with pagination { displayName: 'Offset', name: 'offset', type: 'number', default: 0, description: 'Number of sites to skip before starting to collect the result set', typeOptions: { minValue: 0, }, displayOptions: { show: { domain: ['monitoring'], resource: ['siteHealth'], operation: ['listSitesHealthOverview', 'listSitesDeviceHealth'], }, }, }, // Query Time field - for operations that support timestamp filtering { displayName: 'Query Time', name: 'queryTime', type: 'string', default: '', placeholder: '1640995200000', description: 'Timestamp in epoch milliseconds for the data request. If not provided, current time is used.', displayOptions: { show: { domain: ['monitoring'], resource: ['siteHealth'], operation: ['getSiteInformation', 'getDeviceHealthOverview'], }, }, }, ];