import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const globalIPLatency = await client.globalIPLatency.retrieve();
console.log(globalIPLatency.data);{
"data": [
{
"timestamp": "2020-01-01T00:00:00.000Z",
"global_ip": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"ip_address": "192.0.2.1"
},
"prober_location": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"name": "Amsterdam",
"lat": 52.370216,
"lon": 4.895168
},
"mean_latency": {
"amount": 100,
"unit": "ms"
},
"percentile_latency": {
"0": {
"amount": 100,
"unit": "ms"
},
"25": {
"amount": 100,
"unit": "ms"
},
"50": {
"amount": 100,
"unit": "ms"
},
"75": {
"amount": 100,
"unit": "ms"
},
"90": {
"amount": 100,
"unit": "ms"
},
"99": {
"amount": 100,
"unit": "ms"
},
"100": {
"amount": 100,
"unit": "ms"
}
}
}
]
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const globalIPLatency = await client.globalIPLatency.retrieve();
console.log(globalIPLatency.data);{
"data": [
{
"timestamp": "2020-01-01T00:00:00.000Z",
"global_ip": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"ip_address": "192.0.2.1"
},
"prober_location": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"name": "Amsterdam",
"lat": 52.370216,
"lon": 4.895168
},
"mean_latency": {
"amount": 100,
"unit": "ms"
},
"percentile_latency": {
"0": {
"amount": 100,
"unit": "ms"
},
"25": {
"amount": 100,
"unit": "ms"
},
"50": {
"amount": 100,
"unit": "ms"
},
"75": {
"amount": 100,
"unit": "ms"
},
"90": {
"amount": 100,
"unit": "ms"
},
"99": {
"amount": 100,
"unit": "ms"
},
"100": {
"amount": 100,
"unit": "ms"
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[global_ip_id][in]
Show child attributes
Successful response
Show child attributes
Was this page helpful?