cloudflare
Version:
The official TypeScript library for the Cloudflare API
62 lines • 2.33 kB
TypeScript
import { APIResource } from "../../../../core/resource.js";
import * as ReportsBytimesAPI from "../../../dns/analytics/reports/bytimes.js";
import { APIPromise } from "../../../../core/api-promise.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseBytimes extends APIResource {
static readonly _key: readonly ['dnsFirewall', 'analytics', 'reports', 'bytimes'];
/**
* Retrieves a list of aggregate metrics grouped by time interval.
*
* See
* [Analytics API properties](https://developers.cloudflare.com/dns/reference/analytics-api-properties/)
* for detailed information about the available query parameters.
*
* @deprecated This endpoint is deprecated. See [the API deprecation notice](https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-12-09).
*/
get(dnsFirewallID: string, params: BytimeGetParams, options?: RequestOptions): APIPromise<ReportsBytimesAPI.ByTime>;
}
export declare class Bytimes extends BaseBytimes {
}
export interface BytimeGetParams {
/**
* Path param: Identifier.
*/
account_id: string;
/**
* Query param: A comma-separated list of dimensions to group results by.
*/
dimensions?: string;
/**
* Query param: Segmentation filter in 'attribute operator value' format.
*/
filters?: string;
/**
* Query param: Limit number of returned metrics.
*/
limit?: number;
/**
* Query param: A comma-separated list of metrics to query.
*/
metrics?: string;
/**
* Query param: Start date and time of requesting data period in ISO 8601 format.
*/
since?: string;
/**
* Query param: A comma-separated list of dimensions to sort by, where each
* dimension may be prefixed by - (descending) or + (ascending).
*/
sort?: string;
/**
* Query param: Unit of time to group data by.
*/
time_delta?: 'all' | 'auto' | 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' | 'dekaminute' | 'minute';
/**
* Query param: End date and time of requesting data period in ISO 8601 format.
*/
until?: string;
}
export declare namespace Bytimes {
export { type BytimeGetParams as BytimeGetParams };
}
//# sourceMappingURL=bytimes.d.ts.map