cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locations = exports.BaseLocations = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
var BaseLocations = /* @__PURE__ */ (() => {
class BaseLocations extends resource_1.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;
})();
exports.BaseLocations = BaseLocations;
class Locations extends BaseLocations {
}
exports.Locations = Locations;
//# sourceMappingURL=locations.js.map