@globalping/n8n-nodes-globalping
Version:
The Globalping n8n node allows you to perform network measurements such as ping, traceroute, mtr, http and DNS lookups from thousands of locations around the world.
107 lines • 3.99 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.measurementsFields = exports.measurementsOperations = void 0;
const pingDescription_1 = require("./measurements/pingDescription");
const tracerouteDescription_1 = require("./measurements/tracerouteDescription");
const dnsDescription_1 = require("./measurements/dnsDescription");
const mtrDescription_1 = require("./measurements/mtrDescription");
const httpDescription_1 = require("./measurements/httpDescription");
const operations = [
'measurementPing',
'measurementTraceroute',
'measurementDns',
'measurementMtr',
'measurementHttp',
];
exports.measurementsOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['measurements'],
},
},
options: [...pingDescription_1.pingOptions, ...tracerouteDescription_1.tracerouteOptions, ...dnsDescription_1.dnsOptions, ...mtrDescription_1.mtrOptions, ...httpDescription_1.httpOptions],
default: '',
},
];
exports.measurementsFields = [
{
displayName: 'Target',
name: 'measurementTarget',
type: 'string',
default: '',
required: true,
description: 'A publicly reachable measurement target. Typically a hostname, an IPv4 address, or IPv6 address, depending on the measurement type.',
displayOptions: {
show: {
resource: ['measurements'],
operation: operations,
},
},
},
{
displayName: 'Locations',
name: 'measurementLocationsUi',
placeholder: 'Add location',
type: 'fixedCollection',
default: {},
typeOptions: {
multipleValues: true,
},
displayOptions: {
show: {
resource: ['measurements'],
operation: operations,
},
},
options: [
{
name: 'measurementLocations',
displayName: 'Locations',
values: [
{
displayName: 'Location',
name: 'magic',
type: 'string',
description: 'The location where the test should run from. This is a smart field that can accept locations such as:\n' +
'\n' +
'Continents (europe, north america, south asia)\n' +
'Countries (usa, germany, india)\n' +
'US States (new york, texas)\n' +
'Cities (new york city, london, amsterdam)\n' +
'ASNs (396982)\n' +
'ISP names (verizon, t-mobile, hetzner, amazon, google)\n' +
'Cloud region names (us-east-2)\n' +
'\n' +
'Note that only English variations of names are supported.',
default: '',
placeholder: 'World',
},
],
},
],
},
{
displayName: 'Limit',
name: 'measurementLimit',
type: 'number',
description: "The maximum number of probes that should run the measurement. The result count might be lower if there aren't enough probes available in the specified locations. \n" +
'\n' +
'Constraints: Min 1┃Max 500 Default: 1',
default: 1,
typeOptions: {
maxValue: 500,
minValue: 1,
},
},
...pingDescription_1.pingFields,
...tracerouteDescription_1.tracerouteFields,
...dnsDescription_1.dnsFields,
...mtrDescription_1.mtrFields,
...httpDescription_1.httpFields,
];
//# sourceMappingURL=MeasurementsDescription.js.map