import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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": null
},
"prober_location": {
"id": 1,
"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: 'My API Key',
});
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": null
},
"prober_location": {
"id": 1,
"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.
Successful response
Show child attributes
The timestamp of the metric.
"2020-01-01T00:00:00.000Z"
Show child attributes
Was this page helpful?