import { RequestContext } from '../logging'; import { BetterUptimeConfig, Report } from '../helpers'; export declare const createUniqueIds: (ids: string[]) => string; export declare const BETTERUPTIME_INCIDENTS_URL = "https://uptime.betterstack.com/api/v2/incidents"; /** * Helper function to send alerts to create incidents if one doesnt already exist * in the last 50 incidents from the last 24h. * @dev If the IDs cannot be found in the `reason`, or there are no ids on the report, * existing incidents wont be detected properly and alerts will be sent. * @param report The report that will be sent in the alert * @param betterUptime The better uptime config * @param requestContext The request context for the logger * @param byName Choose if the alert should be grouped by name */ export declare const alertViaBetterUptimeIfNeeded: (report: Report, betterUptime: BetterUptimeConfig, requestContext: RequestContext, byName?: boolean) => Promise | undefined>; /** * Helper function to send alerts with better uptime api using axiosPost * @param report The report that will be sent in the alert * @param betterUptime The better uptime config * @param requestContext The request context for the logger */ export declare const alertViaBetterUptime: (report: Report, betterUptime: BetterUptimeConfig, requestContext: RequestContext) => Promise | undefined>; /** * Resolves any matching incidents. * @param report The report that will be sent in the alert * @param betterUptime The better uptime config * @param requestContext The request context for the logger * @param byName Choose if the alert should be grouped by name */ export declare const resolveAlertViaBetterUptime: (report: Report, betterUptime: BetterUptimeConfig, requestContext: RequestContext, byName?: boolean) => Promise; //# sourceMappingURL=betteruptime.d.ts.map