UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

35 lines (34 loc) 1.2 kB
export declare function findRunningTooLongPipelines(list: Array<any>, time: number, maxTime: number): any[]; /** * 获取超时的流水线列表,并发送机器人消息 * @param {object} params 参数 * @param {object} params.params 获取流水线列表参数 * @param {string} params.pipelineHost 流水线 host 地址 * @param {string} params.webhookUrl 回调地址 * @param {string} params.chatId 会话id * @example * ```ts * await sendOverTimePipelineMessage({ * params: { * projectId: 'my-project', * host: 'https://devops.woa.com', * secretInfo: { appCode, appSecret, devopsUid }, * }, * pipelineHost: 'https://devops.woa.com', * webhookUrl: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx', * chatId: ['chat-id-1'], * mentionList: ['novlan1'], * }); * ``` */ export declare function sendOverTimePipelineMessage({ params, pipelineHost, webhookUrl, chatId, overTimeConfigList, mentionList, }: { params: any; pipelineHost: string; webhookUrl: string; chatId: Array<string>; overTimeConfigList?: Array<{ label: string; value: number; }>; mentionList: string[]; }): Promise<any[] | undefined>;