cloudflare
Version:
The official TypeScript library for the Cloudflare API
36 lines • 1.27 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseUniqueDevices = /* @__PURE__ */ (() => {
class BaseUniqueDevices extends APIResource {
/**
* Returns unique count of devices that have run synthetic application monitoring
* tests in the past 7 days.
*
* @example
* ```ts
* const uniqueDevices =
* await client.zeroTrust.dex.tests.uniqueDevices.list({
* account_id: '01a7362d577a6c3019a474fd6f485823',
* });
* ```
*/
list(params, options) {
const { account_id, ...query } = params;
return this._client.get(path `/accounts/${account_id}/dex/tests/unique-devices`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseUniqueDevices._key = Object.freeze([
'zeroTrust',
'dex',
'tests',
'uniqueDevices',
]);
return BaseUniqueDevices;
})();
export class UniqueDevices extends BaseUniqueDevices {
}
//# sourceMappingURL=unique-devices.mjs.map