import { ISlsConfig } from '../interface'; export declare class SlsClient { config: any; client: any; constructor(config: ISlsConfig); log(topic: string, data: any, error?: {}): Promise; /** * 查日志(时间)分布 * link https://help.aliyun.com/document_detail/29030.htm?spm=a2c4g.11186623.2.34.217539f1mtSBXU#t13239.html * @param query: 'pk and dn' * @param from ms * @param to ms */ getHisto(query: string, from: number, to: number): Promise<{ request_id: string; count: number; progress: string; histograms: { count: number; from: number; progress: string; to: number; }[]; headers: any; }>; /** * 查询日志数量, 通过查日志分布,并累计结果 * @param query * @param from * @param to */ getCount(query: string, from: number, to: number): Promise; /** * 查询具体日志列表数据 * - 每页最多显示100条查询结果,按时间倒序 * - 查询至当前时间提前3s,增加稳定性和实效(日志写入延迟在3s内) * @param query https://help.aliyun.com/document_detail/43772.html?spm=5176.2020520112.help.dexternal.18aa34c0l3TUVR * @param opts */ logQuery(query: string, opts: { from: number; to?: number; maxCount?: number; isSql?: boolean; onePageOnly?: boolean; }): Promise; }