cloudflare
Version:
The official TypeScript library for the Cloudflare API
29 lines • 1.07 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
export var BaseLocations = /* @__PURE__ */ (() => {
class BaseLocations extends APIResource {
/**
* Retrieves the sum of Internet traffic anomalies, grouped by location. These
* anomalies are signals that might indicate an outage, automatically detected by
* Radar and manually verified by our team.
*
* @example
* ```ts
* const location =
* await client.radar.trafficAnomalies.locations.get();
* ```
*/
get(query = {}, options) {
return this._client.get('/radar/traffic_anomalies/locations', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseLocations._key = Object.freeze([
'radar',
'trafficAnomalies',
'locations',
]);
return BaseLocations;
})();
export class Locations extends BaseLocations {
}
//# sourceMappingURL=locations.mjs.map