2025-11-13 13:13:34 -07:00

25 lines
1.0 KiB
JavaScript

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../resource.mjs";
export class ASN extends APIResource {
/**
* Gets all the data the botnet tracking database has for a given ASN registered to
* user account for given date. If no date is given, it will return results for the
* previous day.
*/
dayReport(asnId, params, options) {
const { account_id, ...query } = params;
return this._client.get(`/accounts/${account_id}/botnet_feed/asn/${asnId}/day_report`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Gets all the data the botnet threat feed tracking database has for a given ASN
* registered to user account.
*/
fullReport(asnId, params, options) {
const { account_id } = params;
return this._client.get(`/accounts/${account_id}/botnet_feed/asn/${asnId}/full_report`, options)._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=asn.mjs.map