cf 1.0.0-beta.30 → 1.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_meta/commands.json +1029 -1113
- package/dist/_meta/schemas.json +672 -702
- package/dist/{abuse-reports-Dzop8iDe.mjs → abuse-reports-B8vD22yf.mjs} +1 -1
- package/dist/{access-2NeD3Gu8.mjs → access-BkZlZPER.mjs} +1 -1
- package/dist/{accounts-CeJbhhX4.mjs → accounts-CG6_1Bfa.mjs} +3 -3
- package/dist/{acm-Dub0B14J.mjs → acm-B5VvmBfE.mjs} +1 -1
- package/dist/{addressing-BzWJU8m6.mjs → addressing-Db9Z1P-r.mjs} +1 -1
- package/dist/{agent-memory-2l9zyQFA.mjs → agent-memory-nzAUPSmC.mjs} +1 -1
- package/dist/{ai-laLv3daG.mjs → ai-RTQ-iZFq.mjs} +1 -1
- package/dist/{ai-audit-rgNePq5W.mjs → ai-audit-BGipueRC.mjs} +1 -1
- package/dist/{ai-gateway-e9b8CcL6.mjs → ai-gateway-F2pW8d5j.mjs} +1 -1
- package/dist/{ai-search-DZ0AqoPe.mjs → ai-search-CKM-K1Hm.mjs} +1 -1
- package/dist/{ai-security-CQuBTtmw.mjs → ai-security-CS2VJd4V.mjs} +1 -1
- package/dist/{alerting-_4ra-f_v.mjs → alerting-DNqXDY_7.mjs} +1 -1
- package/dist/{analytics-DLNn4bJ4.mjs → analytics-DM85HHka.mjs} +1 -1
- package/dist/{analytics-engine-CY45yWuL.mjs → analytics-engine-CxnuZwEx.mjs} +1 -1
- package/dist/{api-security-BSvJAjJV.mjs → api-security-BwLSP_5v.mjs} +1 -1
- package/dist/{argo-xzl0p--1.mjs → argo-DZM2SJFd.mjs} +1 -1
- package/dist/{artifacts-DAS14gcM.mjs → artifacts-CKbQsn4H.mjs} +1 -1
- package/dist/{audit-logs-3nYyCGQA.mjs → audit-logs-CG76HATH.mjs} +1 -1
- package/dist/auth-BBUZyJJx.mjs +2 -0
- package/dist/{auth-B0mFB6nU.mjs → auth-DBM4EcdJ.mjs} +1 -1
- package/dist/{auth-cj71dGxS.mjs → auth-NIRm11Ab.mjs} +1 -1
- package/dist/{auth-token-D9MnaZ-L.mjs → auth-token-Cp_u44cF.mjs} +1 -1
- package/dist/{autoconfig-DoLQ5ct8.mjs → autoconfig-CQjvJ8Rp.mjs} +386 -120
- package/dist/{basin-catalog-BbCsAKyZ.mjs → basin-catalog-BMKr8hFw.mjs} +1 -1
- package/dist/{billing-BsiLsjWJ.mjs → billing-LiyUCn9n.mjs} +1 -1
- package/dist/{blocks-DK5qAzLe.mjs → blocks-DdIA5quB.mjs} +1 -1
- package/dist/{bot-management-DkErOsIO.mjs → bot-management-ATqDTT08.mjs} +1 -1
- package/dist/{botnet-feed-CK4_PKrf.mjs → botnet-feed-Dk3eMSZo.mjs} +1 -1
- package/dist/{brand-protection-Czt-2Ei5.mjs → brand-protection-B82xx9X5.mjs} +2 -2
- package/dist/{browser-run-DLMdEaSJ.mjs → browser-run-DEVs2X54.mjs} +1 -1
- package/dist/build-CjqOmQjC.mjs +2 -0
- package/dist/{build-DiEXOgHH.mjs → build-D18S0p87.mjs} +1 -1
- package/dist/{builds-D--zUbR2.mjs → builds-kZaYZiQn.mjs} +1 -1
- package/dist/{cache-C8PQmkjD.mjs → cache-BSkT4mhb.mjs} +1 -1
- package/dist/{cli-BBv5YMan.mjs → cli-dk6sJFtN.mjs} +1 -1
- package/dist/{client-side-security-CFxePUL9.mjs → client-side-security-90cX3xFX.mjs} +1 -1
- package/dist/{cloud-connector-BitfLQ3s.mjs → cloud-connector-CtJhvxoD.mjs} +1 -1
- package/dist/{cloudforce-one-D2dzA7VD.mjs → cloudforce-one-DOf-Y51V.mjs} +2 -2
- package/dist/{command-iwrZ2Sb1.mjs → command-B2dfzTXs.mjs} +1 -1
- package/dist/{command-Xqidhyr_.mjs → command-BAzptjLF.mjs} +1 -1
- package/dist/{command-n7QausoH.mjs → command-BUYlzx4J.mjs} +1 -1
- package/dist/{command-BwcAuPBr.mjs → command-BUbUtS1f.mjs} +1 -1
- package/dist/{command-CQhD3Q1t.mjs → command-CTpn87uz.mjs} +1 -1
- package/dist/{command-BC_nezLE.mjs → command-DPo7r1PT.mjs} +1 -1
- package/dist/command-DuCT0YaL.mjs +2 -0
- package/dist/{command-DoXuskBZ.mjs → command-MWbvYsQH.mjs} +1 -1
- package/dist/{command-D5FrTb2N.mjs → command-QInwUVT5.mjs} +1 -1
- package/dist/{command-s15KaL-x.mjs → command-V0dODmT-.mjs} +1 -1
- package/dist/{completions-BAUSggys.mjs → completions-4aAl8vcF.mjs} +1 -1
- package/dist/{connector-interrupts-D9tI84Fk.mjs → connector-interrupts-qEMhlWeV.mjs} +1 -1
- package/dist/{connector-telemetry-events-Bs9wLYwc.mjs → connector-telemetry-events-CdqnrxRp.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CbwE4lrE.mjs → connector-telemetry-snapshots-BRvmHAEM.mjs} +1 -1
- package/dist/{connectors-LyJN1htu.mjs → connectors-BqShaonQ.mjs} +1 -1
- package/dist/{containers-CKs7ZyZq.mjs → containers-BNuGwLRK.mjs} +2 -2
- package/dist/{content-scan-BQRz7C7Z.mjs → content-scan-02SOIW_1.mjs} +1 -1
- package/dist/{context-DlFhI9cN.mjs → context-CroqTqbk.mjs} +1 -1
- package/dist/{cps-DYlXx89C.mjs → cps-DvEG2eZl.mjs} +1 -1
- package/dist/{csam-scanner-BFANxGD-.mjs → csam-scanner-Bvklah8m.mjs} +1 -1
- package/dist/{custom-csrs-BX4aCeof.mjs → custom-csrs-BVcDWpY-.mjs} +1 -1
- package/dist/{custom-hostnames-BRYABKN3.mjs → custom-hostnames-IgjZmeJc.mjs} +1 -1
- package/dist/{custom-nameservers-CP1Vf1TD.mjs → custom-nameservers-0EYFPBz2.mjs} +1 -1
- package/dist/{custom-pages-BNL69ToU.mjs → custom-pages-W2weASNg.mjs} +1 -1
- package/dist/{d1-D4AZsUKn.mjs → d1-Df4t1noM.mjs} +1 -1
- package/dist/{delegate-BKlomUk6.mjs → delegate-CEaYc4br.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-LbXgSfAd.mjs → deploy-CGx9aUuj.mjs} +1 -1
- package/dist/{deploy-context-BYw6gbl-.mjs → deploy-context-DzSmuU32.mjs} +1 -1
- package/dist/deploy-input-DA70GC4o.mjs +2 -0
- package/dist/{dev-DaFSd8WC.mjs → dev-BDls_bK6.mjs} +1 -1
- package/dist/{diagnostics-Dk3pyWx_.mjs → diagnostics-C8V1G64d.mjs} +1 -1
- package/dist/{discover-DGsMj9ZN.mjs → discover-DtcZCeSh.mjs} +1 -1
- package/dist/discover-Dxb5yh9L.mjs +2 -0
- package/dist/{disk-cache-nbuwH1Dh.mjs → disk-cache-D6xHBTAA.mjs} +1 -1
- package/dist/{dls-DU6EdhQK.mjs → dls-BpU_jtuh.mjs} +1 -1
- package/dist/{dns-3QDtCu6f.mjs → dns-BlgfnRkG.mjs} +25 -25
- package/dist/{dns-firewall-Bbrr_0_a.mjs → dns-firewall-DtkcaFQ0.mjs} +1 -1
- package/dist/{docs-lLLKcLr_.mjs → docs-BI2ZoYmm.mjs} +1 -1
- package/dist/{durable-objects-DPf1DMeq.mjs → durable-objects-BPTzK6Xh.mjs} +1 -1
- package/dist/{email-auth-DOlEoi8q.mjs → email-auth-BSoYwLs1.mjs} +1 -1
- package/dist/{email-routing-D56SPGty.mjs → email-routing-3AIhCb7w.mjs} +1 -1
- package/dist/{email-security-CSawx0kD.mjs → email-security-INhnV4tT.mjs} +1 -1
- package/dist/{email-sending-CgFi0cLA.mjs → email-sending-BJ3OLfN3.mjs} +1 -1
- package/dist/{errors-CilNjDVk.mjs → errors-CBngn9n1.mjs} +1 -1
- package/dist/{field-extractors-FvIgySB4.mjs → field-extractors-lSqk5ySb.mjs} +1 -1
- package/dist/{firewall-BrTvywhW.mjs → firewall-CdXsS4Cc.mjs} +1 -1
- package/dist/{flagship-BGFN1Epo.mjs → flagship-CtnQ4Emf.mjs} +1 -1
- package/dist/{fraud-DzK6OIO3.mjs → fraud-CAZdLc_4.mjs} +1 -1
- package/dist/{google-tag-gateway-Cd9v8A7Z.mjs → google-tag-gateway-CBMNbgeM.mjs} +1 -1
- package/dist/{healthchecks-Cm7EHaBA.mjs → healthchecks-DdPEo0GC.mjs} +1 -1
- package/dist/{hyperdrive-CVaSt0qX.mjs → hyperdrive-DxHbVnyO.mjs} +1 -1
- package/dist/{iam-CWN62Mi4.mjs → iam-CISZzLLr.mjs} +1 -1
- package/dist/{images-Bo_pdvQC.mjs → images-DeMHqQHl.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-Dwmpc_S-.mjs → init-DKADNnPy.mjs} +1 -1
- package/dist/{intel-CQFYeGEA.mjs → intel-BYvnwlXr.mjs} +1 -1
- package/dist/{ips-jTSzoqMU.mjs → ips-CS5SkxUL.mjs} +1 -1
- package/dist/{k2-utE2lCYd.mjs → k2-isJz0-93.mjs} +1 -1
- package/dist/{kv-Cdh5hHte.mjs → kv-Beih-nj_.mjs} +1 -1
- package/dist/{lazy-command-QoHlmXHW.mjs → lazy-command-Dfv2jIGz.mjs} +1 -1
- package/dist/{leaked-credential-checks-CqApscD3.mjs → leaked-credential-checks-CP_8DWAX.mjs} +1 -1
- package/dist/{load-balancers-w_4Uz9Gi.mjs → load-balancers-fhAs7LaH.mjs} +1 -1
- package/dist/{login-CS3KxVbk.mjs → login-BdTYP5Xw.mjs} +1 -1
- package/dist/login-Bux329zM.mjs +2 -0
- package/dist/{logpush-C76I5dgN.mjs → logpush-fHQiJ9eI.mjs} +1 -1
- package/dist/{logs-B5aCYVCv.mjs → logs-Bquc4oxR.mjs} +1 -1
- package/dist/{magic-network-monitoring-CGf7cVQ9.mjs → magic-network-monitoring-DqQUEtPW.mjs} +1 -1
- package/dist/{magic-transit-CN5noqOR.mjs → magic-transit-py-CXbOl.mjs} +1 -1
- package/dist/{managed-defense-DAGr0UGm.mjs → managed-defense-nFm4rVCR.mjs} +1 -1
- package/dist/{managed-transforms-_SuwzZ-5.mjs → managed-transforms-2k6tV3U-.mjs} +1 -1
- package/dist/{mcp-CzedsjOf.mjs → mcp-BCtJ76cJ.mjs} +1 -1
- package/dist/{mesh-DXX1S3pX.mjs → mesh-D2V3ITA7.mjs} +1 -1
- package/dist/{migrate-CvRQ4x3_.mjs → migrate-CqUzEP9-.mjs} +1 -1
- package/dist/{monetization-8nt9PYln.mjs → monetization-CQL4WEtz.mjs} +1 -1
- package/dist/{network-CaiRDY2e.mjs → network-1oR1_5Ak.mjs} +1 -1
- package/dist/{network-interconnects-Ad6JbAVd.mjs → network-interconnects-BKRa6OaY.mjs} +1 -1
- package/dist/{o11y-DD2Hfnzi.mjs → o11y-B2hny1eT.mjs} +4 -4
- package/dist/{oauth-BUcV_xbm.mjs → oauth-CQiiWvag.mjs} +1 -1
- package/dist/{oauth-CQRlNgt5.mjs → oauth-Dp9VNyOf.mjs} +1 -1
- package/dist/{observability-BzKBUUSf.mjs → observability-ByzMkD8L.mjs} +1 -1
- package/dist/{ohttp-gateway-Sej9-GCm.mjs → ohttp-gateway-B67P-f_M.mjs} +1 -1
- package/dist/{organizations-DwYsCbYD.mjs → organizations-Dk5cbMB5.mjs} +1 -1
- package/dist/package-CcmyQJFT.mjs +2 -0
- package/dist/{page-rules-CjufEmIt.mjs → page-rules-hRzoq6WZ.mjs} +1 -1
- package/dist/{pages-Dj0Cdf3G.mjs → pages-D_0y5Pbg.mjs} +1 -1
- package/dist/{pay-per-crawl-DPVlluRA.mjs → pay-per-crawl-C0ZDkVH8.mjs} +1 -1
- package/dist/{pay-per-use-DhuLjaoo.mjs → pay-per-use-Z_LlZyxh.mjs} +1 -1
- package/dist/{pipelines-D2pM69oq.mjs → pipelines-B8-zUXTD.mjs} +1 -1
- package/dist/{precursor-DzuA1m8D.mjs → precursor-vlW9-fma.mjs} +1 -1
- package/dist/{previews-CHHd5Rx7.mjs → previews-DZX0vwDU.mjs} +3 -3
- package/dist/{progress-AML-AVs4.mjs → progress-DQfZZwit.mjs} +1 -1
- package/dist/{prompt-Bnon9lfK.mjs → prompt-e6K5lhdE.mjs} +1 -1
- package/dist/{queues-GDwznw0o.mjs → queues-6WHCb5qi.mjs} +1 -1
- package/dist/{r2-B3Xkb0S4.mjs → r2-C9xL1Rcg.mjs} +2 -2
- package/dist/{radar-fBT7VIO2.mjs → radar-DN1PIWRf.mjs} +150 -150
- package/dist/{raw-fetch-0T1SwPa1.mjs → raw-fetch-DXSBORQI.mjs} +1 -1
- package/dist/{realtime-B7mR3XtY.mjs → realtime-CcOSBEFJ.mjs} +1 -1
- package/dist/{registrar-DOoxlZc7.mjs → registrar-BjBA2lbF.mjs} +1 -1
- package/dist/{registrar-sandbox-DC7xAqqc.mjs → registrar-sandbox-DVeWO8gt.mjs} +1 -1
- package/dist/{reporting-DlD7J6Pq.mjs → reporting-cOY97XSy.mjs} +1 -1
- package/dist/{request-headers-BEYXy4JN.mjs → request-headers-xtY5gOlq.mjs} +1 -1
- package/dist/{request-tracers-DYCGkszp.mjs → request-tracers-bHnQoIpS.mjs} +1 -1
- package/dist/{resource-sharing-D_bUv7E8.mjs → resource-sharing-CQMP1o3F.mjs} +1 -1
- package/dist/{rules-C4cu3_jr.mjs → rules-CrevxzXm.mjs} +1 -1
- package/dist/{rulesets-Bl4mLnXA.mjs → rulesets-DzGcmiGs.mjs} +1 -1
- package/dist/{rum-DE_uJb09.mjs → rum-edoW7i0P.mjs} +1 -1
- package/dist/run-B6k0nZU4.mjs +2 -0
- package/dist/{run-DAg7dfIW.mjs → run-DhU17ztU.mjs} +1 -1
- package/dist/{schema-cache-CTVUtkAl.mjs → schema-cache-BFMBra5w.mjs} +1 -1
- package/dist/{scim-Dz4r0fnH.mjs → scim-BC31cTiV.mjs} +1 -1
- package/dist/{secrets-store-C2GwCUKs.mjs → secrets-store-DJlRawQ0.mjs} +1 -1
- package/dist/{security-insights-DZCm5D3U.mjs → security-insights-jHGuq15c.mjs} +1 -1
- package/dist/{security-txt-Dbi9KxNc.mjs → security-txt-D1vV2ySL.mjs} +1 -1
- package/dist/{session-BEsQIuwP.mjs → session-Py5R3Tdx.mjs} +1 -1
- package/dist/shared-C50J5uEm.mjs +2 -0
- package/dist/{smart-shield-C2uSFcGN.mjs → smart-shield-YI9Y6xhz.mjs} +1 -1
- package/dist/{snippets-BoaGEAC6.mjs → snippets-SKlEbP3W.mjs} +1 -1
- package/dist/{spawn-B4y5Urjv.mjs → spawn-BXaiweDp.mjs} +1 -1
- package/dist/{spectrum-Bb0KXA8R.mjs → spectrum-CFl8kTtP.mjs} +1 -1
- package/dist/{speed-zKYgLTHA.mjs → speed-DekTJTgw.mjs} +1 -1
- package/dist/{sql-pjWozuvl.mjs → sql-tkIoPSbE.mjs} +1 -1
- package/dist/{src-B8i6_XGg.mjs → src-COKSSJwa.mjs} +5 -5
- package/dist/{ssl-C5bg1X0i.mjs → ssl-DRGNVUlP.mjs} +1 -1
- package/dist/{static-assets-CTv7XwIQ.mjs → static-assets-pAj1uSDU.mjs} +1 -1
- package/dist/{stream-C_FiNrLV.mjs → stream-WHdFw1o1.mjs} +1 -1
- package/dist/{tags-CXlivF3y.mjs → tags-CNEWjoac.mjs} +1 -1
- package/dist/{telemetry-CtQWhsmy.mjs → telemetry-BCQMv5dO.mjs} +1 -1
- package/dist/telemetry-CruYXv5e.mjs +2 -0
- package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BCJoh-yz.mjs} +1 -1
- package/dist/{tenants-89Q0u5_Q.mjs → tenants-Coo3-wTg.mjs} +1 -1
- package/dist/{tunnels-CL2fIINH.mjs → tunnels-Cy3byznJ.mjs} +2 -2
- package/dist/{turnstile-D6GtQULo.mjs → turnstile-DvkuMuTq.mjs} +1 -1
- package/dist/ui-CA_2sliN.mjs +2 -0
- package/dist/{update-check-0kpbTLvy.mjs → update-check-Buyg_Zyb.mjs} +1 -1
- package/dist/{update-check-D3axIoUi.mjs → update-check-CV30Z3FO.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization--iS57OT_.mjs → url-normalization-DJzp3oJN.mjs} +1 -1
- package/dist/{url-scanner-C6AtXGc2.mjs → url-scanner-C28ADWWB.mjs} +1 -1
- package/dist/{user-C5vRYIta.mjs → user-CiFGo-51.mjs} +1 -1
- package/dist/{vectorize-C1Kxb1Ou.mjs → vectorize-DZ-VBQjl.mjs} +1 -1
- package/dist/version--BAAeBma.mjs +2 -0
- package/dist/{waiting-rooms-BCVZY9vI.mjs → waiting-rooms-mLG31NWt.mjs} +1 -1
- package/dist/{web-assets-D2gXqKZS.mjs → web-assets-Caubyaqz.mjs} +1 -1
- package/dist/{web3-CJDZQCOk.mjs → web3-Ctcb6rxj.mjs} +1 -1
- package/dist/{whoami-BEad9QUB.mjs → whoami-DBZfITBb.mjs} +3 -3
- package/dist/whoami-rfo2jx0r.mjs +2 -0
- package/dist/{workers-DzXSJMv9.mjs → workers-ClK3WFQg.mjs} +18 -18
- package/dist/{workers-for-platforms-CvazgrqD.mjs → workers-for-platforms-D6fknsnw.mjs} +1 -1
- package/dist/{workers-vpc-DP4QC6UC.mjs → workers-vpc-B7wRAn-K.mjs} +1 -1
- package/dist/{workflows-BSOj56io.mjs → workflows-B0UzguVf.mjs} +1 -1
- package/dist/{wrangler-migration-DZ9Oelof.mjs → wrangler-migration-u2oXOk-L.mjs} +2 -2
- package/dist/{zaraz-BnQvKXFy.mjs → zaraz-p9rNptt3.mjs} +1 -1
- package/dist/{zero-trust-DsslXRub.mjs → zero-trust-Dw5CvLQD.mjs} +1 -1
- package/dist/{zones-DQ3SjGsZ.mjs → zones-DzPc0thm.mjs} +1 -1
- package/package.json +6 -6
- package/dist/auth-CXR2vsII.mjs +0 -2
- package/dist/build-ByjJ6yIB.mjs +0 -2
- package/dist/command-ycXauMSv.mjs +0 -2
- package/dist/deploy-input-BFWpjDVr.mjs +0 -2
- package/dist/discover-D9FNaCDK.mjs +0 -2
- package/dist/internal-CYrPZ9IX.mjs +0 -4
- package/dist/live-hZgMkXJf.mjs +0 -4
- package/dist/login-BBSJytOt.mjs +0 -2
- package/dist/package-DXaRIx2f.mjs +0 -2
- package/dist/ready-BkXNDNTd.mjs +0 -4
- package/dist/run-Cg9utScS.mjs +0 -2
- package/dist/shared-DqW2vICA.mjs +0 -2
- package/dist/signed-url-BhHSAUam.mjs +0 -4
- package/dist/telemetry-DDs3zhdw.mjs +0 -2
- package/dist/ui-CY75N4Tm.mjs +0 -2
- package/dist/version-pcpa_kv3.mjs +0 -2
- package/dist/whoami-2eFTt0-Y.mjs +0 -2
|
@@ -1,300 +1,300 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-DQfZZwit.mjs";import{t as a}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{r as o,t as s}from"./body-parser-HN91kAf0.mjs";import{n as c,t as l}from"./raw-fetch-DXSBORQI.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function d(e){return e.usage(`$0 radar agent-readiness summary <dimension>
|
|
3
3
|
|
|
4
|
-
Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:d,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){n({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},te={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/radar/ai/bots/
|
|
4
|
+
Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:d,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){n({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},te={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/radar/ai/bots/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`vertical`,`industry`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function f(e){return e.usage(`$0 radar ai bots summary <dimension>
|
|
5
5
|
|
|
6
|
-
Retrieves
|
|
6
|
+
Retrieves an aggregated summary of AI bots HTTP requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,array:!0,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,array:!0,description:`Filters results by user agent.`}).option(`vertical`,{type:`string`,array:!0,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,array:!0,description:`Filters results by industry.`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,array:!0,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,array:!0,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`summary <dimension>`,describe:`Get AI bots HTTP requests distribution by dimension`,builder:f,handler:async e=>a({command:`radar ai bots summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],vertical:e.vertical,industry:e.industry,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar ai bots summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ne,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var m={method:`GET`,path:t=>e`/radar/ai/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function h(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
|
|
7
7
|
|
|
8
|
-
Retrieves AI bots
|
|
8
|
+
Retrieves the distribution of HTTP requests from AI bots, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,array:!0,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,array:!0,description:`Filters results by user agent.`}).option(`industry`,{type:`string`,array:!0,description:`Filters results by industry.`}).option(`vertical`,{type:`string`,array:!0,description:`Filters results by vertical.`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,array:!0,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,array:!0,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of AI bots HTTP requests by dimension.`,builder:h,handler:async e=>a({command:`radar ai bots timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],industry:e.industry,vertical:e.vertical,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar ai bots timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(m,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var _={method:`GET`,path:()=>`/radar/ai/bots/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function v(e){return e.usage(`$0 radar ai bots timeseries
|
|
9
9
|
|
|
10
|
-
Retrieves
|
|
10
|
+
Retrieves AI bots HTTP request volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,array:!0,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,array:!0,description:`Filters results by user agent.`}).option(`industry`,{type:`string`,array:!0,description:`Filters results by industry.`}).option(`vertical`,{type:`string`,array:!0,description:`Filters results by vertical.`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,array:!0,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,array:!0,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`timeseries`,describe:`Get AI bots HTTP requests time series`,builder:v,handler:async e=>a({command:`radar ai bots timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],industry:e.industry,vertical:e.vertical,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar ai bots timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_,a));r(s,{successLabel:`Loaded`})})},b={command:`bots`,describe:`Operations for ai.bots`,builder:e=>e.command(p).command(y).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`GET`,path:t=>e`/radar/ai/inference/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function S(e){return e.usage(`$0 radar ai inference summary <dimension>
|
|
11
11
|
|
|
12
|
-
Retrieves
|
|
12
|
+
Retrieves an aggregated summary of the number of inferences run on Workers AI, grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`summary <dimension>`,describe:`Get Workers AI inference distribution by dimension`,builder:S,handler:async e=>a({command:`radar ai inference summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar ai inference summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/inference/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(x,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/radar/ai/inference/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function T(e){return e.usage(`$0 radar ai inference timeseries-groups <dimension>
|
|
13
13
|
|
|
14
|
-
Retrieves the
|
|
14
|
+
Retrieves the distribution of the number of inferences run on Workers AI, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of Workers AI inference by dimension.`,builder:T,handler:async e=>a({command:`radar ai inference timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar ai inference timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/inference/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(w,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},D={command:`inference`,describe:`Operations for ai.inference`,builder:e=>e.command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`GET`,path:()=>`/radar/ai/markdown_for_agents/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 radar ai markdown-for-agents summary
|
|
15
15
|
|
|
16
|
-
Retrieves the median HTML-to-markdown reduction ratio
|
|
16
|
+
Retrieves the overall median HTML-to-markdown reduction ratio for AI agent requests over the given date range.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`summary`,describe:`Get AI markdown for agents reduction ratio summary`,builder:k,handler:async e=>a({command:`radar ai markdown-for-agents summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar ai markdown-for-agents summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/markdown_for_agents/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(O,a));r(s,{successLabel:`Loaded`})})};var j={method:`GET`,path:()=>`/radar/ai/markdown_for_agents/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function M(e){return e.usage(`$0 radar ai markdown-for-agents timeseries
|
|
17
17
|
|
|
18
|
-
Retrieves
|
|
18
|
+
Retrieves the median HTML-to-markdown reduction ratio over time for AI agent requests.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`timeseries`,describe:`Get AI markdown for agents reduction ratio time series`,builder:M,handler:async e=>a({command:`radar ai markdown-for-agents timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar ai markdown-for-agents timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/markdown_for_agents/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(j,a));r(s,{successLabel:`Loaded`})})},P={command:`markdown-for-agents`,describe:`Operations for ai.markdown-for-agents`,builder:e=>e.command(A).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},F={command:`ai`,describe:`AI inference trends and model usage statistics across the Cloudflare network`,builder:e=>e.command(b).command(D).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var I={method:`GET`,path:t=>e`/radar/annotations/${t.id}`,query:[`format`],errors:{404:`NotFoundError`}};function L(e){return e.usage(`$0 radar annotations get <id>
|
|
19
19
|
|
|
20
|
-
Retrieves a single annotation by ID.`).positional(`id`,{type:`string`,description:`Annotation ID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
20
|
+
Retrieves a single annotation by ID.`).positional(`id`,{type:`string`,description:`Annotation ID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <id>`,describe:`Get annotation by ID`,builder:L,handler:async e=>a({command:`radar annotations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar annotations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(I,{id:e.id,...a}));r(s,{successLabel:`Loaded`})})};var z={method:`GET`,path:()=>`/radar/annotations`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`dataSource`,`eventType`,`outageType`,`outageCause`,`tags`,`query`,`asn`,`location`,`geoId`,`origin`,`tld`,`ca`,`log`,`bot`,`format`],errors:{400:`BadRequestError`}};function B(e){return e.usage(`$0 radar annotations list
|
|
21
21
|
|
|
22
|
-
Retrieves the latest annotations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`event-type`,{type:`string`,description:`Filters results by event type. EVENT is a legacy alias for GENERAL.`,choices:[`EVENT`,`GENERAL`,`OUTAGE`,`PARTIAL_PROJECTION`,`PIPELINE`,`TRAFFIC_ANOMALY`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,array:!0,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
22
|
+
Retrieves the latest annotations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`event-type`,{type:`string`,description:`Filters results by event type. EVENT is a legacy alias for GENERAL.`,choices:[`EVENT`,`GENERAL`,`OUTAGE`,`PARTIAL_PROJECTION`,`PIPELINE`,`TRAFFIC_ANOMALY`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,array:!0,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`Get latest annotations`,builder:B,handler:async e=>a({command:`radar annotations list`,classification:{safeFlags:[`data-source`,`event-type`,`outage-type`,`outage-cause`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],dataSource:e[`data-source`],eventType:e[`event-type`],outageType:e[`outage-type`],outageCause:e[`outage-cause`],tags:e.tags,query:e.query,asn:e.asn,location:e.location,geoId:e[`geo-id`],origin:e.origin,tld:e.tld,ca:e.ca,log:e.log,bot:e.bot,format:e.format};if(e.dryRun){n({command:`cf radar annotations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(z,a));r(s,{successLabel:`Loaded`})})};var H={method:`GET`,path:()=>`/radar/annotations/outages`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`dataSource`,`outageType`,`outageCause`,`tags`,`query`,`asn`,`location`,`geoId`,`origin`,`tld`,`ca`,`log`,`bot`,`format`],errors:{400:`BadRequestError`}};function U(e){return e.usage(`$0 radar annotations outages list
|
|
23
23
|
|
|
24
|
-
Retrieves the latest Internet outages and anomalies.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,array:!0,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
24
|
+
Retrieves the latest Internet outages and anomalies.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,array:!0,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`Get latest Internet outages and anomalies`,builder:U,handler:async e=>a({command:`radar annotations outages list`,classification:{safeFlags:[`data-source`,`outage-type`,`outage-cause`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],dataSource:e[`data-source`],outageType:e[`outage-type`],outageCause:e[`outage-cause`],tags:e.tags,query:e.query,asn:e.asn,location:e.location,geoId:e[`geo-id`],origin:e.origin,tld:e.tld,ca:e.ca,log:e.log,bot:e.bot,format:e.format};if(e.dryRun){n({command:`cf radar annotations outages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/outages`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(H,a));r(s,{successLabel:`Loaded`})})};var G={method:`GET`,path:()=>`/radar/annotations/outages/locations`,query:[`limit`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function K(e){return e.usage(`$0 radar annotations outages locations
|
|
25
25
|
|
|
26
|
-
Retrieves the number of outages by location.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
26
|
+
Retrieves the number of outages by location.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`locations`,describe:`Get the number of outages by location`,builder:K,handler:async e=>a({command:`radar annotations outages locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar annotations outages locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/outages/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(G,a));r(s,{successLabel:`Loaded`})})},J={command:`outages`,describe:`Operations for annotations.outages`,builder:e=>e.command(W).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`annotations`,describe:`Radar annotations marking significant Internet events (outages, cable cuts, etc.)`,builder:e=>e.command(R).command(V).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`GET`,path:t=>e`/radar/as112/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Z(e){return e.usage(`$0 radar as112 summary <dimension>
|
|
27
27
|
|
|
28
|
-
Retrieves the distribution of AS112 queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
28
|
+
Retrieves the distribution of AS112 queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`summary <dimension>`,describe:`Get AS112 summary by dimension`,builder:Z,handler:async e=>a({command:`radar as112 summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar as112 summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(X,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var ie={method:`GET`,path:t=>e`/radar/as112/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ae(e){return e.usage(`$0 radar as112 timeseries-groups <dimension>
|
|
29
29
|
|
|
30
|
-
Retrieves the distribution of AS112 queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
30
|
+
Retrieves the distribution of AS112 queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`timeseries-groups <dimension>`,describe:`Get AS112 time series grouped by dimension`,builder:ae,handler:async e=>a({command:`radar as112 timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar as112 timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ie,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var se={method:`GET`,path:()=>`/radar/as112/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`format`],errors:{400:`BadRequestError`}};function ce(e){return e.usage(`$0 radar as112 timeseries
|
|
31
31
|
|
|
32
|
-
Retrieves the AS112 DNS queries over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
32
|
+
Retrieves the AS112 DNS queries over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`timeseries`,describe:`Get AS112 DNS queries time series`,builder:ce,handler:async e=>a({command:`radar as112 timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],format:e.format};if(e.dryRun){n({command:`cf radar as112 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(se,a));r(s,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/radar/as112/top/locations/dnssec/${t.dnssec}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function de(e){return e.usage(`$0 radar as112 top locations dnssec get <dnssec>
|
|
33
33
|
|
|
34
|
-
Retrieves the top locations of DNS queries to AS112 with DNSSEC (DNS Security Extensions) support.`).positional(`dnssec`,{type:`string`,description:`DNSSEC (DNS Security Extensions) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
34
|
+
Retrieves the top locations of DNS queries to AS112 with DNSSEC (DNS Security Extensions) support.`).positional(`dnssec`,{type:`string`,description:`DNSSEC (DNS Security Extensions) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <dnssec>`,describe:`Get top locations by AS112 DNS queries with DNSSEC support`,builder:de,handler:async e=>a({command:`radar as112 top locations dnssec get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar as112 top locations dnssec get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/dnssec/${e.dnssec==null?`<dnssec>`:encodeURIComponent(String(e.dnssec))}`,pathParams:{dnssec:String(e.dnssec??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ue,{dnssec:e.dnssec,...a}));r(s,{successLabel:`Loaded`})})},pe={command:`dnssec`,describe:`Operations for as112.top.locations.dnssec`,builder:e=>e.command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var me={method:`GET`,path:t=>e`/radar/as112/top/locations/edns/${t.edns}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function he(e){return e.usage(`$0 radar as112 top locations edns get <edns>
|
|
35
35
|
|
|
36
|
-
Retrieves the top locations of DNS queries to AS112 with EDNS (Extension Mechanisms for DNS) support.`).positional(`edns`,{type:`string`,description:`EDNS (Extension Mechanisms for DNS) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`
|
|
36
|
+
Retrieves the top locations of DNS queries to AS112 with EDNS (Extension Mechanisms for DNS) support.`).positional(`edns`,{type:`string`,description:`EDNS (Extension Mechanisms for DNS) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`get <edns>`,describe:`Get top locations by AS112 DNS queries with EDNS support`,builder:he,handler:async e=>a({command:`radar as112 top locations edns get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar as112 top locations edns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/edns/${e.edns==null?`<edns>`:encodeURIComponent(String(e.edns))}`,pathParams:{edns:String(e.edns??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(me,{edns:e.edns,...a}));r(s,{successLabel:`Loaded`})})},_e={command:`edns`,describe:`Operations for as112.top.locations.edns`,builder:e=>e.command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ve={method:`GET`,path:()=>`/radar/as112/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function ye(e){return e.usage(`$0 radar as112 top locations get
|
|
37
37
|
|
|
38
|
-
Retrieves the top locations
|
|
38
|
+
Retrieves the top locations by AS112 DNS queries.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`get`,describe:`Get top locations by AS112 DNS queries`,builder:ye,handler:async e=>a({command:`radar as112 top locations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar as112 top locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ve,a));r(s,{successLabel:`Loaded`})})};var xe={method:`GET`,path:t=>e`/radar/as112/top/locations/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function Se(e){return e.usage(`$0 radar as112 top locations ip-version get <ip-version>
|
|
39
39
|
|
|
40
|
-
Retrieves the top locations
|
|
40
|
+
Retrieves the top locations of DNS queries to AS112 for an IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ce={command:`get <ip-version>`,describe:`Get top locations by AS112 DNS queries for an IP version`,builder:Se,handler:async e=>a({command:`radar as112 top locations ip-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar as112 top locations ip-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(xe,{ip_version:e[`ip-version`],...a}));r(s,{successLabel:`Loaded`})})},we={command:`ip-version`,describe:`Operations for as112.top.locations.ip-version`,builder:e=>e.command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Te={command:`locations`,describe:`Operations for as112.top.locations`,builder:e=>e.command(be).command(pe).command(_e).command(we).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ee={command:`top`,describe:`Operations for as112.top`,builder:e=>e.command(Te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},De={command:`as112`,describe:`AS112 DNS sinkhole statistics — reverse DNS query volumes for private address space`,builder:e=>e.command(re).command(le).command(oe).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Oe={method:`GET`,path:t=>e`/radar/attacks/layer3/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`direction`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ke(e){return e.usage(`$0 radar attacks layer3 summary <dimension>
|
|
41
41
|
|
|
42
|
-
Retrieves the distribution of layer 3 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
42
|
+
Retrieves the distribution of layer 3 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`summary <dimension>`,describe:`Get layer 3 attacks summary by dimension`,builder:ke,handler:async e=>a({command:`radar attacks layer3 summary`,classification:{safeFlags:[`direction`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,direction:e.direction,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Oe,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var je={method:`GET`,path:t=>e`/radar/attacks/layer3/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`normalization`,`direction`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Me(e){return e.usage(`$0 radar attacks layer3 timeseries-groups <dimension>
|
|
43
43
|
|
|
44
|
-
Retrieves the distribution of layer 3 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
44
|
+
Retrieves the distribution of layer 3 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`timeseries-groups <dimension>`,describe:`Get layer 3 attacks time series grouped by dimension`,builder:Me,handler:async e=>a({command:`radar attacks layer3 timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`direction`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,normalization:e.normalization,direction:e.direction,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(je,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Pe={method:`GET`,path:()=>`/radar/attacks/layer3/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`protocol`,`normalization`,`metric`,`direction`,`format`],errors:{400:`BadRequestError`}};function Fe(e){return e.usage(`$0 radar attacks layer3 timeseries
|
|
45
45
|
|
|
46
|
-
Retrieves layer 3 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`metric`,{type:`string`,description:`Measurement units, eg. bytes.`,choices:[`BYTES`,`BYTES_OLD`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
46
|
+
Retrieves layer 3 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`metric`,{type:`string`,description:`Measurement units, eg. bytes.`,choices:[`BYTES`,`BYTES_OLD`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ie={command:`timeseries`,describe:`Get layer 3 attacks by bytes time series`,builder:Fe,handler:async e=>a({command:`radar attacks layer3 timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`metric`,`direction`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,normalization:e.normalization,metric:e.metric,direction:e.direction,format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pe,a));r(s,{successLabel:`Loaded`})})};var Le={method:`GET`,path:()=>`/radar/attacks/layer3/top/attacks`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`limitDirection`,`limitPerLocation`,`magnitude`,`normalization`,`format`],errors:{404:`NotFoundError`}};function Re(e){return e.usage(`$0 radar attacks layer3 top attacks
|
|
47
47
|
|
|
48
|
-
Retrieves the top layer 3 attacks from origin to target location. Values are a percentage out of the total layer 3 attacks (with billing country). You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`magnitude`,{type:`string`,description:`Orders results based on attack magnitude, defined by total mitigated bytes or total mitigated attacks.`,choices:[`MITIGATED_BYTES`,`MITIGATED_ATTACKS`]}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
48
|
+
Retrieves the top layer 3 attacks from origin to target location. Values are a percentage out of the total layer 3 attacks (with billing country). You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`magnitude`,{type:`string`,description:`Orders results based on attack magnitude, defined by total mitigated bytes or total mitigated attacks.`,choices:[`MITIGATED_BYTES`,`MITIGATED_ATTACKS`]}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`attacks`,describe:`Get top layer 3 attack pairs (origin and target locations)`,builder:Re,handler:async e=>a({command:`radar attacks layer3 top attacks`,classification:{safeFlags:[`limit-direction`,`magnitude`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,limitDirection:e[`limit-direction`],limitPerLocation:e[`limit-per-location`],magnitude:e.magnitude,normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 top attacks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/attacks`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Le,a));r(s,{successLabel:`Loaded`})})};var Be={method:`GET`,path:()=>`/radar/attacks/layer3/top/locations/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`format`],errors:{404:`NotFoundError`}};function Ve(e){return e.usage(`$0 radar attacks layer3 top locations origin
|
|
49
49
|
|
|
50
|
-
Retrieves the origin locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
50
|
+
Retrieves the origin locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`origin`,describe:`Get top origin locations of layer 3 attacks`,builder:Ve,handler:async e=>a({command:`radar attacks layer3 top locations origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 top locations origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/locations/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Be,a));r(s,{successLabel:`Loaded`})})};var Ue={method:`GET`,path:()=>`/radar/attacks/layer3/top/locations/target`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`format`],errors:{404:`NotFoundError`}};function We(e){return e.usage(`$0 radar attacks layer3 top locations target
|
|
51
51
|
|
|
52
|
-
Retrieves the target locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
52
|
+
Retrieves the target locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ge={command:`target`,describe:`Get top target locations of layer 3 attacks`,builder:We,handler:async e=>a({command:`radar attacks layer3 top locations target`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,format:e.format};if(e.dryRun){n({command:`cf radar attacks layer3 top locations target`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/locations/target`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ue,a));r(s,{successLabel:`Loaded`})})},Ke={command:`locations`,describe:`Operations for attacks.layer3.top.locations`,builder:e=>e.command(He).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},qe={command:`top`,describe:`Operations for attacks.layer3.top`,builder:e=>e.command(ze).command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Je={command:`layer3`,describe:`Operations for attacks.layer3`,builder:e=>e.command(Ae).command(Ie).command(Ne).command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ye={method:`GET`,path:t=>e`/radar/attacks/layer7/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Xe(e){return e.usage(`$0 radar attacks layer7 summary <dimension>
|
|
53
53
|
|
|
54
|
-
Retrieves the distribution of layer 7 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
54
|
+
Retrieves the distribution of layer 7 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`summary <dimension>`,describe:`Get layer 7 attacks summary by dimension`,builder:Xe,handler:async e=>a({command:`radar attacks layer7 summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ye,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Qe={method:`GET`,path:t=>e`/radar/attacks/layer7/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`normalization`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function $e(e){return e.usage(`$0 radar attacks layer7 timeseries-groups <dimension>
|
|
55
55
|
|
|
56
|
-
Retrieves the distribution of layer 7 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
56
|
+
Retrieves the distribution of layer 7 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`timeseries-groups <dimension>`,describe:`Get layer 7 attacks time series grouped by dimension`,builder:$e,handler:async e=>a({command:`radar attacks layer7 timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],normalization:e.normalization,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qe,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var tt={method:`GET`,path:()=>`/radar/attacks/layer7/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`normalization`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{400:`BadRequestError`}};function nt(e){return e.usage(`$0 radar attacks layer7 timeseries
|
|
57
57
|
|
|
58
|
-
Retrieves layer 7 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
58
|
+
Retrieves layer 7 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`timeseries`,describe:`Get layer 7 attacks time series`,builder:nt,handler:async e=>a({command:`radar attacks layer7 timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,normalization:e.normalization,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tt,a));r(s,{successLabel:`Loaded`})})};var it={method:`GET`,path:()=>`/radar/attacks/layer7/top/ases/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function at(e){return e.usage(`$0 radar attacks layer7 top ases origin
|
|
59
59
|
|
|
60
|
-
Retrieves the top origin autonomous systems of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin autonomous systems determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
60
|
+
Retrieves the top origin autonomous systems of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin autonomous systems determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ot={command:`origin`,describe:`Get top origin ASes of layer 7 attacks`,builder:at,handler:async e=>a({command:`radar attacks layer7 top ases origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 top ases origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/ases/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(it,a));r(s,{successLabel:`Loaded`})})},st={command:`ases`,describe:`Operations for attacks.layer7.top.ases`,builder:e=>e.command(ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ct={method:`GET`,path:()=>`/radar/attacks/layer7/top/attacks`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`mitigationProduct`,`limitDirection`,`limitPerLocation`,`normalization`,`format`],errors:{404:`NotFoundError`}};function lt(e){return e.usage(`$0 radar attacks layer7 top attacks
|
|
61
61
|
|
|
62
|
-
Retrieves the top attacks from origin to target location. Values are percentages of the total layer 7 attacks (with billing country). The attack magnitude can be defined by the number of mitigated requests or by the number of zones affected. You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
62
|
+
Retrieves the top attacks from origin to target location. Values are percentages of the total layer 7 attacks (with billing country). The attack magnitude can be defined by the number of mitigated requests or by the number of zones affected. You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ut={command:`attacks`,describe:`Get top layer 7 attack pairs (origin and target locations)`,builder:lt,handler:async e=>a({command:`radar attacks layer7 top attacks`,classification:{safeFlags:[`limit-direction`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,mitigationProduct:e[`mitigation-product`],limitDirection:e[`limit-direction`],limitPerLocation:e[`limit-per-location`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 top attacks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/attacks`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ct,a));r(s,{successLabel:`Loaded`})})};var dt={method:`GET`,path:()=>`/radar/attacks/layer7/top/locations/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function ft(e){return e.usage(`$0 radar attacks layer7 top locations origin
|
|
63
63
|
|
|
64
|
-
Retrieves the top origin locations of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin location determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
64
|
+
Retrieves the top origin locations of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin location determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,array:!0,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pt={command:`origin`,describe:`Get top origin locations of layer 7 attacks`,builder:ft,handler:async e=>a({command:`radar attacks layer7 top locations origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 top locations origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/locations/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(dt,a));r(s,{successLabel:`Loaded`})})};var mt={method:`GET`,path:()=>`/radar/attacks/layer7/top/locations/target`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`continent`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function ht(e){return e.usage(`$0 radar attacks layer7 top locations target
|
|
65
65
|
|
|
66
|
-
Retrieves the top target locations of and by layer 7 attacks. Values are a percentage out of the total layer 7 attacks. The target location is determined by the attacked zone's billing country, when available.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
66
|
+
Retrieves the top target locations of and by layer 7 attacks. Values are a percentage out of the total layer 7 attacks. The target location is determined by the attacked zone's billing country, when available.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,array:!0,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gt={command:`target`,describe:`Get top target locations of layer 7 attacks`,builder:ht,handler:async e=>a({command:`radar attacks layer7 top locations target`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],continent:e.continent,mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){n({command:`cf radar attacks layer7 top locations target`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/locations/target`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(mt,a));r(s,{successLabel:`Loaded`})})},_t={command:`locations`,describe:`Operations for attacks.layer7.top.locations`,builder:e=>e.command(pt).command(gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},vt={command:`top`,describe:`Operations for attacks.layer7.top`,builder:e=>e.command(ut).command(st).command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},yt={command:`layer7`,describe:`Operations for attacks.layer7`,builder:e=>e.command(Ze).command(rt).command(et).command(vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},bt={command:`attacks`,describe:`DDoS and application-layer attack trends, vectors, and target analysis`,builder:e=>e.command(Je).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var xt={method:`GET`,path:()=>`/radar/bgp/hijacks/events`,query:[`page`,`per_page`,`eventId`,`hijackerAsn`,`victimAsn`,`involvedAsn`,`involvedCountry`,`prefix`,`minConfidence`,`maxConfidence`,`dateRange`,`dateStart`,`dateEnd`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function St(e){return e.usage(`$0 radar bgp hijacks events list
|
|
67
67
|
|
|
68
|
-
Retrieves the BGP hijack events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`hijacker-asn`,{type:`number`,description:`The potential hijacker AS of a BGP hijack event.`}).option(`victim-asn`,{type:`number`,description:`The potential victim AS of a BGP hijack event.`}).option(`involved-asn`,{type:`number`,description:`The potential hijacker or victim AS of a BGP hijack event.`}).option(`involved-country`,{type:`string`,description:`The country code of the potential hijacker or victim AS of a BGP hijack event.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`min-confidence`,{type:`number`,description:`Filters events by minimum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`max-confidence`,{type:`number`,description:`Filters events by maximum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`TIME`,`CONFIDENCE`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
68
|
+
Retrieves the BGP hijack events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`hijacker-asn`,{type:`number`,description:`The potential hijacker AS of a BGP hijack event.`}).option(`victim-asn`,{type:`number`,description:`The potential victim AS of a BGP hijack event.`}).option(`involved-asn`,{type:`number`,description:`The potential hijacker or victim AS of a BGP hijack event.`}).option(`involved-country`,{type:`string`,description:`The country code of the potential hijacker or victim AS of a BGP hijack event.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`min-confidence`,{type:`number`,description:`Filters events by minimum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`max-confidence`,{type:`number`,description:`Filters events by maximum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`TIME`,`CONFIDENCE`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ct={command:`list`,describe:`Get BGP hijack events`,builder:St,handler:async e=>a({command:`radar bgp hijacks events list`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],eventId:e[`event-id`],hijackerAsn:e[`hijacker-asn`],victimAsn:e[`victim-asn`],involvedAsn:e[`involved-asn`],involvedCountry:e[`involved-country`],prefix:e.prefix,minConfidence:e[`min-confidence`],maxConfidence:e[`max-confidence`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){n({command:`cf radar bgp hijacks events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/hijacks/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(xt,a));r(s,{successLabel:`Loaded`})})},wt={command:`events`,describe:`Operations for bgp.hijacks.events`,builder:e=>e.command(Ct).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Tt={command:`hijacks`,describe:`Operations for bgp.hijacks`,builder:e=>e.command(wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Et={method:`GET`,path:()=>`/radar/bgp/ips/timeseries`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`ipVersion`,`includeDelay`,`format`],errors:{400:`BadRequestError`}};function Dt(e){return e.usage(`$0 radar bgp ips timeseries
|
|
69
69
|
|
|
70
|
-
Retrieves time series data for the announced IP space count, represented as the number of IPv4 /24s and IPv6 /48s, for a given ASN.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`include-delay`,{type:`boolean`,description:`Includes data delay meta information.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
70
|
+
Retrieves time series data for the announced IP space count, represented as the number of IPv4 /24s and IPv6 /48s, for a given ASN.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`include-delay`,{type:`boolean`,description:`Includes data delay meta information.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ot={command:`timeseries`,describe:`Get announced IP address space time series`,builder:Dt,handler:async e=>a({command:`radar bgp ips timeseries`,classification:{safeFlags:[`include-delay`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,ipVersion:e[`ip-version`],includeDelay:e[`include-delay`],format:e.format};if(e.dryRun){n({command:`cf radar bgp ips timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/ips/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Et,a));r(s,{successLabel:`Loaded`})})};var kt={method:`GET`,path:()=>`/radar/bgp/ips/top/ases`,query:[`date`,`limit`,`metric`,`country`,`format`],errors:{400:`BadRequestError`}};function At(e){return e.usage(`$0 radar bgp ips top ases
|
|
71
71
|
|
|
72
|
-
Returns the top-N autonomous systems by announced IP space at the nearest 8-hour RIB boundary at or before the requested date. The snapped boundary is returned as \`anchor_ts\`.`).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`metric`,{type:`string`,description:`Ranking metric: IPv4 /24 count or IPv6 /48 count.`,choices:[`v4_24s`,`v6_48s`]}).option(`country`,{type:`string`,description:`Optional ISO 3166-1 alpha-2 country filter. Omit for global top-N.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
72
|
+
Returns the top-N autonomous systems by announced IP space at the nearest 8-hour RIB boundary at or before the requested date. The snapped boundary is returned as \`anchor_ts\`.`).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`metric`,{type:`string`,description:`Ranking metric: IPv4 /24 count or IPv6 /48 count.`,choices:[`v4_24s`,`v6_48s`]}).option(`country`,{type:`string`,description:`Optional ISO 3166-1 alpha-2 country filter. Omit for global top-N.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jt={command:`ases`,describe:`Get top ASes by announced IP space`,builder:At,handler:async e=>a({command:`radar bgp ips top ases`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={date:e.date,limit:e.limit,metric:e.metric,country:e.country,format:e.format};if(e.dryRun){n({command:`cf radar bgp ips top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/ips/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(kt,a));r(s,{successLabel:`Loaded`})})},Mt={command:`top`,describe:`Operations for bgp.ips.top`,builder:e=>e.command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Nt={command:`ips`,describe:`Operations for bgp.ips`,builder:e=>e.command(Ot).command(Mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pt={method:`GET`,path:()=>`/radar/bgp/leaks/events`,query:[`page`,`per_page`,`eventId`,`leakAsn`,`involvedAsn`,`involvedCountry`,`dateRange`,`dateStart`,`dateEnd`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Ft(e){return e.usage(`$0 radar bgp leaks events list
|
|
73
73
|
|
|
74
|
-
Retrieves the BGP route leak events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`leak-asn`,{type:`number`,description:`The leaking AS of a route leak event.`}).option(`involved-asn`,{type:`number`,description:`ASN that is causing or affected by a route leak event.`}).option(`involved-country`,{type:`string`,description:`Country code of a involved ASN in a route leak event.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`LEAKS`,`PEERS`,`PREFIXES`,`ORIGINS`,`TIME`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
74
|
+
Retrieves the BGP route leak events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`leak-asn`,{type:`number`,description:`The leaking AS of a route leak event.`}).option(`involved-asn`,{type:`number`,description:`ASN that is causing or affected by a route leak event.`}).option(`involved-country`,{type:`string`,description:`Country code of a involved ASN in a route leak event.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`LEAKS`,`PEERS`,`PREFIXES`,`ORIGINS`,`TIME`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`list`,describe:`Get BGP route leak events`,builder:Ft,handler:async e=>a({command:`radar bgp leaks events list`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],eventId:e[`event-id`],leakAsn:e[`leak-asn`],involvedAsn:e[`involved-asn`],involvedCountry:e[`involved-country`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){n({command:`cf radar bgp leaks events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/leaks/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pt,a));r(s,{successLabel:`Loaded`})})},Lt={command:`events`,describe:`Operations for bgp.leaks.events`,builder:e=>e.command(It).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Rt={command:`leaks`,describe:`Operations for bgp.leaks`,builder:e=>e.command(Lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var zt={method:`GET`,path:()=>`/radar/bgp/routes/ases`,query:[`location`,`limit`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Bt(e){return e.usage(`$0 radar bgp routes ases
|
|
75
75
|
|
|
76
|
-
Retrieves all ASes in the current global routing tables with routing statistics.`).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`cone`,`pfxs`,`ipv4`,`ipv6`,`rpki_valid`,`rpki_invalid`,`rpki_unknown`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
76
|
+
Retrieves all ASes in the current global routing tables with routing statistics.`).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`cone`,`pfxs`,`ipv4`,`ipv6`,`rpki_valid`,`rpki_invalid`,`rpki_unknown`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`ases`,describe:`List ASes from global routing tables`,builder:Bt,handler:async e=>a({command:`radar bgp routes ases`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={location:e.location,limit:e.limit,sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){n({command:`cf radar bgp routes ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(zt,a));r(s,{successLabel:`Loaded`})})};var Ht={method:`GET`,path:()=>`/radar/bgp/routes/moas`,query:[`origin`,`prefix`,`invalid_only`,`format`],errors:{400:`BadRequestError`}};function Ut(e){return e.usage(`$0 radar bgp routes moas
|
|
77
77
|
|
|
78
|
-
Retrieves all Multi-Origin AS (MOAS) prefixes in the global routing tables.`).option(`origin`,{type:`number`,description:`Lookup MOASes originated by the given ASN.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`invalid-only`,{type:`boolean`,description:`Lookup only RPKI invalid MOASes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
78
|
+
Retrieves all Multi-Origin AS (MOAS) prefixes in the global routing tables.`).option(`origin`,{type:`number`,description:`Lookup MOASes originated by the given ASN.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`invalid-only`,{type:`boolean`,description:`Lookup only RPKI invalid MOASes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wt={command:`moas`,describe:`Get Multi-Origin AS (MOAS) prefixes`,builder:Ut,handler:async e=>a({command:`radar bgp routes moas`,classification:{safeFlags:[`invalid-only`,`format`,`dry-run`]}},e,async()=>{let a={origin:e.origin,prefix:e.prefix,invalid_only:e[`invalid-only`],format:e.format};if(e.dryRun){n({command:`cf radar bgp routes moas`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/moas`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ht,a));r(s,{successLabel:`Loaded`})})};var Gt={method:`GET`,path:t=>e`/radar/bgp/routes/paths/${t.asn}`,query:[`ipVersion`,`collector`,`format`],errors:{400:`BadRequestError`}};function Kt(e){return e.usage(`$0 radar bgp routes paths list
|
|
79
79
|
|
|
80
|
-
Retrieves the paths an AS uses to reach the tier-1 clique, derived from RouteViews RIB snapshots. Each entry is an ordered AS-path segment (from the queried AS toward a tier-1) with the number of observed paths and peers, and the collectors that observed it. By default segments are merged across all active collectors; pass "collector" to scope to one. The response also includes an "asnInfo" map (keyed by ASN) with the name and country for every ASN in the returned segments plus the queried ASN (best-effort; null when unavailable).`).option(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`collector`,{type:`string`,description:`Scope to a single RouteViews collector (e.g. "route-views3"). Omit to merge across all active collectors (identical path segments are deduplicated, observation counts summed, and every contributing collector listed).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
80
|
+
Retrieves the paths an AS uses to reach the tier-1 clique, derived from RouteViews RIB snapshots. Each entry is an ordered AS-path segment (from the queried AS toward a tier-1) with the number of observed paths and peers, and the collectors that observed it. By default segments are merged across all active collectors; pass "collector" to scope to one. The response also includes an "asnInfo" map (keyed by ASN) with the name and country for every ASN in the returned segments plus the queried ASN (best-effort; null when unavailable).`).option(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`collector`,{type:`string`,description:`Scope to a single RouteViews collector (e.g. "route-views3"). Omit to merge across all active collectors (identical path segments are deduplicated, observation counts summed, and every contributing collector listed).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qt={command:`list`,describe:`Get tier-1 path segments for an AS`,builder:Kt,handler:async e=>a({command:`radar bgp routes paths list`,classification:{safeFlags:[`ip-version`,`format`,`dry-run`]}},e,async()=>{let a={ipVersion:e[`ip-version`],collector:e.collector,format:e.format};if(e.dryRun){n({command:`cf radar bgp routes paths list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/paths/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Gt,{asn:e.asn,...a}));r(s,{successLabel:`Loaded`})})},Jt={command:`paths`,describe:`Operations for bgp.routes.paths`,builder:e=>e.command(qt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Yt={method:`GET`,path:()=>`/radar/bgp/routes/pfx2as`,query:[`prefix`,`origin`,`rpkiStatus`,`longestPrefixMatch`,`format`],errors:{400:`BadRequestError`}};function Xt(e){return e.usage(`$0 radar bgp routes pfx2as
|
|
81
81
|
|
|
82
|
-
Retrieves the prefix-to-ASN mapping from global routing tables.`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`origin`,{type:`number`,description:`Lookup prefixes originated by the given ASN.`}).option(`rpki-status`,{type:`string`,description:`Return only results with matching rpki status: valid, invalid or unknown.`,choices:[`VALID`,`INVALID`,`UNKNOWN`]}).option(`longest-prefix-match`,{type:`boolean`,description:`Return only results with the longest prefix match for the given prefix. For example, specify a /32 prefix to lookup the origin ASN for an IPv4 address.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
82
|
+
Retrieves the prefix-to-ASN mapping from global routing tables.`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`origin`,{type:`number`,description:`Lookup prefixes originated by the given ASN.`}).option(`rpki-status`,{type:`string`,description:`Return only results with matching rpki status: valid, invalid or unknown.`,choices:[`VALID`,`INVALID`,`UNKNOWN`]}).option(`longest-prefix-match`,{type:`boolean`,description:`Return only results with the longest prefix match for the given prefix. For example, specify a /32 prefix to lookup the origin ASN for an IPv4 address.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`pfx2as`,describe:`Get prefix-to-ASN mapping`,builder:Xt,handler:async e=>a({command:`radar bgp routes pfx2as`,classification:{safeFlags:[`rpki-status`,`longest-prefix-match`,`format`,`dry-run`]}},e,async()=>{let a={prefix:e.prefix,origin:e.origin,rpkiStatus:e[`rpki-status`],longestPrefixMatch:e[`longest-prefix-match`],format:e.format};if(e.dryRun){n({command:`cf radar bgp routes pfx2as`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/pfx2as`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Yt,a));r(s,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:()=>`/radar/bgp/routes/realtime`,query:[`prefix`,`format`],errors:{400:`BadRequestError`}};function $t(e){return e.usage(`$0 radar bgp routes realtime
|
|
83
83
|
|
|
84
|
-
Retrieves real-time BGP routes for a prefix, using public real-time data collectors (RouteViews and RIPE RIS).`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
84
|
+
Retrieves real-time BGP routes for a prefix, using public real-time data collectors (RouteViews and RIPE RIS).`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const en={command:`realtime`,describe:`Get real-time BGP routes for a prefix`,builder:$t,handler:async e=>a({command:`radar bgp routes realtime`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={prefix:e.prefix,format:e.format};if(e.dryRun){n({command:`cf radar bgp routes realtime`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/realtime`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qt,a));r(s,{successLabel:`Loaded`})})};var tn={method:`GET`,path:()=>`/radar/bgp/routes/stats`,query:[`asn`,`location`,`format`],errors:{400:`BadRequestError`}};function nn(e){return e.usage(`$0 radar bgp routes stats
|
|
85
85
|
|
|
86
|
-
Retrieves the BGP routing table stats.`).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
86
|
+
Retrieves the BGP routing table stats.`).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rn={command:`stats`,describe:`Get BGP routing table stats`,builder:nn,handler:async e=>a({command:`radar bgp routes stats`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={asn:e.asn,location:e.location,format:e.format};if(e.dryRun){n({command:`cf radar bgp routes stats`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/stats`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tn,a));r(s,{successLabel:`Loaded`})})};var an={method:`GET`,path:t=>e`/radar/bgp/routes/upstreams/${t.asn}/timeseries`,query:[`ipVersion`,`dateStart`,`dateEnd`,`limit`,`format`],errors:{400:`BadRequestError`}};function on(e){return e.usage(`$0 radar bgp routes upstreams timeseries <asn>
|
|
87
87
|
|
|
88
|
-
Retrieves the share of an AS’s observed paths carried by each direct upstream over time, derived from RouteViews RIB snapshots across all collectors (the combined product). Each upstream ASN is returned as its own series of shares (0–1); the least-significant upstreams beyond the requested limit are grouped into an "OTHER" series. Series share a common set of timestamps.`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`limit`,{type:`number`,description:`Number of upstream ASNs to return as separate series, ranked by the first bucket. Remaining upstreams are grouped into an "OTHER" series. Defaults to 5.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
88
|
+
Retrieves the share of an AS’s observed paths carried by each direct upstream over time, derived from RouteViews RIB snapshots across all collectors (the combined product). Each upstream ASN is returned as its own series of shares (0–1); the least-significant upstreams beyond the requested limit are grouped into an "OTHER" series. Series share a common set of timestamps.`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`limit`,{type:`number`,description:`Number of upstream ASNs to return as separate series, ranked by the first bucket. Remaining upstreams are grouped into an "OTHER" series. Defaults to 5.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sn={command:`timeseries <asn>`,describe:`Get upstream composition time series for an AS`,builder:on,handler:async e=>a({command:`radar bgp routes upstreams timeseries`,classification:{safeFlags:[`ip-version`,`format`,`dry-run`]}},e,async()=>{let a={ipVersion:e[`ip-version`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limit:e.limit,format:e.format};if(e.dryRun){n({command:`cf radar bgp routes upstreams timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/upstreams/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/timeseries`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(an,{asn:e.asn,...a}));r(s,{successLabel:`Loaded`})})},cn={command:`upstreams`,describe:`Operations for bgp.routes.upstreams`,builder:e=>e.command(sn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ln={command:`routes`,describe:`Operations for bgp.routes`,builder:e=>e.command(Vt).command(Wt).command(Zt).command(en).command(rn).command(Jt).command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var un={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/changes`,query:[`dateStart`,`dateEnd`,`asn`,`includeAsnInfo`,`format`],errors:{400:`BadRequestError`}};function dn(e){return e.usage(`$0 radar bgp rpki aspa changes
|
|
89
89
|
|
|
90
|
-
Retrieves ASPA (Autonomous System Provider Authorization) changes over time. Returns daily aggregated changes including additions, removals, and modifications of ASPA objects.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`asn`,{type:`number`,description:`Filter changes involving this ASN (as customer or provider).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
90
|
+
Retrieves ASPA (Autonomous System Provider Authorization) changes over time. Returns daily aggregated changes including additions, removals, and modifications of ASPA objects.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`asn`,{type:`number`,description:`Filter changes involving this ASN (as customer or provider).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fn={command:`changes`,describe:`Get ASPA changes over time`,builder:dn,handler:async e=>a({command:`radar bgp rpki aspa changes`,classification:{safeFlags:[`include-asn-info`,`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,includeAsnInfo:e[`include-asn-info`],format:e.format};if(e.dryRun){n({command:`cf radar bgp rpki aspa changes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/changes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(un,a));r(s,{successLabel:`Loaded`})})};var pn={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/snapshot`,query:[`customerAsn`,`providerAsn`,`date`,`includeAsnInfo`,`format`],errors:{400:`BadRequestError`}};function mn(e){return e.usage(`$0 radar bgp rpki aspa snapshot
|
|
91
91
|
|
|
92
|
-
Retrieves current or historical ASPA (Autonomous System Provider Authorization) objects. ASPA objects define which ASNs are authorized upstream providers for a customer ASN.`).option(`customer-asn`,{type:`number`,description:`Filter by customer ASN (the ASN publishing the ASPA object).`}).option(`provider-asn`,{type:`number`,description:`Filter by provider ASN (an authorized upstream provider in ASPA objects).`}).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
92
|
+
Retrieves current or historical ASPA (Autonomous System Provider Authorization) objects. ASPA objects define which ASNs are authorized upstream providers for a customer ASN.`).option(`customer-asn`,{type:`number`,description:`Filter by customer ASN (the ASN publishing the ASPA object).`}).option(`provider-asn`,{type:`number`,description:`Filter by provider ASN (an authorized upstream provider in ASPA objects).`}).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`snapshot`,describe:`Get ASPA objects snapshot`,builder:mn,handler:async e=>a({command:`radar bgp rpki aspa snapshot`,classification:{safeFlags:[`include-asn-info`,`format`,`dry-run`]}},e,async()=>{let a={customerAsn:e[`customer-asn`],providerAsn:e[`provider-asn`],date:e.date,includeAsnInfo:e[`include-asn-info`],format:e.format};if(e.dryRun){n({command:`cf radar bgp rpki aspa snapshot`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/snapshot`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(pn,a));r(s,{successLabel:`Loaded`})})};var gn={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/timeseries`,query:[`dateStart`,`dateEnd`,`name`,`rir`,`location`,`format`],errors:{400:`BadRequestError`}};function _n(e){return e.usage(`$0 radar bgp rpki aspa timeseries
|
|
93
93
|
|
|
94
|
-
Retrieves ASPA (Autonomous System Provider Authorization) object count over time. Supports filtering by RIR or location (country code) to generate multiple named series. If no RIR or location filter is specified, returns total count.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`rir`,{type:`string`,array:!0,description:`Filter by Regional Internet Registry (RIR). Multiple RIRs generate multiple series.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
94
|
+
Retrieves ASPA (Autonomous System Provider Authorization) object count over time. Supports filtering by RIR or location (country code) to generate multiple named series. If no RIR or location filter is specified, returns total count.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`rir`,{type:`string`,array:!0,description:`Filter by Regional Internet Registry (RIR). Multiple RIRs generate multiple series.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vn={command:`timeseries`,describe:`Get ASPA count time series`,builder:_n,handler:async e=>a({command:`radar bgp rpki aspa timeseries`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],name:e.name,rir:e.rir,location:e.location,format:e.format};if(e.dryRun){n({command:`cf radar bgp rpki aspa timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(gn,a));r(s,{successLabel:`Loaded`})})},yn={command:`aspa`,describe:`Operations for bgp.rpki.aspa`,builder:e=>e.command(fn).command(hn).command(vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var bn={method:`GET`,path:()=>`/radar/bgp/rpki/roas/timeseries`,query:[`dateStart`,`dateEnd`,`metric`,`asn`,`location`,`name`,`format`],errors:{400:`BadRequestError`}};function xn(e){return e.usage(`$0 radar bgp rpki roas timeseries
|
|
95
95
|
|
|
96
|
-
Retrieves RPKI ROA (Route Origin Authorization) validation ratios over time. Returns the selected metric as a time series. Supports filtering by ASN or location (country code) — multiple values of the same filter type produce one series per value. If no ASN or location is specified, returns the global aggregate.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`metric`,{type:`string`,description:`Which RPKI ROA validation metric to return. validPfxsRatio = ratio of RPKI-valid prefixes (IPv4+IPv6 combined). validPfxsV4Ratio / validPfxsV6Ratio = same, split by IP version. validIpsRatio = ratio of RPKI-valid address space (IPv4 /24s + IPv6 /48s). validIpsV4Ratio / validIpsV6Ratio = same, split by IP version.`,choices:[`validPfxsRatio`,`validPfxsV4Ratio`,`validPfxsV6Ratio`,`validIpsRatio`,`validIpsV4Ratio`,`validIpsV6Ratio`]}).option(`asn`,{type:`string`,array:!0,description:`Filters results by Autonomous System Number. Specify one or more ASNs. Multiple values generate one series per ASN.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
96
|
+
Retrieves RPKI ROA (Route Origin Authorization) validation ratios over time. Returns the selected metric as a time series. Supports filtering by ASN or location (country code) — multiple values of the same filter type produce one series per value. If no ASN or location is specified, returns the global aggregate.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`metric`,{type:`string`,description:`Which RPKI ROA validation metric to return. validPfxsRatio = ratio of RPKI-valid prefixes (IPv4+IPv6 combined). validPfxsV4Ratio / validPfxsV6Ratio = same, split by IP version. validIpsRatio = ratio of RPKI-valid address space (IPv4 /24s + IPv6 /48s). validIpsV4Ratio / validIpsV6Ratio = same, split by IP version.`,choices:[`validPfxsRatio`,`validPfxsV4Ratio`,`validPfxsV6Ratio`,`validIpsRatio`,`validIpsV4Ratio`,`validIpsV6Ratio`]}).option(`asn`,{type:`string`,array:!0,description:`Filters results by Autonomous System Number. Specify one or more ASNs. Multiple values generate one series per ASN.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Sn={command:`timeseries`,describe:`Get RPKI ROA deployment time series`,builder:xn,handler:async e=>a({command:`radar bgp rpki roas timeseries`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],metric:e.metric,asn:e.asn,location:e.location,name:e.name,format:e.format};if(e.dryRun){n({command:`cf radar bgp rpki roas timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/roas/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(bn,a));r(s,{successLabel:`Loaded`})})},Cn={command:`roas`,describe:`Operations for bgp.rpki.roas`,builder:e=>e.command(Sn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wn={command:`rpki`,describe:`Operations for bgp.rpki`,builder:e=>e.command(yn).command(Cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Tn={method:`GET`,path:()=>`/radar/bgp/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`prefix`,`updateType`,`asn`,`format`],errors:{400:`BadRequestError`}};function En(e){return e.usage(`$0 radar bgp timeseries
|
|
97
97
|
|
|
98
|
-
Retrieves BGP updates over time. When requesting updates for an autonomous system, only BGP updates of type announcement are returned.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`prefix`,{type:`string`,array:!0,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
98
|
+
Retrieves BGP updates over time. When requesting updates for an autonomous system, only BGP updates of type announcement are returned.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`prefix`,{type:`string`,array:!0,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dn={command:`timeseries`,describe:`Get BGP time series`,builder:En,handler:async e=>a({command:`radar bgp timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],prefix:e.prefix,updateType:e[`update-type`],asn:e.asn,format:e.format};if(e.dryRun){n({command:`cf radar bgp timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Tn,a));r(s,{successLabel:`Loaded`})})};var On={method:`GET`,path:()=>`/radar/bgp/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`prefix`,`updateType`,`format`],errors:{400:`BadRequestError`}};function kn(e){return e.usage(`$0 radar bgp top ases get
|
|
99
99
|
|
|
100
|
-
Retrieves the top autonomous systems by BGP updates (announcements only).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`prefix`,{type:`string`,array:!0,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
100
|
+
Retrieves the top autonomous systems by BGP updates (announcements only).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`prefix`,{type:`string`,array:!0,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get`,describe:`Get top ASes by BGP updates`,builder:kn,handler:async e=>a({command:`radar bgp top ases get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,prefix:e.prefix,updateType:e[`update-type`],format:e.format};if(e.dryRun){n({command:`cf radar bgp top ases get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(On,a));r(s,{successLabel:`Loaded`})})};var jn={method:`GET`,path:()=>`/radar/bgp/top/ases/prefixes`,query:[`country`,`limit`,`format`],errors:{404:`NotFoundError`}};function Mn(e){return e.usage(`$0 radar bgp top ases prefixes
|
|
101
101
|
|
|
102
|
-
Retrieves the full list of autonomous systems on the global routing table ordered by announced prefixes count. The data comes from public BGP MRT data archives and updates every 2 hours.`).option(`country`,{type:`string`,description:`Alpha-2 country code.`}).option(`limit`,{type:`number`,description:`Maximum number of ASes to return.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
102
|
+
Retrieves the full list of autonomous systems on the global routing table ordered by announced prefixes count. The data comes from public BGP MRT data archives and updates every 2 hours.`).option(`country`,{type:`string`,description:`Alpha-2 country code.`}).option(`limit`,{type:`number`,description:`Maximum number of ASes to return.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nn={command:`prefixes`,describe:`Get top ASes by prefix count`,builder:Mn,handler:async e=>a({command:`radar bgp top ases prefixes`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={country:e.country,limit:e.limit,format:e.format};if(e.dryRun){n({command:`cf radar bgp top ases prefixes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/ases/prefixes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(jn,a));r(s,{successLabel:`Loaded`})})},Pn={command:`ases`,describe:`Operations for bgp.top.ases`,builder:e=>e.command(An).command(Nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Fn={method:`GET`,path:()=>`/radar/bgp/top/prefixes`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`updateType`,`format`],errors:{400:`BadRequestError`}};function In(e){return e.usage(`$0 radar bgp top prefixes
|
|
103
103
|
|
|
104
|
-
Retrieves the top network prefixes by BGP updates.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
104
|
+
Retrieves the top network prefixes by BGP updates.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`update-type`,{type:`string`,array:!0,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ln={command:`prefixes`,describe:`Get top prefixes by BGP updates`,builder:In,handler:async e=>a({command:`radar bgp top prefixes`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,updateType:e[`update-type`],format:e.format};if(e.dryRun){n({command:`cf radar bgp top prefixes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/prefixes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Fn,a));r(s,{successLabel:`Loaded`})})},Rn={command:`top`,describe:`Operations for bgp.top`,builder:e=>e.command(Ln).command(Pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},zn={command:`bgp`,describe:`BGP routing data — prefix announcements, AS-level stats, route leaks, and hijack events`,builder:e=>e.command(Dn).command(Tt).command(Nt).command(Rt).command(ln).command(wn).command(Rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Bn={method:`GET`,path:t=>e`/radar/bots/crawlers/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`botOperator`,`vertical`,`industry`,`clientType`,`responseStatus`,`responseStatusCategory`,`format`],errors:{400:`BadRequestError`}};function Vn(e){return e.usage(`$0 radar bots crawlers summary <dimension>
|
|
105
105
|
|
|
106
|
-
Retrieves the
|
|
106
|
+
Retrieves an aggregated summary of HTTP requests from crawlers, grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot-operator`,{type:`string`,array:!0,description:`Filters results by bot operator.`}).option(`vertical`,{type:`string`,array:!0,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,array:!0,description:`Filters results by industry.`}).option(`client-type`,{type:`string`,array:!0,description:`Filters results by agent type.`}).option(`response-status`,{type:`string`,array:!0,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,array:!0,description:`Filters results by HTTP response status code category.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Hn={command:`summary <dimension>`,describe:`Get crawler HTTP request distribution by dimension`,builder:Vn,handler:async e=>a({command:`radar bots crawlers summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],botOperator:e[`bot-operator`],vertical:e.vertical,industry:e.industry,clientType:e[`client-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],format:e.format};if(e.dryRun){n({command:`cf radar bots crawlers summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/crawlers/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Bn,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Un={method:`GET`,path:t=>e`/radar/bots/crawlers/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`normalization`,`botOperator`,`vertical`,`industry`,`clientType`,`responseStatus`,`responseStatusCategory`,`format`],errors:{400:`BadRequestError`}};function Wn(e){return e.usage(`$0 radar bots crawlers timeseries-groups <dimension>
|
|
107
107
|
|
|
108
|
-
Retrieves
|
|
108
|
+
Retrieves the distribution of HTTP requests from crawlers, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`bot-operator`,{type:`string`,array:!0,description:`Filters results by bot operator.`}).option(`vertical`,{type:`string`,array:!0,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,array:!0,description:`Filters results by industry.`}).option(`client-type`,{type:`string`,array:!0,description:`Filters results by agent type.`}).option(`response-status`,{type:`string`,array:!0,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,array:!0,description:`Filters results by HTTP response status code category.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gn={command:`timeseries-groups <dimension>`,describe:`Get time series of crawler HTTP request distribution by dimension`,builder:Wn,handler:async e=>a({command:`radar bots crawlers timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,botOperator:e[`bot-operator`],vertical:e.vertical,industry:e.industry,clientType:e[`client-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],format:e.format};if(e.dryRun){n({command:`cf radar bots crawlers timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/crawlers/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Un,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},Kn={command:`crawlers`,describe:`Operations for bots.crawlers`,builder:e=>e.command(Hn).command(Gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qn={method:`GET`,path:t=>e`/radar/bots/${t.bot_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function Jn(e){return e.usage(`$0 radar bots get <bot-slug>
|
|
109
109
|
|
|
110
|
-
Retrieves
|
|
110
|
+
Retrieves the requested bot information.`).positional(`bot-slug`,{type:`string`,description:`Bot slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yn={command:`get <bot-slug>`,describe:`Get bot details`,builder:Jn,handler:async e=>a({command:`radar bots get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar bots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/${e[`bot-slug`]==null?`<bot-slug>`:encodeURIComponent(String(e[`bot-slug`]))}`,pathParams:{"bot-slug":String(e[`bot-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qn,{bot_slug:e[`bot-slug`],...a}));r(s,{successLabel:`Loaded`})})};var Xn={method:`GET`,path:()=>`/radar/bots`,query:[`limit`,`offset`,`botCategory`,`botOperator`,`kind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function Zn(e){return e.usage(`$0 radar bots list
|
|
111
111
|
|
|
112
|
-
Retrieves
|
|
112
|
+
Retrieves a list of bots.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`bot-category`,{type:`string`,description:"Filters results by bot category. `ACCESSIBILITY`, `AGGREGATOR`, `AI_SEARCH`, `ARCHIVER`, `SOCIAL_MEDIA_MARKETING` and `WEBHOOKS` are deprecated legacy categories that match only that exact category.",choices:[`ACADEMIC_RESEARCH`,`ADVERTISING_AND_MARKETING`,`AI_ASSISTANT`,`AI_CRAWLER`,`COMMERCE`,`FEED_FETCHER`,`MONITORING_AND_ANALYTICS`,`OTHER`,`PAGE_PREVIEW`,`SEARCH_ENGINE_CRAWLER`,`SEARCH_ENGINE_OPTIMIZATION`,`SECURITY`,`ACCESSIBILITY`,`AGGREGATOR`,`AI_SEARCH`,`ARCHIVER`,`SOCIAL_MEDIA_MARKETING`,`WEBHOOKS`]}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`kind`,{type:`string`,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`,choices:[`AGENT`,`BOT`]}).option(`bot-verification-status`,{type:`string`,description:`Filters results by bot verification status.`,choices:[`VERIFIED`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qn={command:`list`,describe:`List bots`,builder:Zn,handler:async e=>a({command:`radar bots list`,classification:{safeFlags:[`bot-category`,`kind`,`bot-verification-status`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,botCategory:e[`bot-category`],botOperator:e[`bot-operator`],kind:e.kind,botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){n({command:`cf radar bots list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Xn,a));r(s,{successLabel:`Loaded`})})};var $n={method:`GET`,path:t=>e`/radar/bots/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function er(e){return e.usage(`$0 radar bots summary <dimension>
|
|
113
113
|
|
|
114
|
-
Retrieves bots HTTP
|
|
114
|
+
Retrieves an aggregated summary of bots HTTP requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot`,{type:`string`,array:!0,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,array:!0,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,array:!0,description:"Filters results by bot category. `ACCESSIBILITY`, `AGGREGATOR`, `AI_SEARCH`, `ARCHIVER`, `SOCIAL_MEDIA_MARKETING` and `WEBHOOKS` are deprecated legacy categories that match only that exact category."}).option(`bot-kind`,{type:`string`,array:!0,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,array:!0,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const tr={command:`summary <dimension>`,describe:`Get bots HTTP requests distribution by dimension`,builder:er,handler:async e=>a({command:`radar bots summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){n({command:`cf radar bots summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send($n,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var nr={method:`GET`,path:t=>e`/radar/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function rr(e){return e.usage(`$0 radar bots timeseries-groups <dimension>
|
|
115
115
|
|
|
116
|
-
Retrieves
|
|
116
|
+
Retrieves the distribution of HTTP requests from bots, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot`,{type:`string`,array:!0,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,array:!0,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,array:!0,description:"Filters results by bot category. `ACCESSIBILITY`, `AGGREGATOR`, `AI_SEARCH`, `ARCHIVER`, `SOCIAL_MEDIA_MARKETING` and `WEBHOOKS` are deprecated legacy categories that match only that exact category."}).option(`bot-kind`,{type:`string`,array:!0,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,array:!0,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ir={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of bots HTTP requests by dimension.`,builder:rr,handler:async e=>a({command:`radar bots timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){n({command:`cf radar bots timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(nr,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var ar={method:`GET`,path:()=>`/radar/bots/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function or(e){return e.usage(`$0 radar bots timeseries
|
|
117
117
|
|
|
118
|
-
Retrieves
|
|
118
|
+
Retrieves bots HTTP request volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot`,{type:`string`,array:!0,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,array:!0,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,array:!0,description:"Filters results by bot category. `ACCESSIBILITY`, `AGGREGATOR`, `AI_SEARCH`, `ARCHIVER`, `SOCIAL_MEDIA_MARKETING` and `WEBHOOKS` are deprecated legacy categories that match only that exact category."}).option(`bot-kind`,{type:`string`,array:!0,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,array:!0,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sr={command:`timeseries`,describe:`Get bots HTTP requests time series`,builder:or,handler:async e=>a({command:`radar bots timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){n({command:`cf radar bots timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ar,a));r(s,{successLabel:`Loaded`})})},cr={command:`bots`,describe:`Internet-wide bot traffic trends, categories, and distribution statistics`,builder:e=>e.command(Yn).command(Qn).command(tr).command(sr).command(ir).command(Kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var lr={method:`GET`,path:t=>e`/radar/ct/authorities/${t.ca_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function ur(e){return e.usage(`$0 radar ct authorities get <ca-slug>
|
|
119
119
|
|
|
120
|
-
Retrieves the requested CA information.`).positional(`ca-slug`,{type:`string`,description:`Certificate authority SHA256 fingerprint.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
120
|
+
Retrieves the requested CA information.`).positional(`ca-slug`,{type:`string`,description:`Certificate authority SHA256 fingerprint.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dr={command:`get <ca-slug>`,describe:`Get certificate authority details`,builder:ur,handler:async e=>a({command:`radar ct authorities get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar ct authorities get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/authorities/${e[`ca-slug`]==null?`<ca-slug>`:encodeURIComponent(String(e[`ca-slug`]))}`,pathParams:{"ca-slug":String(e[`ca-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(lr,{ca_slug:e[`ca-slug`],...a}));r(s,{successLabel:`Loaded`})})};var fr={method:`GET`,path:()=>`/radar/ct/authorities`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function pr(e){return e.usage(`$0 radar ct authorities list
|
|
121
121
|
|
|
122
|
-
Retrieves a list of certificate authorities.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
122
|
+
Retrieves a list of certificate authorities.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mr={command:`list`,describe:`List certificate authorities`,builder:pr,handler:async e=>a({command:`radar ct authorities list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){n({command:`cf radar ct authorities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/authorities`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(fr,a));r(s,{successLabel:`Loaded`})})},hr={command:`authorities`,describe:`Operations for ct.authorities`,builder:e=>e.command(dr).command(mr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gr={method:`GET`,path:t=>e`/radar/ct/logs/${t.log_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function _r(e){return e.usage(`$0 radar ct logs get <log-slug>
|
|
123
123
|
|
|
124
|
-
Retrieves the requested certificate log information.`).positional(`log-slug`,{type:`string`,description:`Certificate log slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
124
|
+
Retrieves the requested certificate log information.`).positional(`log-slug`,{type:`string`,description:`Certificate log slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vr={command:`get <log-slug>`,describe:`Get certificate log details`,builder:_r,handler:async e=>a({command:`radar ct logs get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar ct logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/logs/${e[`log-slug`]==null?`<log-slug>`:encodeURIComponent(String(e[`log-slug`]))}`,pathParams:{"log-slug":String(e[`log-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(gr,{log_slug:e[`log-slug`],...a}));r(s,{successLabel:`Loaded`})})};var yr={method:`GET`,path:()=>`/radar/ct/logs`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function br(e){return e.usage(`$0 radar ct logs list
|
|
125
125
|
|
|
126
|
-
Retrieves a list of certificate logs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
126
|
+
Retrieves a list of certificate logs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xr={command:`list`,describe:`List certificate logs`,builder:br,handler:async e=>a({command:`radar ct logs list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){n({command:`cf radar ct logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(yr,a));r(s,{successLabel:`Loaded`})})},Sr={command:`logs`,describe:`Operations for ct.logs`,builder:e=>e.command(vr).command(xr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Cr={method:`GET`,path:t=>e`/radar/ct/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`tld`,`validationLevel`,`uniqueEntries`,`normalization`,`format`],errors:{400:`BadRequestError`}};function wr(e){return e.usage(`$0 radar ct summary <dimension>
|
|
127
127
|
|
|
128
|
-
Retrieves an aggregated summary of certificates grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
128
|
+
Retrieves an aggregated summary of certificates grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tr={command:`summary <dimension>`,describe:`Get certificate distribution by dimension`,builder:wr,handler:async e=>a({command:`radar ct summary`,classification:{safeFlags:[`normalization`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],tld:e.tld,validationLevel:e[`validation-level`],uniqueEntries:e[`unique-entries`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar ct summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Cr,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Er={method:`GET`,path:t=>e`/radar/ct/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`validationLevel`,`tld`,`normalization`,`uniqueEntries`,`format`],errors:{400:`BadRequestError`}};function Dr(e){return e.usage(`$0 radar ct timeseries-groups <dimension>
|
|
129
129
|
|
|
130
|
-
Retrieves the distribution of certificates grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
130
|
+
Retrieves the distribution of certificates grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Or={command:`timeseries-groups <dimension>`,describe:`Get time series of certificate distribution by dimension`,builder:Dr,handler:async e=>a({command:`radar ct timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],validationLevel:e[`validation-level`],tld:e.tld,normalization:e.normalization,uniqueEntries:e[`unique-entries`],format:e.format};if(e.dryRun){n({command:`cf radar ct timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Er,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var kr={method:`GET`,path:()=>`/radar/ct/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`tld`,`validationLevel`,`uniqueEntries`,`format`],errors:{400:`BadRequestError`}};function Ar(e){return e.usage(`$0 radar ct timeseries
|
|
131
131
|
|
|
132
|
-
Retrieves certificate volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
132
|
+
Retrieves certificate volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`ca`,{type:`string`,array:!0,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,array:!0,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,array:!0,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,array:!0,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,array:!0,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,array:!0,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,array:!0,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,array:!0,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,array:!0,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,array:!0,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,array:!0,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,array:!0,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,array:!0,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,array:!0,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jr={command:`timeseries`,describe:`Get certificates time series`,builder:Ar,handler:async e=>a({command:`radar ct timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],tld:e.tld,validationLevel:e[`validation-level`],uniqueEntries:e[`unique-entries`],format:e.format};if(e.dryRun){n({command:`cf radar ct timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(kr,a));r(s,{successLabel:`Loaded`})})},Mr={command:`ct`,describe:`Certificate Transparency log monitoring and newly-issued certificate discovery`,builder:e=>e.command(Tr).command(jr).command(Or).command(hr).command(Sr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`POST`,path:()=>`/radar/datasets/download`,query:[`format`],body:`json`,errors:{400:`BadRequestError`}};function Nr(e){return e.usage(`$0 radar datasets download
|
|
133
133
|
|
|
134
|
-
Retrieves an URL to download a single dataset.`).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dataset-id`,{type:`number`,description:`The datasetId field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const
|
|
134
|
+
Retrieves an URL to download a single dataset.`).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dataset-id`,{type:`number`,description:`The datasetId field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Pr={command:`download`,describe:`Get dataset download URL`,builder:Nr,handler:async e=>a({command:`radar datasets download`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar datasets download`,method:`POST`,url:`https://api.cloudflare.com/client/v4/radar/datasets/download`,pathParams:{},query:a,bodyKind:`json`,body:e.body===void 0?s({datasetId:e[`dataset-id`]}):o(e.body)});return}let c=e.body===void 0?void 0:o(e.body),l=await t(e);if(e.body!==void 0){let e=c;new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let t=await i(`Creating`,async()=>l.send(Q,{body:e,...a}));r(t,{successLabel:`Created`});return}if(e[`dataset-id`]===void 0)throw Error(`--dataset-id is required (or pass --body with this field set).`);let u=s({datasetId:e[`dataset-id`]});new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let d=await i(`Creating`,async()=>l.send(Q,{body:u,...a}));r(d,{successLabel:`Created`})})};function Fr(e){return e.usage(`$0 radar datasets get <alias>
|
|
135
135
|
|
|
136
|
-
Retrieves the CSV content of a given dataset by alias or ID. When getting the content by alias the latest dataset is returned, optionally filtered by the latest available at a given date.`).positional(`alias`,{type:`string`,description:`Dataset alias or ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
136
|
+
Retrieves the CSV content of a given dataset by alias or ID. When getting the content by alias the latest dataset is returned, optionally filtered by the latest available at a given date.`).positional(`alias`,{type:`string`,description:`Dataset alias or ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ir={command:`get <alias>`,describe:`Get dataset CSV stream`,builder:Fr,handler:async e=>a({command:`radar datasets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){n({command:`cf radar datasets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/datasets/${e.alias==null?`<alias>`:encodeURIComponent(String(e.alias))}`,pathParams:{alias:String(e.alias??``)},bodyKind:`none`});return}await t(e);let r=await i(`Loading`,async()=>l(`/radar/datasets/${encodeURIComponent(String(e.alias))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));c(r.toString(`utf-8`))})};var Lr={method:`GET`,path:()=>`/radar/datasets`,query:[`limit`,`offset`,`datasetType`,`date`,`format`],errors:{400:`BadRequestError`}};function Rr(e){return e.usage(`$0 radar datasets list
|
|
137
137
|
|
|
138
|
-
Retrieves a list of datasets.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`dataset-type`,{type:`string`,description:`Filters results by dataset type.`,choices:[`RANKING_BUCKET`,`REPORT`]}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
138
|
+
Retrieves a list of datasets.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`dataset-type`,{type:`string`,description:`Filters results by dataset type.`,choices:[`RANKING_BUCKET`,`REPORT`]}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zr={command:`list`,describe:`List datasets`,builder:Rr,handler:async e=>a({command:`radar datasets list`,classification:{safeFlags:[`dataset-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,datasetType:e[`dataset-type`],date:e.date,format:e.format};if(e.dryRun){n({command:`cf radar datasets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/datasets`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Lr,a));r(s,{successLabel:`Loaded`})})},Br={command:`datasets`,describe:`Downloadable Radar datasets for offline analysis and research`,builder:e=>e.command(Pr).command(Ir).command(zr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Vr={method:`GET`,path:t=>e`/radar/dns/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`limitPerGroup`,`matchingAnswer`,`tld`,`format`],errors:{400:`BadRequestError`}};function Hr(e){return e.usage(`$0 radar dns summary <dimension>
|
|
139
139
|
|
|
140
|
-
Retrieves the distribution of DNS queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
140
|
+
Retrieves the distribution of DNS queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ur={command:`summary <dimension>`,describe:`Get DNS summary by dimension`,builder:Hr,handler:async e=>a({command:`radar dns summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],limitPerGroup:e[`limit-per-group`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){n({command:`cf radar dns summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Vr,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Wr={method:`GET`,path:t=>e`/radar/dns/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`limitPerGroup`,`matchingAnswer`,`tld`,`normalization`,`format`],errors:{400:`BadRequestError`}};function Gr(e){return e.usage(`$0 radar dns timeseries-groups <dimension>
|
|
141
141
|
|
|
142
|
-
Retrieves the distribution of DNS queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `RANK` is only meaningful with the `TLD_DNS_MAGNITUDE` dimension, where it ranks TLDs by DNS query magnitude at each timestamp; for other dimensions it has no effect.",choices:[`PERCENTAGE`,`MIN0_MAX`,`RANK`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
142
|
+
Retrieves the distribution of DNS queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `RANK` is only meaningful with the `TLD_DNS_MAGNITUDE` dimension, where it ranks TLDs by DNS query magnitude at each timestamp; for other dimensions it has no effect.",choices:[`PERCENTAGE`,`MIN0_MAX`,`RANK`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kr={command:`timeseries-groups <dimension>`,describe:`Get DNS time series grouped by dimension`,builder:Gr,handler:async e=>a({command:`radar dns timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],limitPerGroup:e[`limit-per-group`],matchingAnswer:e[`matching-answer`],tld:e.tld,normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar dns timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Wr,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var qr={method:`GET`,path:()=>`/radar/dns/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`tld`,`format`],errors:{400:`BadRequestError`}};function Jr(e){return e.usage(`$0 radar dns timeseries
|
|
143
143
|
|
|
144
|
-
Retrieves normalized query volume to the 1.1.1.1 DNS resolver over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
144
|
+
Retrieves normalized query volume to the 1.1.1.1 DNS resolver over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yr={command:`timeseries`,describe:`Get DNS queries time series`,builder:Jr,handler:async e=>a({command:`radar dns timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){n({command:`cf radar dns timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qr,a));r(s,{successLabel:`Loaded`})})};var Xr={method:`GET`,path:()=>`/radar/dns/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`domain`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`format`],errors:{404:`NotFoundError`}};function Zr(e){return e.usage(`$0 radar dns top ases
|
|
145
145
|
|
|
146
|
-
Retrieves the top autonomous systems by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,array:!0,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
146
|
+
Retrieves the top autonomous systems by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,array:!0,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qr={command:`ases`,describe:`Get top ASes by DNS queries`,builder:Zr,handler:async e=>a({command:`radar dns top ases`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,domain:e.domain,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],format:e.format};if(e.dryRun){n({command:`cf radar dns top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Xr,a));r(s,{successLabel:`Loaded`})})};var $r={method:`GET`,path:()=>`/radar/dns/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`domain`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`tld`,`format`],errors:{404:`NotFoundError`}};function ei(e){return e.usage(`$0 radar dns top locations
|
|
147
147
|
|
|
148
|
-
Retrieves the top locations by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,array:!0,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
148
|
+
Retrieves the top locations by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,array:!0,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,array:!0,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,array:!0,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,array:!0,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,array:!0,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,array:!0,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,array:!0,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,array:!0,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,array:!0,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,array:!0,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,array:!0,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ti={command:`locations`,describe:`Get top locations by DNS queries`,builder:ei,handler:async e=>a({command:`radar dns top locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,domain:e.domain,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){n({command:`cf radar dns top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send($r,a));r(s,{successLabel:`Loaded`})})},ni={command:`top`,describe:`Operations for dns.top`,builder:e=>e.command(Qr).command(ti).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ri={command:`dns`,describe:`Global DNS query trends — top domains, resolver stats, and DNSSEC adoption`,builder:e=>e.command(Ur).command(Yr).command(Kr).command(ni).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ii={method:`GET`,path:t=>e`/radar/email/routing/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`ipVersion`,`encrypted`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ai(e){return e.usage(`$0 radar email routing summary <dimension>
|
|
149
149
|
|
|
150
|
-
Retrieves the distribution of email routing metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,array:!0,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
150
|
+
Retrieves the distribution of email routing metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,array:!0,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oi={command:`summary <dimension>`,describe:`Get email routing summary by dimension`,builder:ai,handler:async e=>a({command:`radar email routing summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,ipVersion:e[`ip-version`],encrypted:e.encrypted,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar email routing summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/routing/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ii,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var si={method:`GET`,path:t=>e`/radar/email/routing/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`ipVersion`,`encrypted`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ci(e){return e.usage(`$0 radar email routing timeseries-groups <dimension>
|
|
151
151
|
|
|
152
|
-
Retrieves the distribution of email routing metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,array:!0,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
152
|
+
Retrieves the distribution of email routing metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,array:!0,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const li={command:`timeseries-groups <dimension>`,describe:`Get email routing time series grouped by dimension`,builder:ci,handler:async e=>a({command:`radar email routing timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,ipVersion:e[`ip-version`],encrypted:e.encrypted,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar email routing timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/routing/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(si,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},ui={command:`routing`,describe:`Operations for email.routing`,builder:e=>e.command(oi).command(li).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var di={method:`GET`,path:t=>e`/radar/email/security/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function fi(e){return e.usage(`$0 radar email security summary <dimension>
|
|
153
153
|
|
|
154
|
-
Retrieves the distribution of email security metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
154
|
+
Retrieves the distribution of email security metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pi={command:`summary <dimension>`,describe:`Get email security summary by dimension`,builder:fi,handler:async e=>a({command:`radar email security summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar email security summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(di,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var mi={method:`GET`,path:t=>e`/radar/email/security/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function hi(e){return e.usage(`$0 radar email security timeseries-groups <dimension>
|
|
155
155
|
|
|
156
|
-
Retrieves the distribution of email security metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
156
|
+
Retrieves the distribution of email security metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gi={command:`timeseries-groups <dimension>`,describe:`Get email security time series grouped by dimension`,builder:hi,handler:async e=>a({command:`radar email security timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar email security timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(mi,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var _i={method:`GET`,path:()=>`/radar/email/security/top/tlds`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function vi(e){return e.usage(`$0 radar email security top tlds get
|
|
157
157
|
|
|
158
|
-
Retrieves the top TLDs by number of email messages.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
158
|
+
Retrieves the top TLDs by number of email messages.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yi={command:`get`,describe:`Get top TLDs by email message volume`,builder:vi,handler:async e=>a({command:`radar email security top tlds get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){n({command:`cf radar email security top tlds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_i,a));r(s,{successLabel:`Loaded`})})};var bi={method:`GET`,path:t=>e`/radar/email/security/top/tlds/malicious/${t.malicious}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function xi(e){return e.usage(`$0 radar email security top tlds malicious get <malicious>
|
|
159
159
|
|
|
160
|
-
Retrieves the top TLDs by emails classified as malicious or not.`).positional(`malicious`,{type:`string`,description:`Malicious classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
160
|
+
Retrieves the top TLDs by emails classified as malicious or not.`).positional(`malicious`,{type:`string`,description:`Malicious classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Si={command:`get <malicious>`,describe:`Get top TLDs by email malicious classification`,builder:xi,handler:async e=>a({command:`radar email security top tlds malicious get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){n({command:`cf radar email security top tlds malicious get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/malicious/${e.malicious==null?`<malicious>`:encodeURIComponent(String(e.malicious))}`,pathParams:{malicious:String(e.malicious??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(bi,{malicious:e.malicious,...a}));r(s,{successLabel:`Loaded`})})},Ci={command:`malicious`,describe:`Operations for email.security.top.tlds.malicious`,builder:e=>e.command(Si).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wi={method:`GET`,path:t=>e`/radar/email/security/top/tlds/spam/${t.spam}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function Ti(e){return e.usage(`$0 radar email security top tlds spam get <spam>
|
|
161
161
|
|
|
162
|
-
Retrieves the top TLDs by emails classified as spam or not.`).positional(`spam`,{type:`string`,description:`Spam classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
162
|
+
Retrieves the top TLDs by emails classified as spam or not.`).positional(`spam`,{type:`string`,description:`Spam classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ei={command:`get <spam>`,describe:`Get top TLDs by email spam classification`,builder:Ti,handler:async e=>a({command:`radar email security top tlds spam get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){n({command:`cf radar email security top tlds spam get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/spam/${e.spam==null?`<spam>`:encodeURIComponent(String(e.spam))}`,pathParams:{spam:String(e.spam??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(wi,{spam:e.spam,...a}));r(s,{successLabel:`Loaded`})})},Di={command:`spam`,describe:`Operations for email.security.top.tlds.spam`,builder:e=>e.command(Ei).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Oi={method:`GET`,path:t=>e`/radar/email/security/top/tlds/spoof/${t.spoof}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function ki(e){return e.usage(`$0 radar email security top tlds spoof get <spoof>
|
|
163
163
|
|
|
164
|
-
Retrieves the top TLDs by emails classified as spoof or not.`).positional(`spoof`,{type:`string`,description:`Spoof classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
164
|
+
Retrieves the top TLDs by emails classified as spoof or not.`).positional(`spoof`,{type:`string`,description:`Spoof classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,array:!0,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,array:!0,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,array:!0,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,array:!0,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ai={command:`get <spoof>`,describe:`Get top TLDs by email spoof classification`,builder:ki,handler:async e=>a({command:`radar email security top tlds spoof get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){n({command:`cf radar email security top tlds spoof get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/spoof/${e.spoof==null?`<spoof>`:encodeURIComponent(String(e.spoof))}`,pathParams:{spoof:String(e.spoof??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Oi,{spoof:e.spoof,...a}));r(s,{successLabel:`Loaded`})})},ji={command:`spoof`,describe:`Operations for email.security.top.tlds.spoof`,builder:e=>e.command(Ai).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mi={command:`tlds`,describe:`Operations for email.security.top.tlds`,builder:e=>e.command(yi).command(Ci).command(Di).command(ji).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ni={command:`top`,describe:`Operations for email.security.top`,builder:e=>e.command(Mi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Pi={command:`security`,describe:`Operations for email.security`,builder:e=>e.command(pi).command(gi).command(Ni).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Fi={command:`email`,describe:`Email security trends — DMARC/SPF/DKIM adoption, spam, and phishing statistics`,builder:e=>e.command(ui).command(Pi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ii={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}/as_set`,query:[`format`],errors:{400:`BadRequestError`}};function Li(e){return e.usage(`$0 radar entities asns as-set <asn>
|
|
165
165
|
|
|
166
|
-
Retrieves Internet Routing Registry AS-SETs that an AS is a member of.`).positional(`asn`,{type:`string`,description:`Retrieves all AS-SETs that the given AS is a member of.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
166
|
+
Retrieves Internet Routing Registry AS-SETs that an AS is a member of.`).positional(`asn`,{type:`string`,description:`Retrieves all AS-SETs that the given AS is a member of.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ri={command:`as-set <asn>`,describe:`Get IRR AS-SETs that an AS is a member of`,builder:Li,handler:async e=>a({command:`radar entities asns as-set`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar entities asns as-set`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/as_set`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ii,{asn:e.asn,...a}));r(s,{successLabel:`Loaded`})})};var zi={method:`GET`,path:()=>`/radar/entities/asns/botnet_threat_feed`,query:[`limit`,`offset`,`metric`,`date`,`compareDateRange`,`location`,`asn`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Bi(e){return e.usage(`$0 radar entities asns botnet-threat-feed
|
|
167
167
|
|
|
168
|
-
Retrieves a ranked list of Autonomous Systems based on their presence in the Cloudflare Botnet Threat Feed. Rankings can be sorted by offense count or number of bad IPs. Optionally compare to a previous date to see rank changes.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`metric`,{type:`string`,description:`Metric to rank ASNs by.`,choices:[`OFFENSE_COUNT`,`NUMBER_OF_OFFENDING_IPS`]}).option(`date`,{type:`string`,description:`The date to retrieve (YYYY-MM-DD format). If not specified, returns the most recent available data. Note: This is the date the report was generated. The report is generated from information collected from the previous day (e.g., the 2026-02-23 entry contains data from 2026-02-22).`}).option(`compare-date-range`,{type:`string`,description:`Relative date range for rank change comparison (e.g., "1d", "7d", "30d").`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
168
|
+
Retrieves a ranked list of Autonomous Systems based on their presence in the Cloudflare Botnet Threat Feed. Rankings can be sorted by offense count or number of bad IPs. Optionally compare to a previous date to see rank changes.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`metric`,{type:`string`,description:`Metric to rank ASNs by.`,choices:[`OFFENSE_COUNT`,`NUMBER_OF_OFFENDING_IPS`]}).option(`date`,{type:`string`,description:`The date to retrieve (YYYY-MM-DD format). If not specified, returns the most recent available data. Note: This is the date the report was generated. The report is generated from information collected from the previous day (e.g., the 2026-02-23 entry contains data from 2026-02-22).`}).option(`compare-date-range`,{type:`string`,description:`Relative date range for rank change comparison (e.g., "1d", "7d", "30d").`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vi={command:`botnet-threat-feed`,describe:`Get AS rankings by botnet threat feed activity`,builder:Bi,handler:async e=>a({command:`radar entities asns botnet-threat-feed`,classification:{safeFlags:[`metric`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,metric:e.metric,date:e.date,compareDateRange:e[`compare-date-range`],location:e.location,asn:e.asn,sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){n({command:`cf radar entities asns botnet-threat-feed`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/botnet_threat_feed`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(zi,a));r(s,{successLabel:`Loaded`})})};var Hi={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}`,query:[`format`],errors:{404:`NotFoundError`}};function Ui(e){return e.usage(`$0 radar entities asns get <asn>
|
|
169
169
|
|
|
170
|
-
Retrieves the requested autonomous system information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this AS). Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
170
|
+
Retrieves the requested autonomous system information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this AS). Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wi={command:`get <asn>`,describe:`Get AS details by ASN`,builder:Ui,handler:async e=>a({command:`radar entities asns get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar entities asns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Hi,{asn:e.asn,...a}));r(s,{successLabel:`Loaded`})})};var Gi={method:`GET`,path:()=>`/radar/entities/asns/ip`,query:[`ip`,`format`],errors:{404:`NotFoundError`}};function Ki(e){return e.usage(`$0 radar entities asns ip
|
|
171
171
|
|
|
172
|
-
Retrieves the requested autonomous system information based on IP address. Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
172
|
+
Retrieves the requested autonomous system information based on IP address. Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qi={command:`ip`,describe:`Get AS details by IP address`,builder:Ki,handler:async e=>a({command:`radar entities asns ip`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={ip:e.ip,format:e.format};if(e.dryRun){n({command:`cf radar entities asns ip`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/ip`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Gi,a));r(s,{successLabel:`Loaded`})})};var $={method:`GET`,path:()=>`/radar/entities/asns`,query:[`limit`,`offset`,`asn`,`location`,`orderBy`,`format`],errors:{400:`BadRequestError`}};function Ji(e){return e.usage(`$0 radar entities asns list
|
|
173
173
|
|
|
174
|
-
Retrieves a list of autonomous systems.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`asn`,{type:`string`,description:`Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the ASNs by.`,choices:[`ASN`,`POPULATION`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
174
|
+
Retrieves a list of autonomous systems.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`asn`,{type:`string`,description:`Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the ASNs by.`,choices:[`ASN`,`POPULATION`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yi={command:`list`,describe:`List autonomous systems`,builder:Ji,handler:async e=>a({command:`radar entities asns list`,classification:{safeFlags:[`order-by`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,asn:e.asn,location:e.location,orderBy:e[`order-by`],format:e.format};if(e.dryRun){n({command:`cf radar entities asns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send($,a));r(s,{successLabel:`Loaded`})})};var Xi={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}/rel`,query:[`asn2`,`format`],errors:{400:`BadRequestError`}};function Zi(e){return e.usage(`$0 radar entities asns rel <asn>
|
|
175
175
|
|
|
176
|
-
Retrieves AS-level relationship for given networks.`).positional(`asn`,{type:`string`,description:`Retrieves all ASNs with provider-customer or peering relationships with the given ASN.`,demandOption:!0}).option(`asn2`,{type:`number`,description:`Retrieves the AS relationship of ASN2 with respect to the given ASN.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
176
|
+
Retrieves AS-level relationship for given networks.`).positional(`asn`,{type:`string`,description:`Retrieves all ASNs with provider-customer or peering relationships with the given ASN.`,demandOption:!0}).option(`asn2`,{type:`number`,description:`Retrieves the AS relationship of ASN2 with respect to the given ASN.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qi={command:`rel <asn>`,describe:`Get AS-level relationships by ASN`,builder:Zi,handler:async e=>a({command:`radar entities asns rel`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={asn2:e.asn2,format:e.format};if(e.dryRun){n({command:`cf radar entities asns rel`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/rel`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Xi,{asn:e.asn,...a}));r(s,{successLabel:`Loaded`})})},$i={command:`asns`,describe:`Operations for entities.asns`,builder:e=>e.command(Ri).command(Vi).command(Wi).command(qi).command(Yi).command(Qi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ea={method:`GET`,path:()=>`/radar/entities/ip`,query:[`ip`,`format`],errors:{404:`NotFoundError`}};function ta(e){return e.usage(`$0 radar entities ips get
|
|
177
177
|
|
|
178
|
-
Retrieves IP address information.`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
178
|
+
Retrieves IP address information.`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const na={command:`get`,describe:`Get IP address details`,builder:ta,handler:async e=>a({command:`radar entities ips get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={ip:e.ip,format:e.format};if(e.dryRun){n({command:`cf radar entities ips get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/ip`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ea,a));r(s,{successLabel:`Loaded`})})},ra={command:`ips`,describe:`Operations for entities.ips`,builder:e=>e.command(na).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ia={method:`GET`,path:t=>e`/radar/entities/locations/${t.location}`,query:[`format`],errors:{404:`NotFoundError`}};function aa(e){return e.usage(`$0 radar entities locations get <location>
|
|
179
179
|
|
|
180
|
-
Retrieves the requested location information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this location).`).positional(`location`,{type:`string`,description:`Location alpha-2 code.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
180
|
+
Retrieves the requested location information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this location).`).positional(`location`,{type:`string`,description:`Location alpha-2 code.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oa={command:`get <location>`,describe:`Get location details`,builder:aa,handler:async e=>a({command:`radar entities locations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar entities locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/locations/${e.location==null?`<location>`:encodeURIComponent(String(e.location))}`,pathParams:{location:String(e.location??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ia,{location:e.location,...a}));r(s,{successLabel:`Loaded`})})};var sa={method:`GET`,path:()=>`/radar/entities/locations`,query:[`limit`,`offset`,`location`,`region`,`subregion`,`continent`,`format`],errors:{400:`BadRequestError`}};function ca(e){return e.usage(`$0 radar entities locations list
|
|
181
181
|
|
|
182
|
-
Retrieves a list of locations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`region`,{type:`string`,description:`Filters results by region.`}).option(`subregion`,{type:`string`,description:`Filters results by subregion.`}).option(`continent`,{type:`string`,description:`Filters results by continent code.`,choices:[`AF`,`AS`,`EU`,`NA`,`OC`,`SA`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
182
|
+
Retrieves a list of locations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`region`,{type:`string`,description:`Filters results by region.`}).option(`subregion`,{type:`string`,description:`Filters results by subregion.`}).option(`continent`,{type:`string`,description:`Filters results by continent code.`,choices:[`AF`,`AS`,`EU`,`NA`,`OC`,`SA`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const la={command:`list`,describe:`List locations`,builder:ca,handler:async e=>a({command:`radar entities locations list`,classification:{safeFlags:[`continent`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,location:e.location,region:e.region,subregion:e.subregion,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar entities locations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(sa,a));r(s,{successLabel:`Loaded`})})},ua={command:`locations`,describe:`Operations for entities.locations`,builder:e=>e.command(oa).command(la).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},da={command:`entities`,describe:`Look up ASNs, IPs, domains, and locations with metadata and traffic summaries`,builder:e=>e.command($i).command(ra).command(ua).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var fa={method:`GET`,path:t=>e`/radar/geolocations/${t.geo_id}`,query:[`format`],errors:{404:`NotFoundError`}};function pa(e){return e.usage("$0 radar geolocations get <geo-id>\n\nRetrieves the requested Geolocation information. Geolocation names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").positional(`geo-id`,{type:`string`,description:`Geolocation ID. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt)`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ma={command:`get <geo-id>`,describe:`Get Geolocation details`,builder:pa,handler:async e=>a({command:`radar geolocations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar geolocations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/geolocations/${e[`geo-id`]==null?`<geo-id>`:encodeURIComponent(String(e[`geo-id`]))}`,pathParams:{"geo-id":String(e[`geo-id`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(fa,{geo_id:e[`geo-id`],...a}));r(s,{successLabel:`Loaded`})})};var ha={method:`GET`,path:()=>`/radar/geolocations`,query:[`limit`,`offset`,`geoId`,`location`,`format`],errors:{400:`BadRequestError`}};function ga(e){return e.usage("$0 radar geolocations list\n\nRetrieves a list of geolocations. Geolocation names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Specify a comma-separated list of GeoNames IDs.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _a={command:`list`,describe:`List Geolocations`,builder:ga,handler:async e=>a({command:`radar geolocations list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,geoId:e[`geo-id`],location:e.location,format:e.format};if(e.dryRun){n({command:`cf radar geolocations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/geolocations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ha,a));r(s,{successLabel:`Loaded`})})},va={command:`geolocations`,describe:`Geographic location metadata used for regional traffic analysis`,builder:e=>e.command(ma).command(_a).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ya={method:`GET`,path:t=>e`/radar/http/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`apiTraffic`,`botClass`,`contentType`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ba(e){return e.usage(`$0 radar http summary <dimension>
|
|
183
183
|
|
|
184
|
-
Retrieves the
|
|
184
|
+
Retrieves the distribution of HTTP requests by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the HTTP attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`api-traffic`,{type:`string`,array:!0,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xa={command:`summary <dimension>`,describe:`Get HTTP requests summary by dimension`,builder:ba,handler:async e=>a({command:`radar http summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar http summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ya,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Sa={method:`GET`,path:t=>e`/radar/http/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`apiTraffic`,`botClass`,`contentType`,`limitPerGroup`,`deviceType`,`httpProtocol`,`httpVersion`,`normalization`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{400:`BadRequestError`}};function Ca(e){return e.usage(`$0 radar http timeseries-groups <dimension>
|
|
185
185
|
|
|
186
|
-
Retrieves the
|
|
186
|
+
Retrieves the distribution of HTTP requests grouped by dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the HTTP attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`api-traffic`,{type:`string`,array:!0,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wa={command:`timeseries-groups <dimension>`,describe:`Get HTTP requests time series grouped by dimension`,builder:Ca,handler:async e=>a({command:`radar http timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],limitPerGroup:e[`limit-per-group`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],normalization:e.normalization,ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){n({command:`cf radar http timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Sa,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Ta={method:`GET`,path:()=>`/radar/http/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`normalization`,`apiTraffic`,`botClass`,`contentType`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{400:`BadRequestError`}};function Ea(e){return e.usage(`$0 radar http timeseries
|
|
187
187
|
|
|
188
|
-
Retrieves the
|
|
188
|
+
Retrieves the HTTP requests over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`api-traffic`,{type:`string`,array:!0,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,array:!0,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Da={command:`timeseries`,describe:`Get HTTP requests time series`,builder:Ea,handler:async e=>a({command:`radar http timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],normalization:e.normalization,apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ta,a));r(s,{successLabel:`Loaded`})})};var Oa={method:`GET`,path:t=>e`/radar/http/top/ases/bot_class/${t.bot_class}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function ka(e){return e.usage(`$0 radar http top ases bot-class get <bot-class>
|
|
189
189
|
|
|
190
|
-
Retrieves the top autonomous systems by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`
|
|
190
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested bot class.`).positional(`bot-class`,{type:`string`,description:`Bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Aa={command:`get <bot-class>`,describe:`Get top ASes by HTTP requests for a bot class`,builder:ka,handler:async e=>a({command:`radar http top ases bot-class get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases bot-class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/bot_class/${e[`bot-class`]==null?`<bot-class>`:encodeURIComponent(String(e[`bot-class`]))}`,pathParams:{"bot-class":String(e[`bot-class`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Oa,{bot_class:e[`bot-class`],...a}));r(s,{successLabel:`Loaded`})})},ja={command:`bot-class`,describe:`Operations for http.top.ases.bot-class`,builder:e=>e.command(Aa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ma={method:`GET`,path:t=>e`/radar/http/top/ases/browser_family/${t.browser_family}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{404:`NotFoundError`}};function Na(e){return e.usage(`$0 radar http top ases browser-family get <browser-family>
|
|
191
191
|
|
|
192
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested
|
|
192
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested browser family.`).positional(`browser-family`,{type:`string`,description:`Browser family.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pa={command:`get <browser-family>`,describe:`Get top ASes by HTTP requests for a browser family`,builder:Na,handler:async e=>a({command:`radar http top ases browser-family get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases browser-family get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/browser_family/${e[`browser-family`]==null?`<browser-family>`:encodeURIComponent(String(e[`browser-family`]))}`,pathParams:{"browser-family":String(e[`browser-family`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ma,{browser_family:e[`browser-family`],...a}));r(s,{successLabel:`Loaded`})})},Fa={command:`browser-family`,describe:`Operations for http.top.ases.browser-family`,builder:e=>e.command(Pa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ia={method:`GET`,path:t=>e`/radar/http/top/ases/device_type/${t.device_type}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function La(e){return e.usage(`$0 radar http top ases device-type get <device-type>
|
|
193
193
|
|
|
194
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested
|
|
194
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested device type.`).positional(`device-type`,{type:`string`,description:`Device type.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ra={command:`get <device-type>`,describe:`Get top ASes by HTTP requests for a device type`,builder:La,handler:async e=>a({command:`radar http top ases device-type get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases device-type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/device_type/${e[`device-type`]==null?`<device-type>`:encodeURIComponent(String(e[`device-type`]))}`,pathParams:{"device-type":String(e[`device-type`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ia,{device_type:e[`device-type`],...a}));r(s,{successLabel:`Loaded`})})},za={command:`device-type`,describe:`Operations for http.top.ases.device-type`,builder:e=>e.command(Ra).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ba={method:`GET`,path:()=>`/radar/http/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Va(e){return e.usage(`$0 radar http top ases get
|
|
195
195
|
|
|
196
|
-
Retrieves the top autonomous systems
|
|
196
|
+
Retrieves the top autonomous systems by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ha={command:`get`,describe:`Get top ASes by HTTP requests`,builder:Va,handler:async e=>a({command:`radar http top ases get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ba,a));r(s,{successLabel:`Loaded`})})};var Ua={method:`GET`,path:t=>e`/radar/http/top/ases/http_protocol/${t.http_protocol}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Wa(e){return e.usage(`$0 radar http top ases http-protocol get <http-protocol>
|
|
197
197
|
|
|
198
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested
|
|
198
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested HTTP protocol.`).positional(`http-protocol`,{type:`string`,description:`HTTP protocol (HTTP vs. HTTPS).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ga={command:`get <http-protocol>`,describe:`Get top ASes by HTTP requests for an HTTP protocol`,builder:Wa,handler:async e=>a({command:`radar http top ases http-protocol get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases http-protocol get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/http_protocol/${e[`http-protocol`]==null?`<http-protocol>`:encodeURIComponent(String(e[`http-protocol`]))}`,pathParams:{"http-protocol":String(e[`http-protocol`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ua,{http_protocol:e[`http-protocol`],...a}));r(s,{successLabel:`Loaded`})})},Ka={command:`http-protocol`,describe:`Operations for http.top.ases.http-protocol`,builder:e=>e.command(Ga).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qa={method:`GET`,path:t=>e`/radar/http/top/ases/http_version/${t.http_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Ja(e){return e.usage(`$0 radar http top ases http-version get <http-version>
|
|
199
199
|
|
|
200
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested
|
|
200
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested HTTP version.`).positional(`http-version`,{type:`string`,description:`HTTP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ya={command:`get <http-version>`,describe:`Get top ASes by HTTP requests for an HTTP version`,builder:Ja,handler:async e=>a({command:`radar http top ases http-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases http-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/http_version/${e[`http-version`]==null?`<http-version>`:encodeURIComponent(String(e[`http-version`]))}`,pathParams:{"http-version":String(e[`http-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qa,{http_version:e[`http-version`],...a}));r(s,{successLabel:`Loaded`})})},Xa={command:`http-version`,describe:`Operations for http.top.ases.http-version`,builder:e=>e.command(Ya).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Za={method:`GET`,path:t=>e`/radar/http/top/ases/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Qa(e){return e.usage(`$0 radar http top ases ip-version get <ip-version>
|
|
201
201
|
|
|
202
|
-
Retrieves the top
|
|
202
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $a={command:`get <ip-version>`,describe:`Get top ASes by HTTP requests for an IP version`,builder:Qa,handler:async e=>a({command:`radar http top ases ip-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases ip-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Za,{ip_version:e[`ip-version`],...a}));r(s,{successLabel:`Loaded`})})},eo={command:`ip-version`,describe:`Operations for http.top.ases.ip-version`,builder:e=>e.command($a).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var to={method:`GET`,path:t=>e`/radar/http/top/ases/os/${t.os}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function no(e){return e.usage(`$0 radar http top ases os get <os>
|
|
203
203
|
|
|
204
|
-
Retrieves the top
|
|
204
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested operating system.`).positional(`os`,{type:`string`,description:`Operating system.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ro={command:`get <os>`,describe:`Get top ASes by HTTP requests for an OS`,builder:no,handler:async e=>a({command:`radar http top ases os get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases os get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/os/${e.os==null?`<os>`:encodeURIComponent(String(e.os))}`,pathParams:{os:String(e.os??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(to,{os:e.os,...a}));r(s,{successLabel:`Loaded`})})},io={command:`os`,describe:`Operations for http.top.ases.os`,builder:e=>e.command(ro).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ao={method:`GET`,path:t=>e`/radar/http/top/ases/tls_version/${t.tls_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function oo(e){return e.usage(`$0 radar http top ases tls-version get <tls-version>
|
|
205
205
|
|
|
206
|
-
Retrieves the top
|
|
206
|
+
Retrieves the top autonomous systems, by HTTP requests, of the requested TLS protocol version.`).positional(`tls-version`,{type:`string`,description:`TLS version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const so={command:`get <tls-version>`,describe:`Get top ASes by HTTP requests for a TLS version`,builder:oo,handler:async e=>a({command:`radar http top ases tls-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top ases tls-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/tls_version/${e[`tls-version`]==null?`<tls-version>`:encodeURIComponent(String(e[`tls-version`]))}`,pathParams:{"tls-version":String(e[`tls-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ao,{tls_version:e[`tls-version`],...a}));r(s,{successLabel:`Loaded`})})},co={command:`tls-version`,describe:`Operations for http.top.ases.tls-version`,builder:e=>e.command(so).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},lo={command:`ases`,describe:`Operations for http.top.ases`,builder:e=>e.command(Ha).command(ja).command(Fa).command(za).command(Ka).command(Xa).command(eo).command(io).command(co).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var uo={method:`GET`,path:t=>e`/radar/http/top/locations/bot_class/${t.bot_class}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function fo(e){return e.usage(`$0 radar http top locations bot-class get <bot-class>
|
|
207
207
|
|
|
208
|
-
Retrieves the top locations by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`
|
|
208
|
+
Retrieves the top locations, by HTTP requests, of the requested bot class.`).positional(`bot-class`,{type:`string`,description:`Bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const po={command:`get <bot-class>`,describe:`Get top locations by HTTP requests for a bot class`,builder:fo,handler:async e=>a({command:`radar http top locations bot-class get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations bot-class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/bot_class/${e[`bot-class`]==null?`<bot-class>`:encodeURIComponent(String(e[`bot-class`]))}`,pathParams:{"bot-class":String(e[`bot-class`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(uo,{bot_class:e[`bot-class`],...a}));r(s,{successLabel:`Loaded`})})},mo={command:`bot-class`,describe:`Operations for http.top.locations.bot-class`,builder:e=>e.command(po).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ho={method:`GET`,path:t=>e`/radar/http/top/locations/browser_family/${t.browser_family}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{404:`NotFoundError`}};function go(e){return e.usage(`$0 radar http top locations browser-family get <browser-family>
|
|
209
209
|
|
|
210
|
-
Retrieves the top locations, by HTTP requests, of the requested
|
|
210
|
+
Retrieves the top locations, by HTTP requests, of the requested browser family.`).positional(`browser-family`,{type:`string`,description:`Browser family.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _o={command:`get <browser-family>`,describe:`Get top locations by HTTP requests for a browser family`,builder:go,handler:async e=>a({command:`radar http top locations browser-family get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations browser-family get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/browser_family/${e[`browser-family`]==null?`<browser-family>`:encodeURIComponent(String(e[`browser-family`]))}`,pathParams:{"browser-family":String(e[`browser-family`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ho,{browser_family:e[`browser-family`],...a}));r(s,{successLabel:`Loaded`})})},vo={command:`browser-family`,describe:`Operations for http.top.locations.browser-family`,builder:e=>e.command(_o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var yo={method:`GET`,path:t=>e`/radar/http/top/locations/device_type/${t.device_type}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function bo(e){return e.usage(`$0 radar http top locations device-type get <device-type>
|
|
211
211
|
|
|
212
|
-
Retrieves the top locations, by HTTP requests, of the requested
|
|
212
|
+
Retrieves the top locations, by HTTP requests, of the requested device type.`).positional(`device-type`,{type:`string`,description:`Device type.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xo={command:`get <device-type>`,describe:`Get top locations by HTTP requests for a device type`,builder:bo,handler:async e=>a({command:`radar http top locations device-type get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations device-type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/device_type/${e[`device-type`]==null?`<device-type>`:encodeURIComponent(String(e[`device-type`]))}`,pathParams:{"device-type":String(e[`device-type`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(yo,{device_type:e[`device-type`],...a}));r(s,{successLabel:`Loaded`})})},So={command:`device-type`,describe:`Operations for http.top.locations.device-type`,builder:e=>e.command(xo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Co={method:`GET`,path:()=>`/radar/http/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function wo(e){return e.usage(`$0 radar http top locations get
|
|
213
213
|
|
|
214
|
-
Retrieves the top locations
|
|
214
|
+
Retrieves the top locations by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const To={command:`get`,describe:`Get top locations by HTTP requests`,builder:wo,handler:async e=>a({command:`radar http top locations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Co,a));r(s,{successLabel:`Loaded`})})};var Eo={method:`GET`,path:t=>e`/radar/http/top/locations/http_protocol/${t.http_protocol}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Do(e){return e.usage(`$0 radar http top locations http-protocol get <http-protocol>
|
|
215
215
|
|
|
216
|
-
Retrieves the top locations, by HTTP requests, of the requested
|
|
216
|
+
Retrieves the top locations, by HTTP requests, of the requested HTTP protocol.`).positional(`http-protocol`,{type:`string`,description:`HTTP protocol (HTTP vs. HTTPS).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oo={command:`get <http-protocol>`,describe:`Get top locations by HTTP requests for an HTTP protocol`,builder:Do,handler:async e=>a({command:`radar http top locations http-protocol get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations http-protocol get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/http_protocol/${e[`http-protocol`]==null?`<http-protocol>`:encodeURIComponent(String(e[`http-protocol`]))}`,pathParams:{"http-protocol":String(e[`http-protocol`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Eo,{http_protocol:e[`http-protocol`],...a}));r(s,{successLabel:`Loaded`})})},ko={command:`http-protocol`,describe:`Operations for http.top.locations.http-protocol`,builder:e=>e.command(Oo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ao={method:`GET`,path:t=>e`/radar/http/top/locations/http_version/${t.http_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function jo(e){return e.usage(`$0 radar http top locations http-version get <http-version>
|
|
217
217
|
|
|
218
|
-
Retrieves the top locations, by HTTP requests, of the requested
|
|
218
|
+
Retrieves the top locations, by HTTP requests, of the requested HTTP version.`).positional(`http-version`,{type:`string`,description:`HTTP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mo={command:`get <http-version>`,describe:`Get top locations by HTTP requests for an HTTP version`,builder:jo,handler:async e=>a({command:`radar http top locations http-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations http-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/http_version/${e[`http-version`]==null?`<http-version>`:encodeURIComponent(String(e[`http-version`]))}`,pathParams:{"http-version":String(e[`http-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ao,{http_version:e[`http-version`],...a}));r(s,{successLabel:`Loaded`})})},No={command:`http-version`,describe:`Operations for http.top.locations.http-version`,builder:e=>e.command(Mo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Po={method:`GET`,path:t=>e`/radar/http/top/locations/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Fo(e){return e.usage(`$0 radar http top locations ip-version get <ip-version>
|
|
219
219
|
|
|
220
|
-
Retrieves the
|
|
220
|
+
Retrieves the top locations, by HTTP requests, of the requested IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Io={command:`get <ip-version>`,describe:`Get top locations by HTTP requests for an IP version`,builder:Fo,handler:async e=>a({command:`radar http top locations ip-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations ip-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Po,{ip_version:e[`ip-version`],...a}));r(s,{successLabel:`Loaded`})})},Lo={command:`ip-version`,describe:`Operations for http.top.locations.ip-version`,builder:e=>e.command(Io).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ro={method:`GET`,path:t=>e`/radar/http/top/locations/os/${t.os}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function zo(e){return e.usage(`$0 radar http top locations os get <os>
|
|
221
221
|
|
|
222
|
-
Retrieves the
|
|
222
|
+
Retrieves the top locations, by HTTP requests, of the requested operating system.`).positional(`os`,{type:`string`,description:`Operating system.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`tls-version`,{type:`string`,array:!0,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bo={command:`get <os>`,describe:`Get top locations by HTTP requests for an OS`,builder:zo,handler:async e=>a({command:`radar http top locations os get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations os get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/os/${e.os==null?`<os>`:encodeURIComponent(String(e.os))}`,pathParams:{os:String(e.os??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ro,{os:e.os,...a}));r(s,{successLabel:`Loaded`})})},Vo={command:`os`,describe:`Operations for http.top.locations.os`,builder:e=>e.command(Bo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ho={method:`GET`,path:t=>e`/radar/http/top/locations/tls_version/${t.tls_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Uo(e){return e.usage(`$0 radar http top locations tls-version get <tls-version>
|
|
223
223
|
|
|
224
|
-
Retrieves the HTTP requests
|
|
224
|
+
Retrieves the top locations, by HTTP requests, of the requested TLS protocol version.`).positional(`tls-version`,{type:`string`,description:`TLS version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,array:!0,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,array:!0,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,array:!0,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,array:!0,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,array:!0,description:`Filters results by operating system.`}).option(`browser-family`,{type:`string`,array:!0,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wo={command:`get <tls-version>`,describe:`Get top locations by HTTP requests for a TLS version`,builder:Uo,handler:async e=>a({command:`radar http top locations tls-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){n({command:`cf radar http top locations tls-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/tls_version/${e[`tls-version`]==null?`<tls-version>`:encodeURIComponent(String(e[`tls-version`]))}`,pathParams:{"tls-version":String(e[`tls-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ho,{tls_version:e[`tls-version`],...a}));r(s,{successLabel:`Loaded`})})},Go={command:`tls-version`,describe:`Operations for http.top.locations.tls-version`,builder:e=>e.command(Wo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ko={command:`locations`,describe:`Operations for http.top.locations`,builder:e=>e.command(To).command(mo).command(vo).command(So).command(ko).command(No).command(Lo).command(Vo).command(Go).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},qo={command:`top`,describe:`Operations for http.top`,builder:e=>e.command(lo).command(Ko).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Jo={command:`http`,describe:`HTTP protocol trends — TLS versions, HTTP versions, browser share, and OS distribution`,builder:e=>e.command(xa).command(Da).command(wa).command(qo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Yo={method:`GET`,path:t=>e`/radar/leaked_credential_checks/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`botClass`,`compromised`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Xo(e){return e.usage(`$0 radar leaked-credentials summary <dimension>
|
|
225
225
|
|
|
226
|
-
Retrieves an aggregated summary of HTTP authentication requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,array:!0,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
226
|
+
Retrieves an aggregated summary of HTTP authentication requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,array:!0,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zo={command:`summary <dimension>`,describe:`Get HTTP authentication requests distribution by dimension`,builder:Xo,handler:async e=>a({command:`radar leaked-credentials summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,botClass:e[`bot-class`],compromised:e.compromised,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar leaked-credentials summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/leaked_credential_checks/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Yo,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Qo={method:`GET`,path:t=>e`/radar/leaked_credential_checks/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`botClass`,`compromised`,`checkResult`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function $o(e){return e.usage(`$0 radar leaked-credentials timeseries-groups <dimension>
|
|
227
227
|
|
|
228
|
-
Retrieves the distribution of HTTP authentication requests, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,array:!0,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`check-result`,{type:`string`,array:!0,description:`Filters results by leaked credential check result.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
228
|
+
Retrieves the distribution of HTTP authentication requests, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,array:!0,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,array:!0,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`check-result`,{type:`string`,array:!0,description:`Filters results by leaked credential check result.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const es={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of HTTP authentication requests by dimension.`,builder:$o,handler:async e=>a({command:`radar leaked-credentials timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,botClass:e[`bot-class`],compromised:e.compromised,checkResult:e[`check-result`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar leaked-credentials timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/leaked_credential_checks/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qo,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},ts={command:`leaked-credentials`,describe:`Leaked credential detection trends and exposure statistics`,builder:e=>e.command(Zo).command(es).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ns={method:`GET`,path:t=>e`/radar/netflows/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`product`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function rs(e){return e.usage(`$0 radar netflows summary <dimension>
|
|
229
229
|
|
|
230
|
-
Retrieves the distribution of network traffic (NetFlows) by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
230
|
+
Retrieves the distribution of network traffic (NetFlows) by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const is={command:`summary <dimension>`,describe:`Get network traffic distribution by dimension`,builder:rs,handler:async e=>a({command:`radar netflows summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],product:e.product,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar netflows summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ns,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var as={method:`GET`,path:t=>e`/radar/netflows/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`limitPerGroup`,`normalization`,`product`,`format`],errors:{400:`BadRequestError`}};function os(e){return e.usage(`$0 radar netflows timeseries-groups <dimension>
|
|
231
231
|
|
|
232
|
-
Retrieves the distribution of NetFlows traffic, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
232
|
+
Retrieves the distribution of NetFlows traffic, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ss={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of network traffic by dimension`,builder:os,handler:async e=>a({command:`radar netflows timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,product:e.product,format:e.format};if(e.dryRun){n({command:`cf radar netflows timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(as,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var cs={method:`GET`,path:()=>`/radar/netflows/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`product`,`asn`,`location`,`continent`,`geoId`,`normalization`,`format`],errors:{400:`BadRequestError`}};function ls(e){return e.usage(`$0 radar netflows timeseries
|
|
233
233
|
|
|
234
|
-
Retrieves network traffic (NetFlows) over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
234
|
+
Retrieves network traffic (NetFlows) over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`product`,{type:`string`,array:!0,description:`Filters the results by network traffic product types.`}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const us={command:`timeseries`,describe:`Get network traffic time series`,builder:ls,handler:async e=>a({command:`radar netflows timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],product:e.product,asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar netflows timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(cs,a));r(s,{successLabel:`Loaded`})})};var ds={method:`GET`,path:()=>`/radar/netflows/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`format`],errors:{404:`NotFoundError`}};function fs(e){return e.usage(`$0 radar netflows top ases
|
|
235
235
|
|
|
236
|
-
Retrieves the top autonomous systems by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
236
|
+
Retrieves the top autonomous systems by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ps={command:`ases`,describe:`Get top ASes by network traffic`,builder:fs,handler:async e=>a({command:`radar netflows top ases`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],format:e.format};if(e.dryRun){n({command:`cf radar netflows top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ds,a));r(s,{successLabel:`Loaded`})})};var ms={method:`GET`,path:()=>`/radar/netflows/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`format`],errors:{404:`NotFoundError`}};function hs(e){return e.usage(`$0 radar netflows top locations
|
|
237
237
|
|
|
238
|
-
Retrieves the top locations by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
238
|
+
Retrieves the top locations by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,array:!0,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gs={command:`locations`,describe:`Get top locations by network traffic`,builder:hs,handler:async e=>a({command:`radar netflows top locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],format:e.format};if(e.dryRun){n({command:`cf radar netflows top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ms,a));r(s,{successLabel:`Loaded`})})},_s={command:`top`,describe:`Operations for netflows.top`,builder:e=>e.command(ps).command(gs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},vs={command:`netflows`,describe:`Network-layer traffic flow data and volumetric trend analysis`,builder:e=>e.command(is).command(us).command(ss).command(_s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ys={method:`GET`,path:t=>e`/radar/origins/${t.slug}`,query:[`format`],errors:{404:`NotFoundError`}};function bs(e){return e.usage(`$0 radar origins get <slug>
|
|
239
239
|
|
|
240
|
-
Retrieves the requested origin information with its regions.`).positional(`slug`,{type:`string`,description:`Origin slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
240
|
+
Retrieves the requested origin information with its regions.`).positional(`slug`,{type:`string`,description:`Origin slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xs={command:`get <slug>`,describe:`Get Origin details`,builder:bs,handler:async e=>a({command:`radar origins get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar origins get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/${e.slug==null?`<slug>`:encodeURIComponent(String(e.slug))}`,pathParams:{slug:String(e.slug??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ys,{slug:e.slug,...a}));r(s,{successLabel:`Loaded`})})};var Ss={method:`GET`,path:()=>`/radar/origins`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function Cs(e){return e.usage(`$0 radar origins list
|
|
241
241
|
|
|
242
|
-
Retrieves a list of origins with their regions.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
242
|
+
Retrieves a list of origins with their regions.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ws={command:`list`,describe:`List Origins`,builder:Cs,handler:async e=>a({command:`radar origins list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){n({command:`cf radar origins list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ss,a));r(s,{successLabel:`Loaded`})})};var Ts={method:`GET`,path:t=>e`/radar/origins/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`origin`,`metric`,`region`,`format`],errors:{400:`BadRequestError`}};function Es(e){return e.usage(`$0 radar origins summary <dimension>
|
|
243
243
|
|
|
244
|
-
Retrieves an aggregated summary of origin metrics grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,array:!0,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
244
|
+
Retrieves an aggregated summary of origin metrics grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,array:!0,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ds={command:`summary <dimension>`,describe:`Get origin metrics distribution by dimension`,builder:Es,handler:async e=>a({command:`radar origins summary`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],origin:e.origin,metric:e.metric,region:e.region,format:e.format};if(e.dryRun){n({command:`cf radar origins summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ts,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Os={method:`GET`,path:t=>e`/radar/origins/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`origin`,`metric`,`region`,`normalization`,`format`],errors:{400:`BadRequestError`}};function ks(e){return e.usage(`$0 radar origins timeseries-groups <dimension>
|
|
245
245
|
|
|
246
|
-
Retrieves the distribution of origin metrics grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,array:!0,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
246
|
+
Retrieves the distribution of origin metrics grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,array:!0,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const As={command:`timeseries-groups <dimension>`,describe:`Get origin metrics time series grouped by dimension`,builder:ks,handler:async e=>a({command:`radar origins timeseries-groups`,classification:{safeFlags:[`agg-interval`,`metric`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],origin:e.origin,metric:e.metric,region:e.region,normalization:e.normalization,format:e.format};if(e.dryRun){n({command:`cf radar origins timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Os,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var js={method:`GET`,path:()=>`/radar/origins/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`origin`,`metric`,`region`,`format`],errors:{400:`BadRequestError`}};function Ms(e){return e.usage(`$0 radar origins timeseries
|
|
247
247
|
|
|
248
|
-
Retrieves the time series of origin metrics for the specified origin.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`origin`,{type:`string`,array:!0,description:`Filters results by origin.`,demandOption:!0}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Without a `region`, only `REQUESTS` or `CONNECTION_FAILURES` are available; specify a `region` to use the latency metrics.",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
248
|
+
Retrieves the time series of origin metrics for the specified origin.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`origin`,{type:`string`,array:!0,description:`Filters results by origin.`,demandOption:!0}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Without a `region`, only `REQUESTS` or `CONNECTION_FAILURES` are available; specify a `region` to use the latency metrics.",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,array:!0,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ns={command:`timeseries`,describe:`Get origin metrics time series`,builder:Ms,handler:async e=>a({command:`radar origins timeseries`,classification:{safeFlags:[`agg-interval`,`metric`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],origin:e.origin,metric:e.metric,region:e.region,format:e.format};if(e.dryRun){n({command:`cf radar origins timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(js,a));r(s,{successLabel:`Loaded`})})},Ps={command:`origins`,describe:`Cloud and hosting origin providers (e.g. Amazon, by region) and their traffic metrics`,builder:e=>e.command(xs).command(ws).command(Ds).command(Ns).command(As).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Fs={method:`GET`,path:t=>e`/radar/post_quantum/origin/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function Is(e){return e.usage(`$0 radar post-quantum origin summary <dimension>
|
|
249
249
|
|
|
250
|
-
Returns a summary of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
250
|
+
Returns a summary of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ls={command:`summary <dimension>`,describe:`Get Origin Post-Quantum Data Summary`,builder:Is,handler:async e=>a({command:`radar post-quantum origin summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar post-quantum origin summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/origin/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Fs,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var Rs={method:`GET`,path:t=>e`/radar/post_quantum/origin/timeseries_groups/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function zs(e){return e.usage(`$0 radar post-quantum origin timeseries-groups <dimension>
|
|
251
251
|
|
|
252
|
-
Returns a timeseries of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
252
|
+
Returns a timeseries of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bs={command:`timeseries-groups <dimension>`,describe:`Get Origin Post-Quantum Data Over Time`,builder:zs,handler:async e=>a({command:`radar post-quantum origin timeseries-groups`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar post-quantum origin timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/origin/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Rs,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},Vs={command:`origin`,describe:`Operations for post-quantum.origin`,builder:e=>e.command(Ls).command(Bs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Hs={method:`GET`,path:()=>`/radar/post_quantum/tls/support`,query:[`host`],errors:{400:`BadRequestError`}};function Us(e){return e.usage(`$0 radar post-quantum tls support
|
|
253
253
|
|
|
254
|
-
Tests whether a hostname or IP address supports Post-Quantum (PQ) TLS key exchange. Returns information about the negotiated key exchange algorithm, whether it uses PQ cryptography, and any detected TLS implementation bugs (Split ClientHello, HRR failure, etc.).`).option(`host`,{type:`string`,description:`Hostname or IP address to test for Post-Quantum TLS support, optionally with port (defaults to 443).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
254
|
+
Tests whether a hostname or IP address supports Post-Quantum (PQ) TLS key exchange. Returns information about the negotiated key exchange algorithm, whether it uses PQ cryptography, and any detected TLS implementation bugs (Split ClientHello, HRR failure, etc.).`).option(`host`,{type:`string`,description:`Hostname or IP address to test for Post-Quantum TLS support, optionally with port (defaults to 443).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ws={command:`support`,describe:`Check Post-Quantum TLS support`,builder:Us,handler:async e=>a({command:`radar post-quantum tls support`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={host:e.host};if(e.dryRun){n({command:`cf radar post-quantum tls support`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/tls/support`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Hs,a));r(s,{successLabel:`Loaded`})})},Gs={command:`tls`,describe:`Operations for post-quantum.tls`,builder:e=>e.command(Ws).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ks={command:`post-quantum`,describe:`Post-quantum encryption adoption and deployment trends across the Internet`,builder:e=>e.command(Vs).command(Gs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qs={method:`GET`,path:()=>`/radar/quality/iqi/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`metric`,`format`],errors:{400:`BadRequestError`}};function Js(e){return e.usage(`$0 radar quality iqi summary
|
|
255
255
|
|
|
256
|
-
Retrieves a summary (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
256
|
+
Retrieves a summary (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ys={command:`summary`,describe:`Get Internet Quality Index (IQI) summary`,builder:Js,handler:async e=>a({command:`radar quality iqi summary`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,metric:e.metric,format:e.format};if(e.dryRun){n({command:`cf radar quality iqi summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/iqi/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qs,a));r(s,{successLabel:`Loaded`})})};var Xs={method:`GET`,path:()=>`/radar/quality/iqi/timeseries_groups`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`interpolation`,`metric`,`format`],errors:{400:`BadRequestError`}};function Zs(e){return e.usage(`$0 radar quality iqi timeseries-groups
|
|
257
257
|
|
|
258
|
-
Retrieves a time series (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`interpolation`,{type:`boolean`,description:`Enables interpolation for all series (using the average).`}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
258
|
+
Retrieves a time series (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`interpolation`,{type:`boolean`,description:`Enables interpolation for all series (using the average).`}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qs={command:`timeseries-groups`,describe:`Get Internet Quality Index (IQI) time series`,builder:Zs,handler:async e=>a({command:`radar quality iqi timeseries-groups`,classification:{safeFlags:[`agg-interval`,`interpolation`,`metric`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,interpolation:e.interpolation,metric:e.metric,format:e.format};if(e.dryRun){n({command:`cf radar quality iqi timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/iqi/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Xs,a));r(s,{successLabel:`Loaded`})})},$s={command:`iqi`,describe:`Operations for quality.iqi`,builder:e=>e.command(Ys).command(Qs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ec={method:`GET`,path:()=>`/radar/quality/speed/histogram`,query:[`name`,`dateEnd`,`asn`,`location`,`continent`,`bucketSize`,`metricGroup`,`format`],errors:{400:`BadRequestError`}};function tc(e){return e.usage(`$0 radar quality speed histogram
|
|
259
259
|
|
|
260
|
-
Retrieves a histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms), or jitter (ms) buckets.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bucket-size`,{type:`number`,description:`Specifies the width for every bucket in the histogram.`}).option(`metric-group`,{type:`string`,description:`Metrics to be returned.`,choices:[`BANDWIDTH`,`LATENCY`,`JITTER`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
260
|
+
Retrieves a histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms), or jitter (ms) buckets.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bucket-size`,{type:`number`,description:`Specifies the width for every bucket in the histogram.`}).option(`metric-group`,{type:`string`,description:`Metrics to be returned.`,choices:[`BANDWIDTH`,`LATENCY`,`JITTER`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nc={command:`histogram`,describe:`Get speed tests histogram`,builder:tc,handler:async e=>a({command:`radar quality speed histogram`,classification:{safeFlags:[`metric-group`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,bucketSize:e[`bucket-size`],metricGroup:e[`metric-group`],format:e.format};if(e.dryRun){n({command:`cf radar quality speed histogram`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/histogram`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ec,a));r(s,{successLabel:`Loaded`})})};var rc={method:`GET`,path:()=>`/radar/quality/speed/summary`,query:[`name`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function ic(e){return e.usage(`$0 radar quality speed summary
|
|
261
261
|
|
|
262
|
-
Retrieves a summary of bandwidth, latency, jitter, and packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
262
|
+
Retrieves a summary of bandwidth, latency, jitter, and packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ac={command:`summary`,describe:`Get speed tests summary`,builder:ic,handler:async e=>a({command:`radar quality speed summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar quality speed summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(rc,a));r(s,{successLabel:`Loaded`})})};var oc={method:`GET`,path:()=>`/radar/quality/speed/top/ases`,query:[`limit`,`name`,`dateEnd`,`asn`,`location`,`continent`,`orderBy`,`reverse`,`format`],errors:{404:`NotFoundError`}};function sc(e){return e.usage(`$0 radar quality speed top ases
|
|
263
263
|
|
|
264
|
-
Retrieves the top autonomous systems by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
264
|
+
Retrieves the top autonomous systems by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cc={command:`ases`,describe:`Get top ASes by speed test results`,builder:sc,handler:async e=>a({command:`radar quality speed top ases`,classification:{safeFlags:[`order-by`,`reverse`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,orderBy:e[`order-by`],reverse:e.reverse,format:e.format};if(e.dryRun){n({command:`cf radar quality speed top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(oc,a));r(s,{successLabel:`Loaded`})})};var lc={method:`GET`,path:()=>`/radar/quality/speed/top/locations`,query:[`limit`,`name`,`dateEnd`,`asn`,`location`,`continent`,`orderBy`,`reverse`,`format`],errors:{404:`NotFoundError`}};function uc(e){return e.usage(`$0 radar quality speed top locations
|
|
265
265
|
|
|
266
|
-
Retrieves the top locations by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
266
|
+
Retrieves the top locations by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dc={command:`locations`,describe:`Get top locations by speed test results`,builder:uc,handler:async e=>a({command:`radar quality speed top locations`,classification:{safeFlags:[`order-by`,`reverse`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,orderBy:e[`order-by`],reverse:e.reverse,format:e.format};if(e.dryRun){n({command:`cf radar quality speed top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(lc,a));r(s,{successLabel:`Loaded`})})},fc={command:`top`,describe:`Operations for quality.speed.top`,builder:e=>e.command(cc).command(dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pc={command:`speed`,describe:`Operations for quality.speed`,builder:e=>e.command(nc).command(ac).command(fc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},mc={command:`quality`,describe:`Internet connection quality metrics — speed, latency, and jitter by geography and ASN`,builder:e=>e.command($s).command(pc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var hc={method:`GET`,path:t=>e`/radar/ranking/domain/${t.domain}`,query:[`limit`,`rankingType`,`name`,`includeTopLocations`,`date`,`format`],errors:{400:`BadRequestError`}};function gc(e){return e.usage(`$0 radar ranking domain get <domain>
|
|
267
267
|
|
|
268
|
-
Retrieves domain rank details. Cloudflare provides an ordered rank for the top 100 domains, but for the remainder it only provides ranking buckets like top 200 thousand, top one million, etc.. These are available through Radar datasets endpoints.`).positional(`domain`,{type:`string`,description:`Domain name.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`include-top-locations`,{type:`boolean`,description:`Includes top locations in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
268
|
+
Retrieves domain rank details. Cloudflare provides an ordered rank for the top 100 domains, but for the remainder it only provides ranking buckets like top 200 thousand, top one million, etc.. These are available through Radar datasets endpoints.`).positional(`domain`,{type:`string`,description:`Domain name.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`include-top-locations`,{type:`boolean`,description:`Includes top locations in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _c={command:`get <domain>`,describe:`Get domain rank details`,builder:gc,handler:async e=>a({command:`radar ranking domain get`,classification:{safeFlags:[`ranking-type`,`include-top-locations`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,rankingType:e[`ranking-type`],name:e.name,includeTopLocations:e[`include-top-locations`],date:e.date,format:e.format};if(e.dryRun){n({command:`cf radar ranking domain get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/domain/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}`,pathParams:{domain:String(e.domain??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(hc,{domain:e.domain,...a}));r(s,{successLabel:`Loaded`})})},vc={command:`domain`,describe:`Operations for ranking.domain`,builder:e=>e.command(_c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var yc={method:`GET`,path:()=>`/radar/ranking/internet_services/categories`,query:[`limit`,`name`,`date`,`format`],errors:{400:`BadRequestError`}};function bc(e){return e.usage(`$0 radar ranking internet-services categories
|
|
269
269
|
|
|
270
|
-
Retrieves the list of Internet services categories.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
270
|
+
Retrieves the list of Internet services categories.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xc={command:`categories`,describe:`List Internet services categories`,builder:bc,handler:async e=>a({command:`radar ranking internet-services categories`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,date:e.date,format:e.format};if(e.dryRun){n({command:`cf radar ranking internet-services categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/categories`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(yc,a));r(s,{successLabel:`Loaded`})})};var Sc={method:`GET`,path:()=>`/radar/ranking/internet_services/timeseries_groups`,query:[`serviceCategory`,`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function Cc(e){return e.usage(`$0 radar ranking internet-services timeseries-groups
|
|
271
271
|
|
|
272
|
-
Retrieves Internet Services rank update changes over time.`).option(`service-category`,{type:`string`,array:!0,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
272
|
+
Retrieves Internet Services rank update changes over time.`).option(`service-category`,{type:`string`,array:!0,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wc={command:`timeseries-groups`,describe:`Get Internet services rank time series`,builder:Cc,handler:async e=>a({command:`radar ranking internet-services timeseries-groups`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={serviceCategory:e[`service-category`],limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar ranking internet-services timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Sc,a));r(s,{successLabel:`Loaded`})})};var Tc={method:`GET`,path:()=>`/radar/ranking/internet_services/top`,query:[`serviceCategory`,`limit`,`name`,`date`,`format`],errors:{400:`BadRequestError`}};function Ec(e){return e.usage(`$0 radar ranking internet-services top
|
|
273
273
|
|
|
274
|
-
Retrieves top Internet services based on their rank.`).option(`service-category`,{type:`string`,array:!0,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
274
|
+
Retrieves top Internet services based on their rank.`).option(`service-category`,{type:`string`,array:!0,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dc={command:`top`,describe:`Get top Internet services`,builder:Ec,handler:async e=>a({command:`radar ranking internet-services top`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={serviceCategory:e[`service-category`],limit:e.limit,name:e.name,date:e.date,format:e.format};if(e.dryRun){n({command:`cf radar ranking internet-services top`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/top`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Tc,a));r(s,{successLabel:`Loaded`})})},Oc={command:`internet-services`,describe:`Operations for ranking.internet-services`,builder:e=>e.command(xc).command(wc).command(Dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var kc={method:`GET`,path:()=>`/radar/ranking/timeseries_groups`,query:[`limit`,`rankingType`,`name`,`location`,`domains`,`domainCategory`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function Ac(e){return e.usage(`$0 radar ranking timeseries-groups
|
|
275
275
|
|
|
276
|
-
Retrieves domains rank over time.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domains`,{type:`string`,array:!0,description:`Filters results by domain name. Specify a comma-separated list of domain names.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
276
|
+
Retrieves domains rank over time.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domains`,{type:`string`,array:!0,description:`Filters results by domain name. Specify a comma-separated list of domain names.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jc={command:`timeseries-groups`,describe:`Get domains rank time series`,builder:Ac,handler:async e=>a({command:`radar ranking timeseries-groups`,classification:{safeFlags:[`ranking-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,rankingType:e[`ranking-type`],name:e.name,location:e.location,domains:e.domains,domainCategory:e[`domain-category`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){n({command:`cf radar ranking timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(kc,a));r(s,{successLabel:`Loaded`})})};var Mc={method:`GET`,path:()=>`/radar/ranking/top`,query:[`limit`,`name`,`location`,`domainCategory`,`date`,`rankingType`,`format`],errors:{400:`BadRequestError`}};function Nc(e){return e.usage(`$0 radar ranking top
|
|
277
277
|
|
|
278
|
-
Retrieves the top or trending domains based on their rank. Popular domains are domains of broad appeal based on how people use the Internet. Trending domains are domains that are generating a surge in interest. For more information on top domains, see https://blog.cloudflare.com/radar-domain-rankings/.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
278
|
+
Retrieves the top or trending domains based on their rank. Popular domains are domains of broad appeal based on how people use the Internet. Trending domains are domains that are generating a surge in interest. For more information on top domains, see https://blog.cloudflare.com/radar-domain-rankings/.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,array:!0,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pc={command:`top`,describe:`Get top or trending domains`,builder:Nc,handler:async e=>a({command:`radar ranking top`,classification:{safeFlags:[`ranking-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,location:e.location,domainCategory:e[`domain-category`],date:e.date,rankingType:e[`ranking-type`],format:e.format};if(e.dryRun){n({command:`cf radar ranking top`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/top`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Mc,a));r(s,{successLabel:`Loaded`})})},Fc={command:`ranking`,describe:`Top domain rankings based on DNS query popularity across the Cloudflare network`,builder:e=>e.command(jc).command(Pc).command(vc).command(Oc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ic={method:`GET`,path:()=>`/radar/robots_txt/top/domain_categories`,query:[`limit`,`name`,`userAgentCategory`,`date`,`format`],errors:{404:`NotFoundError`}};function Lc(e){return e.usage(`$0 radar robots-txt top domain-categories
|
|
279
279
|
|
|
280
|
-
Retrieves the top domain categories by the number of robots.txt files parsed.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
280
|
+
Retrieves the top domain categories by the number of robots.txt files parsed.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rc={command:`domain-categories`,describe:`Get top domain categories by robots.txt files parsed`,builder:Lc,handler:async e=>a({command:`radar robots-txt top domain-categories`,classification:{safeFlags:[`user-agent-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,userAgentCategory:e[`user-agent-category`],date:e.date,format:e.format};if(e.dryRun){n({command:`cf radar robots-txt top domain-categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/robots_txt/top/domain_categories`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ic,a));r(s,{successLabel:`Loaded`})})};var zc={method:`GET`,path:()=>`/radar/robots_txt/top/user_agents/directive`,query:[`limit`,`name`,`userAgentCategory`,`date`,`domainCategory`,`directive`,`format`],errors:{404:`NotFoundError`}};function Bc(e){return e.usage(`$0 radar robots-txt top user-agents directive
|
|
281
281
|
|
|
282
|
-
Retrieves the top user agents on robots.txt files.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`directive`,{type:`string`,description:`Filters results by robots.txt directive.`,choices:[`ALLOW`,`DISALLOW`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
282
|
+
Retrieves the top user agents on robots.txt files.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,array:!0,description:`Filters results by the specified array of dates.`}).option(`domain-category`,{type:`string`,array:!0,description:`Filters results by domain category.`}).option(`directive`,{type:`string`,description:`Filters results by robots.txt directive.`,choices:[`ALLOW`,`DISALLOW`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vc={command:`directive`,describe:`Get top user agents on robots.txt files`,builder:Bc,handler:async e=>a({command:`radar robots-txt top user-agents directive`,classification:{safeFlags:[`user-agent-category`,`directive`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,userAgentCategory:e[`user-agent-category`],date:e.date,domainCategory:e[`domain-category`],directive:e.directive,format:e.format};if(e.dryRun){n({command:`cf radar robots-txt top user-agents directive`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/robots_txt/top/user_agents/directive`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(zc,a));r(s,{successLabel:`Loaded`})})},Hc={command:`user-agents`,describe:`Operations for robots-txt.top.user-agents`,builder:e=>e.command(Vc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Uc={command:`top`,describe:`Operations for robots-txt.top`,builder:e=>e.command(Rc).command(Hc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Wc={command:`robots-txt`,describe:`Robots.txt adoption and crawler directive trends across the web`,builder:e=>e.command(Uc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Gc={method:`GET`,path:()=>`/radar/search/global`,query:[`limit`,`limitPerGroup`,`query`,`include`,`exclude`,`format`],errors:{400:`BadRequestError`}};function Kc(e){return e.usage("$0 radar search global\n\nSearches for locations, autonomous systems, reports, bots, bot operators, certificate logs, certificate authorities, industries and verticals. Location names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per search category.`}).option(`query`,{type:`string`,description:`String used to perform the search operation.`,demandOption:!0}).option(`include`,{type:`string`,array:!0,description:`Search types included in results.`}).option(`exclude`,{type:`string`,array:!0,description:`Search types excluded from results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qc={command:`global`,describe:`Search for locations, ASes, reports, and more`,builder:Kc,handler:async e=>a({command:`radar search global`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,limitPerGroup:e[`limit-per-group`],query:e.query,include:e.include,exclude:e.exclude,format:e.format};if(e.dryRun){n({command:`cf radar search global`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/search/global`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Gc,a));r(s,{successLabel:`Loaded`})})},Jc={command:`search`,describe:`Search Radar data across IPs, ASNs, domains, and locations`,builder:e=>e.command(qc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Yc={method:`GET`,path:()=>`/radar/tcp_resets_timeouts/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function Xc(e){return e.usage(`$0 radar tcp-resets-timeouts summary
|
|
283
283
|
|
|
284
|
-
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
284
|
+
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout.`).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zc={command:`summary`,describe:`Get TCP resets and timeouts summary`,builder:Xc,handler:async e=>a({command:`radar tcp-resets-timeouts summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar tcp-resets-timeouts summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tcp_resets_timeouts/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Yc,a));r(s,{successLabel:`Loaded`})})};var Qc={method:`GET`,path:()=>`/radar/tcp_resets_timeouts/timeseries_groups`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function $c(e){return e.usage(`$0 radar tcp-resets-timeouts timeseries-groups
|
|
285
285
|
|
|
286
|
-
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
286
|
+
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,array:!0,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const el={command:`timeseries-groups`,describe:`Get TCP resets and timeouts time series`,builder:$c,handler:async e=>a({command:`radar tcp-resets-timeouts timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){n({command:`cf radar tcp-resets-timeouts timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tcp_resets_timeouts/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qc,a));r(s,{successLabel:`Loaded`})})},tl={command:`tcp-resets-timeouts`,describe:`TCP connection reset and timeout statistics indicating network health issues`,builder:e=>e.command(Zc).command(el).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var nl={method:`GET`,path:t=>e`/radar/tlds/${t.tld}`,query:[`format`],errors:{404:`NotFoundError`}};function rl(e){return e.usage(`$0 radar tlds get <tld>
|
|
287
287
|
|
|
288
|
-
Retrieves the requested TLD information.`).positional(`tld`,{type:`string`,description:`Top-level domain.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
288
|
+
Retrieves the requested TLD information.`).positional(`tld`,{type:`string`,description:`Top-level domain.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const il={command:`get <tld>`,describe:`Get TLD details`,builder:rl,handler:async e=>a({command:`radar tlds get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar tlds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/${e.tld==null?`<tld>`:encodeURIComponent(String(e.tld))}`,pathParams:{tld:String(e.tld??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(nl,{tld:e.tld,...a}));r(s,{successLabel:`Loaded`})})};var al={method:`GET`,path:()=>`/radar/tlds`,query:[`limit`,`offset`,`tldManager`,`tldType`,`tld`,`format`],errors:{400:`BadRequestError`}};function ol(e){return e.usage(`$0 radar tlds list
|
|
289
289
|
|
|
290
|
-
Retrieves a list of TLDs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`tld-manager`,{type:`string`,description:`Filters results by TLD manager.`}).option(`tld-type`,{type:`string`,description:`Filters results by TLD type. GENERIC_RESTRICTED and SPONSORED are deprecated and return no results, as IANA consolidated them into GENERIC. INFRASTRUCTURE is deprecated, as IANA reclassified .arpa as SPECIAL_USE.`,choices:[`GENERIC`,`COUNTRY_CODE`,`SPECIAL_USE`,`GENERIC_RESTRICTED`,`INFRASTRUCTURE`,`SPONSORED`]}).option(`tld`,{type:`string`,description:`Filters results by top-level domain. Specify a comma-separated list of TLDs.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
290
|
+
Retrieves a list of TLDs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`tld-manager`,{type:`string`,description:`Filters results by TLD manager.`}).option(`tld-type`,{type:`string`,description:`Filters results by TLD type. GENERIC_RESTRICTED and SPONSORED are deprecated and return no results, as IANA consolidated them into GENERIC. INFRASTRUCTURE is deprecated, as IANA reclassified .arpa as SPECIAL_USE.`,choices:[`GENERIC`,`COUNTRY_CODE`,`SPECIAL_USE`,`GENERIC_RESTRICTED`,`INFRASTRUCTURE`,`SPONSORED`]}).option(`tld`,{type:`string`,description:`Filters results by top-level domain. Specify a comma-separated list of TLDs.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sl={command:`list`,describe:`List TLDs`,builder:ol,handler:async e=>a({command:`radar tlds list`,classification:{safeFlags:[`tld-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,tldManager:e[`tld-manager`],tldType:e[`tld-type`],tld:e.tld,format:e.format};if(e.dryRun){n({command:`cf radar tlds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(al,a));r(s,{successLabel:`Loaded`})})};var cl={method:`GET`,path:t=>e`/radar/tlds/performance/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`tld`,`nameserver`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ll(e){return e.usage(`$0 radar tlds performance summary <dimension>
|
|
291
291
|
|
|
292
|
-
Returns a summary of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension to summarize TLD nameserver latency by.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,array:!0,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
292
|
+
Returns a summary of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension to summarize TLD nameserver latency by.`,demandOption:!0}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,array:!0,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ul={command:`summary <dimension>`,describe:`Get TLD Performance Summary`,builder:ll,handler:async e=>a({command:`radar tlds performance summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,tld:e.tld,nameserver:e.nameserver,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar tlds performance summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/performance/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(cl,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})};var dl={method:`GET`,path:t=>e`/radar/tlds/performance/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`tld`,`nameserver`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function fl(e){return e.usage(`$0 radar tlds performance timeseries-groups <dimension>
|
|
293
293
|
|
|
294
|
-
Returns a timeseries of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension for the TLD nameserver latency timeseries.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,array:!0,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
294
|
+
Returns a timeseries of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension for the TLD nameserver latency timeseries.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,array:!0,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,array:!0,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,array:!0,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,array:!0,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,array:!0,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,array:!0,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,array:!0,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pl={command:`timeseries-groups <dimension>`,describe:`Get TLD Performance Over Time`,builder:fl,handler:async e=>a({command:`radar tlds performance timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,tld:e.tld,nameserver:e.nameserver,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){n({command:`cf radar tlds performance timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/performance/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(dl,{dimension:e.dimension,...a}));r(s,{successLabel:`Loaded`})})},ml={command:`performance`,describe:`Operations for tlds.performance`,builder:e=>e.command(ul).command(pl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},hl={command:`tlds`,describe:`Top-level domain (TLD) metadata and performance trends`,builder:e=>e.command(il).command(sl).command(ml).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gl={method:`GET`,path:t=>e`/radar/traffic_anomalies/${t.uuid}`,query:[`format`],errors:{404:`NotFoundError`}};function _l(e){return e.usage(`$0 radar traffic-anomalies get <uuid>
|
|
295
295
|
|
|
296
|
-
Retrieves a single Internet traffic anomaly by UUID.`).positional(`uuid`,{type:`string`,description:`Traffic anomaly UUID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
296
|
+
Retrieves a single Internet traffic anomaly by UUID.`).positional(`uuid`,{type:`string`,description:`Traffic anomaly UUID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vl={command:`get <uuid>`,describe:`Get traffic anomaly by UUID`,builder:_l,handler:async e=>a({command:`radar traffic-anomalies get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){n({command:`cf radar traffic-anomalies get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies/${e.uuid==null?`<uuid>`:encodeURIComponent(String(e.uuid))}`,pathParams:{uuid:String(e.uuid??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(gl,{uuid:e.uuid,...a}));r(s,{successLabel:`Loaded`})})};var yl={method:`GET`,path:()=>`/radar/traffic_anomalies`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`status`,`type`,`dataSource`,`asn`,`location`,`origin`,`format`],errors:{400:`BadRequestError`}};function bl(e){return e.usage(`$0 radar traffic-anomalies list
|
|
297
297
|
|
|
298
|
-
Retrieves the latest Internet traffic anomalies, which are signals that might indicate an outage. These alerts are automatically detected by Radar and manually verified by our team.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`type`,{type:`string`,array:!0,description:`Filters results by entity type (LOCATION, AS, or ORIGIN).`}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
298
|
+
Retrieves the latest Internet traffic anomalies, which are signals that might indicate an outage. These alerts are automatically detected by Radar and manually verified by our team.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`type`,{type:`string`,array:!0,description:`Filters results by entity type (LOCATION, AS, or ORIGIN).`}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xl={command:`list`,describe:`Get latest Internet traffic anomalies`,builder:bl,handler:async e=>a({command:`radar traffic-anomalies list`,classification:{safeFlags:[`status`,`data-source`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],status:e.status,type:e.type,dataSource:e[`data-source`],asn:e.asn,location:e.location,origin:e.origin,format:e.format};if(e.dryRun){n({command:`cf radar traffic-anomalies list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(yl,a));r(s,{successLabel:`Loaded`})})};var Sl={method:`GET`,path:()=>`/radar/traffic_anomalies/locations`,query:[`limit`,`dateRange`,`dateStart`,`dateEnd`,`status`,`format`],errors:{400:`BadRequestError`}};function Cl(e){return e.usage(`$0 radar traffic-anomalies locations get
|
|
299
299
|
|
|
300
|
-
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.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
300
|
+
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.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wl={command:`get`,describe:`Get top locations by total traffic anomalies`,builder:Cl,handler:async e=>a({command:`radar traffic-anomalies locations get`,classification:{safeFlags:[`status`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],status:e.status,format:e.format};if(e.dryRun){n({command:`cf radar traffic-anomalies locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Sl,a));r(s,{successLabel:`Loaded`})})},Tl={command:`locations`,describe:`Operations for traffic-anomalies.locations`,builder:e=>e.command(wl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},El={command:`traffic-anomalies`,describe:`Detected traffic anomalies and unusual patterns in Internet traffic flows`,builder:e=>e.command(vl).command(xl).command(Tl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Dl={command:`radar`,describe:`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,builder:e=>e.command(te).command(F).command(Y).command(De).command(bt).command(zn).command(cr).command(Mr).command(Br).command(ri).command(Fi).command(da).command(va).command(Jo).command(ts).command(vs).command(Ps).command(Ks).command(mc).command(Fc).command(Wc).command(Jc).command(tl).command(hl).command(El).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Dl as default};
|