cloudflare
Version:
The official TypeScript library for the Cloudflare API
50 lines • 1.6 kB
TypeScript
import { APIResource } from "../../../../../core/resource.js";
import { APIPromise } from "../../../../../core/api-promise.js";
import { RequestOptions } from "../../../../../internal/request-options.js";
export declare class BaseLogs extends APIResource {
static readonly _key: readonly ['pages', 'projects', 'deployments', 'history', 'logs'];
/**
* Retrieve the build logs for a Cloudflare Pages deployment.
*
* @example
* ```ts
* const log =
* await client.pages.projects.deployments.history.logs.get(
* 'f64788e9-fccd-4d4a-a28a-cb84f88f6e12',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* project_name: 'this-is-my-project-01',
* },
* );
* ```
*/
get(deploymentID: string, params: LogGetParams, options?: RequestOptions): APIPromise<LogGetResponse>;
}
export declare class Logs extends BaseLogs {
}
export interface LogGetResponse {
data: Array<LogGetResponse.Data>;
includes_container_logs: boolean;
total: number;
}
export declare namespace LogGetResponse {
interface Data {
line: string;
ts: string;
}
}
export interface LogGetParams {
/**
* Identifier.
*/
account_id: string;
/**
* Name of the Pages project. Must begin with a lowercase letter or digit and
* contain only lowercase letters, digits, and hyphens.
*/
project_name: string;
}
export declare namespace Logs {
export { type LogGetResponse as LogGetResponse, type LogGetParams as LogGetParams };
}
//# sourceMappingURL=logs.d.ts.map