@tencent-sdk/faas
Version:
Tencent cloud faas sdk
24 lines • 804 B
TypeScript
import { GetLogOptions } from './typings';
export declare function formatWhere({ name, namespace, qualifier, status, startTime, endTime, }: Partial<GetLogOptions>): string;
export declare function getSearchSql(options: GetLogOptions): string;
/**
* 判断是否包含字符串
* @param {string} msg - string
* @returns {boolean}
*/
export declare function isContain(msg: string, subStr: string): boolean;
/**
* 判断是否是完整的日志
* @param {string} msg - log message
* @returns {boolean}
*/
export declare function isCompleted(msg: string): boolean;
export declare function formatFaasLog(detailLog: {
content: string;
}[]): {
memoryUsage: string;
duration: string;
message: string;
isCompleted: boolean;
};
//# sourceMappingURL=utils.d.ts.map