t-comm
Version:
专业、稳定、纯粹的工具库
33 lines (32 loc) • 1.05 kB
TypeScript
/**
* 获取腾讯云 RUM(Real User Monitoring)性能数据
* 用于查询前端性能监控数据,支持按时间范围和类型筛选
* @param secretId - 腾讯云 SecretId
* @param secretKey - 腾讯云 SecretKey
* @param id - RUM 项目 ID
* @param startTime - 开始时间(时间戳或字符串)
* @param endTime - 结束时间(时间戳或字符串)
* @param type - 性能数据类型
* @returns {Promise<{data: Array<unknown>}>} - 返回性能数据数组
* @example
* ```ts
* getRUMPerformance({
* secretId: 'your-secret-id',
* secretKey: 'your-secret-key',
* id: '123456',
* startTime: 1640000000,
* endTime: 1640086400,
* type: 'page'
* }).then(result => {
* console.log('性能数据:', result.data);
* });
* ```
*/
export declare function getRUMPerformance({ secretId, secretKey, id, startTime, endTime, type, }: {
secretId: string;
secretKey: string;
id: string | number;
startTime: string | number;
endTime: string | number;
type: string;
}): Promise<any>;