cloudflare
Version:
The official TypeScript library for the Cloudflare API
53 lines • 1.58 kB
TypeScript
import { APIResource } from "../../../../resource.js";
import * as Core from "../../../../core.js";
export declare class Currents extends APIResource {
/**
* Retrieves analytics aggregated from the last minute of usage on Spectrum
* applications underneath a given zone.
*/
get(params: CurrentGetParams, options?: Core.RequestOptions): Core.APIPromise<CurrentGetResponse>;
}
export type CurrentGetResponse = Array<CurrentGetResponse.CurrentGetResponseItem>;
export declare namespace CurrentGetResponse {
interface CurrentGetResponseItem {
/**
* Application identifier.
*/
appID: string;
/**
* Number of bytes sent
*/
bytesEgress: number;
/**
* Number of bytes received
*/
bytesIngress: number;
/**
* Number of connections
*/
connections: number;
/**
* Average duration of connections
*/
durationAvg: number;
}
}
export interface CurrentGetParams {
/**
* Path param: Identifier.
*/
zone_id: string;
/**
* Query param: Comma-delimited list of Spectrum Application Id(s). If provided,
* the response will be limited to Spectrum Application Id(s) that match.
*/
appID?: string;
/**
* Query param: Co-location identifier.
*/
colo_name?: string;
}
export declare namespace Currents {
export { type CurrentGetResponse as CurrentGetResponse, type CurrentGetParams as CurrentGetParams };
}
//# sourceMappingURL=currents.d.ts.map